Skip to main content

verify_range

Function verify_range 

Source
pub fn verify_range(proof: &PredicateProof, lo: u64, hi: u64) -> bool
Expand description

Verify a PredicateProof produced by prove_range against public bounds lo and hi. Returns true iff valid for that exact [lo, hi] pair. Public inputs are supplied in the circuit’s allocation order [lo, hi].