Labels: complexity: high
Add verifyCompletionProof(proof) that validates a CompletionProof object returned by the contract against its on-chain cert hash. Lets external systems independently verify a release happened.
Acceptance criteria:
- Accepts
CompletionProof from the contract's get_completion_proof call
- Recomputes
cert_hash and compares against stored value
- Returns
{ valid: boolean, reason?: string }
- Works without trusting the SDK caller — verifies cryptographic proof only
Labels: complexity: high
Add
verifyCompletionProof(proof)that validates aCompletionProofobject returned by the contract against its on-chain cert hash. Lets external systems independently verify a release happened.Acceptance criteria:
CompletionProoffrom the contract'sget_completion_proofcallcert_hashand compares against stored value{ valid: boolean, reason?: string }