verify_predicate
Verify zero-knowledge predicates against live Midnight contract state to confirm a claim was recorded true on-chain, including proofs the service has not previously seen.
Instructions
Verify against LIVE Midnight contract state that a ZK claim was recorded true on-chain. Id-free: works for proofs NIGHTGATE never saw. Numeric predicates (lessOrEqual / greaterOrEqual) need threshold (the SAME scaled integer the circuit hashed; a scaling mismatch yields verified:false) and optionally fieldKey for field-bound proofs. bytesEquality needs fieldKey + expectedDigest; setMembership needs fieldKey + setRoot (recompute it from the published list via prepare_membership_set). Every claim is bound to ONE attester's record of the document, so attesterId is part of the coordinates. Free: it reads the public verify service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | documentDiff only: the k that was proven | |
| network | No | Read from another network public indexer instead of the configured one | |
| setRoot | No | setMembership only: the canonical allow-list set root | |
| fieldKey | No | Field key (64 hex); required for the numeric and bytes kinds, unused for the cross-root kinds | |
| predicate | Yes | Claim kind | |
| threshold | No | Numeric predicates only: scaled circuit integer threshold | |
| attesterId | Yes | The attester whose record of payloadHash carries the claim (64 hex) | |
| allowedMask | No | documentIntegrity only: the packed slot mask that was proven (16 bits by default, 32 on attestation-vault-32) | |
| attesterIdB | No | Cross-root kinds: document B's attester; defaults to attesterId | |
| payloadHash | Yes | The attestation payload hash (64 hex) | |
| payloadHashB | No | Cross-root kinds: the second document. (A, B) order is part of the claim, query it as proven | |
| expectedDigest | No | bytesEquality only: the public expected value digest | |
| contractAddress | No | AttestationVault address (64 hex); default the shared sandbox vault of the network (preprod, preview) | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault-32'; 'attestation-vault' for a 16-slot vault |