Skip to main content

verify

Function verify 

Source
pub fn verify(
    proof_bytes: Buffer,
    public_inputs: JsCompliancePublicInputs,
    witness_commitment: Vec<String>,
) -> Result<JsVerificationResult>
Expand description

Verify a STARK compliance proof

@param proofBytes - The raw proof bytes from prove() @param publicInputs - Public inputs (must match those used for proving) @param witnessCommitment - Witness commitment from the proof @returns VerificationResult indicating if proof is valid

Malformed public inputs, malformed proof encodings, or witness-commitment binding mismatches are reported as thrown errors rather than valid = false.