binius_verifier/lib.rs
1// Copyright 2025 Irreducible Inc.
2// Copyright 2026 The Binius Developers
3
4//! High-level proof verification for Binius64 constraint systems.
5//!
6//! This crate provides the main [`Verifier`] struct for verifying zero-knowledge proofs
7//! that a witness satisfies a constraint system. It is the verifier-side counterpart to
8//! `binius_prover`.
9//!
10//! # When to use this crate
11//!
12//! Use this crate when you have a constraint system and a proof, and need to verify
13//! that the proof is valid. The verifier does not need access to the witness.
14//!
15//! # Key types
16//!
17//! - [`Verifier`] - Main verification interface; call [`Verifier::setup`] with a constraint system,
18//! then [`Verifier::verify`] with a proof and public inputs
19//! - [`IOPVerifier`] - Core IOP verification logic, independent of the compilation strategy
20//! - [`Error`] - Error type returned when proof verification fails
21//!
22//! # Design philosophy
23//!
24//! Verifier code is optimized for simplicity, security, and readability rather than
25//! performance. It uses only scalar fields (not packed fields), avoids parallelization,
26//! and prefers simple data structures.
27//!
28//! # Related crates
29//!
30//! - `binius_prover` - Proving counterpart
31//! - `binius_core` - Constraint system definitions
32//! - `binius_spartan_verifier` - Spartan-based verification (alternative backend)
33
34#![warn(rustdoc::missing_crate_level_docs)]
35
36pub mod config;
37mod error;
38pub mod protocols;
39pub mod reduction;
40pub mod ring_switch;
41pub mod signature;
42mod verify;
43pub mod zk_config;
44
45pub use binius_hash as hash;
46pub use binius_iop::{fri, merkle_tree};
47pub use binius_transcript as transcript;
48pub use error::*;
49pub use verify::*;