TDX Prover
TDX Prover is a Rust Rest Api service built with Rust’s Axum framework for providing Intel TDX DCAP attestation verification capabilities including DCAP verification zero knowledge proof (Groth16) using sp1 zkvm.
The service manages three main entities: agents, attestation requests, and attestations. It uses the Axum web framework and SQLx for database access, with a PostgreSQL backend. The primary function is to verify TDX DCAP attestations and generate cryptographic proofs of verification.
Features
This project uses Axum framework and SQLx for DB access layer for storing agent, request, and attestation data. It includes three basic routes: agent, request, and attestation.
Prerequisites
- Rust toolchain
- Cargo Lambda
- PostgreSQL
- sqlx-cli
Deployment Prerequisites
- cross-rs
- Docker
- AWS CLI
- SAM
- Zig
Routes
Agent
- POST
/agent/register- Register a new agent - GET
/agent/{id}- Get agent by id - PUT
/agent/{id}- Update a agent - DELETE
/agent/{id}- Delete a agent
Request
- POST
/request/register- Register a new request - GET
/request/{id}- Get request by id - PUT
/request/{id}- Update a request - DELETE
/request/{id}- Delete a request
Attestation
POST
/attestation/register- Register a new attestationGET
/attestation/{id}- Get attestation by idGET
/attestation/verify_dcap/{id}- Verify attestation with DCAPGET
/attestation/prove/{id}- Generate zero knowledge proof of attestationPOST
/attestation/verify- Verify zero knowledge proof of attestationPOST
/attestation/submit_proof- Submit zero knowledge proof of attestation
Development
- Clone the project
- Update
.envfile with the DB credentials - Install
sqlx-clior runcargo sqlx database createto create your DB - Run the migration file using
cargo sqlx migrate run. This will run the migration file that exists in the migration folder in the root of the project. - Build the project and dependencies using
cargo build - Run the project using
cargo run -- up
Database
- Create:
cargo sqlx database create - Migrate:
cargo sqlx migrate run - Offline:
cargo sqlx prepare -- --merged
Deploy
- Install
cross-rsfor cross platform build - Build the project using
cross build
Lint
- Lint:
cargo clippy
Test
- Test:
cargo test [test_name](to run a specific test)
Code Style Guidelines
- Formatting: Follow Rust standard style (rustfmt defaults)
- Imports: Group by external crates then internal modules
- Naming:
- Use snake_case for files, modules, functions, variables
- Use CamelCase for types, structs, enums
- Always use descriptive variable names
- Error Handling:
- Use thiserror for domain-specific errors
- Implement IntoResponse for API errors
- Use ? operator for error propagation
- Types: Prefer strong typing with explicit types
- Documentation: Document public API functions
TDX Prover
Project Details
- denniswon/intel-tdx-zk-prover
- Last Updated: 5/6/2025
Recomended MCP Servers
Stay on top of trending topics on social media and the web with AI
mcp server for gitingest
A simple vector store that indexes content of files on local file system
A Model Context Protocol server for Google Workspace integration (Gmail and Calendar)
基于 Model Context Protocol (MCP) 协议的全网热点趋势一站式聚合服务
Model Context Protocol documentation server for LangGraph and MCP.
A task management system built with Cloudflare Workers
Twitter-RapidAPI-MCP-X is a lightweight API available on RapidAPI that provides streamlined access to Twitter data, including tweets, user...





