1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! VES STARK Prover
//!
//! This crate provides STARK proof generation for VES compliance proofs.
//! It handles:
//! - Witness generation from VES event data
//! - Execution trace construction
//! - STARK proof generation using Winterfell
//!
//! # Multi-Policy Support
//!
//! The prover supports multiple policy types:
//! - `aml.threshold`: Proves amount < threshold (strict less-than)
//! - `order_total.cap`: Proves amount <= cap (less-than-or-equal)
//! - `agent.authorization.v1`: Proves amount <= maxTotal while committing an
//! intentHash through the policy hash
//!
//! # Usage
//!
//! ```ignore
//! use ves_stark_prover::{ComplianceProver, ComplianceWitness, Policy};
//!
//! // Create witness
//! let witness = ComplianceWitness::new(amount, public_inputs);
//!
//! // Create prover with AML threshold policy
//! let prover = ComplianceProver::with_policy(Policy::aml_threshold(10000));
//! let proof = prover.prove(&witness)?;
//!
//! // Or with order total cap policy
//! let prover = ComplianceProver::with_policy(Policy::order_total_cap(50000));
//! let proof = prover.prove(&witness)?;
//! ```
pub use ProverError;
pub use ;
pub use ;
pub use ;
pub use ComplianceWitness;