Conversation
🐋 DeepSeek Code Review🔴 Critical IssuesNone. No identified vulnerability that directly leads to fund loss or chain halts. 🟡 Warnings
🔵 Suggestions
🟢 What Looks Good
Automatically triggered on PR update • model: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee57aa252b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| g.Go(func() error { | ||
| if s.Dummy { | ||
| proofType = s.ProofType |
There was a problem hiding this comment.
Return concrete ZK proof type in TDX dummy flow
When s.Dummy is enabled, RequestProof stores s.ProofType (zk_any) into ProofResponse.ProofType, but Aggregate only accepts verifier IDs for risc0/sp1 and rejects unknown types. In a TDX+ZK setup running with dummy proofs (common in local/dev experiments), aggregation will consistently fail with unknown ZK proof type from raiko: zk_any, so no proof batches can be submitted.
Useful? React with 👍 / 👎.
| /// @param _instance The address to check | ||
| /// @return True if the address has at least one live instance entry. | ||
| function isInstanceRegistered(address _instance) external view returns (bool) { | ||
| return addressRegistered[_instance]; |
There was a problem hiding this comment.
Report only live instances in registration status API
isInstanceRegistered is documented as checking whether an instance is currently registered and non-expired, but it returns addressRegistered, which is an "ever attested" flag that is never cleared in deleteInstances and does not consider expiry. This can cause operators/automation to treat deleted or expired prover keys as active and skip re-registration, resulting in avoidable on-chain proof verification failures later.
Useful? React with 👍 / 👎.
|
Will test in our devnet once the changes to raiko2 are finalized and we can actually deploy, put the |
What's new
Adds TDX (Trust Domain Extensions) prover support for the Shasta hardfork, pairing a TDX proof with an existing ZK proof for on-chain verification.
Changes
protocol
AzureTdxVerifier— on-chain registry + verifier; registerInstance runs Azure vTPM + Automata DCAP attestation, verifyProof checks 89-byte ECDSA proof against registered instanceTdxAndZkVerifier— compose verifier requiring [ZK(5/6), TDX(7)] sub-proofs in ascending VerifierID orderComposeVerifier.VerifierTypeextended withTDX_RETH = 7taiko-client
TdxZkComposeProofProducer— fetches TDX and ZK proofs from raiko2 in parallel