Expand description
Node.js bindings for VES STARK proof system
This crate provides Node.js bindings for generating and verifying STARK compliance proofs using NAPI-RS.
Structs§
- JsCompliance
Proof - Result of proof generation
- JsCompliance
Public Inputs - Public inputs for compliance proof generation/verification
- JsVerification
Result - Result of proof verification
Functions§
- compute_
policy_ hash - Compute the policy hash for given policy ID and parameters
- create_
agent_ authorization_ params - Create policy parameters for agent authorization policy.
- create_
aml_ threshold_ params - Create policy parameters for AML threshold policy
- create_
order_ total_ cap_ params - Create policy parameters for order total cap policy
- create_
payload_ amount_ binding - Create a canonical payload amount binding for the supplied public inputs and extracted amount.
- prove
- Generate a STARK compliance proof for the provided amount witness.
- verify
- Verify a STARK compliance proof
- verify_
agent_ authorization - Verify an
agent.authorization.v1proof against a canonical authorization receipt. - verify_
agent_ authorization_ hex - Verify an
agent.authorization.v1proof using the witness commitment hex string. - verify_
agent_ authorization_ with_ amount_ binding - Verify an
agent.authorization.v1proof against both a canonical payload amount binding and a canonical authorization receipt. - verify_
hex - Verify a STARK compliance proof using the witness commitment hex string.
- verify_
with_ amount_ binding - Verify a STARK compliance proof against a canonical payload amount binding.