Skip to main content

verify

Function verify 

Source
pub fn verify(claimed: &Report, recomputed: &Report, tol: f64) -> VerifyOutcome
Expand description

Recompute nothing: compare a claimed report against a freshly computed one, field by field.

Numbers match when |claimed - recomputed| <= tol; strings, booleans and nulls must match exactly. tol is the caller’s audit threshold — it is never read out of the report itself.