Skip to main content

Crate ves_stark_nodejs

Crate ves_stark_nodejs 

Source
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§

JsComplianceProof
Result of proof generation
JsCompliancePublicInputs
Public inputs for compliance proof generation/verification
JsVerificationResult
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.v1 proof against a canonical authorization receipt.
verify_agent_authorization_hex
Verify an agent.authorization.v1 proof using the witness commitment hex string.
verify_agent_authorization_with_amount_binding
Verify an agent.authorization.v1 proof 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.