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
An MCP service for Ant Design components query | 一个 Ant Design 组件查询的 MCP 服务,包含组件文档、API 文档、代码示例和更新日志查询
Execute SQL queries and manage databases seamlessly with Timeplus. Leverage powerful tools to interact with your data, Kafka...
这是一个金融领域相关的mcp,里面包含了金融数据查询、财经新闻查询、国家统计局数据查询等
a mcp server
Databutton MCP Server
Repository for MCP screenshot functionality
A Model Context Protocol (MCP) server that provides Xcode-related tools for integration with AI assistants and other MCP...
Enhanced MCP server for Home Assistant with comprehensive API integration - includes entity discovery, automation management, advanced services,...
LLM OSINT is a proof-of-concept method of using LLMs to gather information from the internet and then perform...
Model Context Protocol server for querying Cursor chat history





