Verify a zero-knowledge proof of a threshold
verify_proofVerify a Groth16 zero-knowledge proof that a hidden value reached a threshold — for example 'the account balance is at least 1000'. The verifier learns that the threshold is met and never learns the value: the public signals are empty by construction. Returns whether the proof is valid, the predicate, and what the proof does NOT disclose. Use when a counterparty must show a threshold was met without revealing the number. A one-time nonce is required so the same proof cannot be replayed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"predicate": "<predicate>",
"proof": "<proof>",
"nonce": "<nonce>"
},
"name": "verify_proof"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | One-time nonce obtained from POST /v1/nonce. | |
| proof | Yes | The Groth16 proof as produced by snarkjs. | |
| predicate | Yes | Which predicate the proof is for, e.g. balance_threshold. | |
| public_signals | No | Public signals of the proof (usually empty: that is the point). |