Expand description
VES STARK Verifier
This crate provides STARK proof verification for VES compliance proofs. The verifier is stateless and can verify proofs using only the proof bytes and public inputs.
§Usage
ⓘ
use ves_stark_verifier::verify_compliance_proof_auto_with_amount_binding_strict;
// Requires a canonical payload amount binding artifact for strict verification.
let result =
verify_compliance_proof_auto_with_amount_binding_strict(&proof_bytes, &public_inputs, &binding)?;
assert!(result.valid);Structs§
- Compliance
Verifier - Stateless compliance proof verifier
- Verification
Result - Result of proof verification
Enums§
- Verifier
Error - Errors that can occur during proof verification
Constants§
- MAX_
PROOF_ SIZE - Maximum allowed proof size in bytes (10 MB)
- PROOF_
VERSION - Current proof version (internal; used for compatibility checks where applicable)
Functions§
- validate_
hex_ string - Validate a hex string field
- verify_
agent_ authorization_ proof - Verify an
agent.authorization.v1proof against a canonical authorization receipt. - verify_
agent_ authorization_ proof_ auto - Verify an
agent.authorization.v1proof using policy parameters from the public inputs and an explicit witness commitment. - verify_
agent_ authorization_ proof_ auto_ bound - Verify an
agent.authorization.v1proof using policy parameters and witness commitment from the public inputs. - verify_
agent_ authorization_ proof_ auto_ bound_ strict - Verify an
agent.authorization.v1proof using policy parameters and witness commitment from public inputs and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ auto_ bound_ witness_ strict - Verify a witness-bound
agent.authorization.v1proof using policy parameters and witness commitment from public inputs and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ auto_ strict - Verify an
agent.authorization.v1proof using policy parameters from the public inputs and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ auto_ with_ amount_ binding - Verify an
agent.authorization.v1proof using policy parameters from the public inputs, a payload-derived amount binding artifact, and a canonical authorization receipt. - verify_
agent_ authorization_ proof_ auto_ with_ amount_ binding_ strict - Verify an
agent.authorization.v1proof using a payload-derived amount binding artifact and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ auto_ witness_ strict - Verify a witness-bound
agent.authorization.v1proof using policy parameters from the public inputs and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ strict - Verify an
agent.authorization.v1proof and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ with_ amount_ binding - Verify an
agent.authorization.v1proof against an explicit policy, payload-derived amount binding artifact, and canonical authorization receipt. - verify_
agent_ authorization_ proof_ with_ amount_ binding_ strict - Verify an
agent.authorization.v1proof against an explicit policy, payload-derived amount binding artifact, and canonical authorization receipt, and return an error on invalid proofs. - verify_
agent_ authorization_ proof_ witness_ strict - Verify a witness-bound
agent.authorization.v1proof and return an error on invalid proofs. - verify_
compliance_ proof - Verify a compliance proof
- verify_
compliance_ proof_ auto - Verify a compliance proof using policy parameters from the public inputs.
- verify_
compliance_ proof_ auto_ bound - Verify a compliance proof using policy parameters and witness commitment from the public inputs.
- verify_
compliance_ proof_ auto_ bound_ strict - Verify a compliance proof using policy parameters and witness commitment from public inputs and return an error on invalid proofs.
- verify_
compliance_ proof_ auto_ bound_ witness_ strict - Verify a witness-bound compliance proof using policy parameters and witness commitment from public inputs and return an error on invalid proofs.
- verify_
compliance_ proof_ auto_ strict - Verify a compliance proof using policy parameters from the public inputs and return an error on invalid proofs.
- verify_
compliance_ proof_ auto_ with_ amount_ binding - Verify a compliance proof using policy parameters from the public inputs and a payload-derived amount binding artifact.
- verify_
compliance_ proof_ auto_ with_ amount_ binding_ strict - Verify a compliance proof using a payload-derived amount binding artifact and return an error on invalid proofs.
- verify_
compliance_ proof_ auto_ witness_ strict - Verify a witness-bound compliance proof using policy parameters from the public inputs and return an error on invalid proofs.
- verify_
compliance_ proof_ strict - Verify a compliance proof and return an error on invalid proofs.
- verify_
compliance_ proof_ with_ amount_ binding - Verify a compliance proof against an explicit policy and a payload-derived amount binding.
- verify_
compliance_ proof_ with_ amount_ binding_ strict - Verify a compliance proof against an explicit policy and a payload-derived amount binding, and return an error on invalid proofs.
- verify_
compliance_ proof_ witness_ strict - Verify a witness-bound compliance proof and return an error on invalid proofs.