Skip to main content

Crate binius_verifier

Crate binius_verifier 

Source
Expand description

High-level proof verification for Binius64 constraint systems.

This crate provides the main Verifier struct for verifying zero-knowledge proofs that a witness satisfies a constraint system. It is the verifier-side counterpart to binius_prover.

§When to use this crate

Use this crate when you have a constraint system and a proof, and need to verify that the proof is valid. The verifier does not need access to the witness.

§Key types

  • Verifier - Main verification interface; call Verifier::setup with a constraint system, then Verifier::verify with a proof and public inputs
  • IOPVerifier - Core IOP verification logic, independent of the compilation strategy
  • Error - Error type returned when proof verification fails

§Design philosophy

Verifier code is optimized for simplicity, security, and readability rather than performance. It uses only scalar fields (not packed fields), avoids parallelization, and prefers simple data structures.

  • binius_prover - Proving counterpart
  • binius_core - Constraint system definitions
  • binius_spartan_verifier - Spartan-based verification (alternative backend)

Re-exports§

pub use binius_hash as hash;
pub use binius_transcript as transcript;

Modules§

config
Specifies standard trait implementations and parameters.
fri
Implementation of the Fast Reed–Solomon IOPP (FRI) over binary fields.
merkle_tree
protocols
reduction
The constraint reduction shared by the single-instance and batched Binius64 verifiers.
ring_switch
signature
Signature of knowledge support.
zk_config
Zero-knowledge verification configuration for Binius64 constraint systems.

Structs§

IOPVerifier
IOP verifier for a particular constraint system.
Verifier
Struct for verifying instances of a particular constraint system.

Enums§

Error

Constants§

SECURITY_BITS

Functions§

verify_bitand_reduction
Verifies the batched BitAnd check: A & B == C on every row.