Function verify_proof

Source
pub fn verify_proof(
    root: Field,
    nullifier_hash: Field,
    signal_hash: Field,
    external_nullifier_hash: Field,
    proof: &Proof,
    tree_depth: usize,
) -> Result<bool, ProofError>
Expand description

Verifies a given semaphore proof

ยงErrors

Returns a ProofError if verifying fails. Verification failure does not necessarily mean the proof is incorrect.