verify_predicate
Verify a ZK predicate proof (e.g., hidden value <= threshold) was recorded true on-chain in a Midnight contract. Works for proofs never seen before; optional fieldKey for field-bound proofs.
Instructions
Verify against LIVE Midnight contract state that a ZK predicate proof (e.g. "hidden value <= threshold") was recorded true on-chain. Id-free: works for proofs NIGHTGATE never saw. threshold must be the SAME scaled integer the circuit hashed (scaling mismatch yields verified:false). Supply fieldKey for a field-bound proof, omit it for a plain one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Read from another network public indexer instead of the configured one | |
| fieldKey | No | Optional field key (64 hex) for field-bound proofs | |
| predicate | Yes | Predicate operator | |
| threshold | Yes | Scaled circuit integer threshold (same scaling the circuit hashed) | |
| payloadHash | Yes | The attestation payload hash (64 hex) | |
| contractAddress | Yes | AttestationVault contract address | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault' |