feat: add TDX verifier and TDX-aware TEE prover registry#261
Draft
feat: add TDX verifier and TDX-aware TEE prover registry#261
Conversation
Adds production-shape Intel TDX DCAP signer-registration path for multiproof. The heavy attestation work happens off-chain in a ZK guest (RISC Zero or SP1); Solidity verifies the proof and enforces on-chain policy (trusted Intel root, TCB status, collateral expiry, quote freshness, signer derivation, REPORTDATA public-key binding) before registering the signer via TDXTEEProverRegistry.
Collaborator
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the production-shape Intel TDX DCAP signer-registration path for multiproof, alongside Nitro:
src/multiproof/tee/TDXVerifier.sol— verifies a RISC Zero or SP1 proof whose public values are an ABI-encodedTDXVerifierJournal, then enforces on-chain policy: trusted Intel root, TCB status allowlist, collateral expiry, quote freshness (maxTimeDiff), signer derivation, andREPORTDATApublic-key binding.src/multiproof/tee/TDXTEEProverRegistry.sol— extendsTEEProverRegistrywithregisterTDXSigner(...), storing the signer address and TDX image hash (keccak256(MRTD || RTMR0..3)) in the same registry fields used byTEEVerifier.interfaces/multiproof/tee/ITDXVerifier.sol— interface, journal layout, TCB status enum, and ZK coprocessor config types.test/multiproof/TDXVerifier.t.sol,test/multiproof/TDXTEEProverRegistry.t.sol.abi,storageLayout,semver-lock) andscripts/multiproof/README.mddocumentation for the new "Path 3: TDX" flow.Notes
TEEVerifierremains the proposal-proof verifier; TDX only changes signer registration.TDXVerifierJournalis not in this PR.Test plan
just test -- --match-path \"test/multiproof/TDX*\"