ZKProofVerifier

View as Markdown

The on-chain Groth16 verifier and proof registry. Stores anchored proofs by DID and provides on-chain verification for ZK identity claims.

Functions

SignatureAccessNotes
submitProof(bytes proof, uint256[] publicSignals) returns (bytes32 proofId)holderVerifies and anchors a proof
getProof(bytes32 proofId)public viewRetrieve anchored proof
revokeProof(bytes32 proofId)holderMark a proof revoked
getDIDProofs(string did)public viewEnumerate proofs for a DID
verifyBatch(bytes[] proofs, uint256[][] signals)publicBatch verification

Events

1event ProofAnchored(bytes32 indexed proofId, string did, uint256 timestamp);
2event ProofRevoked (bytes32 indexed proofId, address indexed revoker);