pub struct Verifier<H: HashSuite> { /* private fields */ }Expand description
Struct for verifying instances of a particular constraint system.
The Self::setup constructor determines public parameters for proving instances of the given
constraint system. Then Self::verify is called one or more times with individual instances.
Implementations§
Source§impl<H> Verifier<H>
impl<H> Verifier<H>
Sourcepub fn setup(
constraint_system: ConstraintSystem,
log_inv_rate: usize,
) -> Result<Self, Error>
pub fn setup( constraint_system: ConstraintSystem, log_inv_rate: usize, ) -> Result<Self, Error>
Sourcepub const fn iop_verifier(&self) -> &IOPVerifier
pub const fn iop_verifier(&self) -> &IOPVerifier
Returns a reference to the IOP verifier.
Sourcepub fn into_iop_verifier(self) -> IOPVerifier
pub fn into_iop_verifier(self) -> IOPVerifier
Consumes the verifier and returns the inner IOP verifier.
Sourcepub const fn log_witness_words(&self) -> usize
pub const fn log_witness_words(&self) -> usize
Returns log2 of the number of words in the witness.
Sourcepub const fn log_witness_elems(&self) -> usize
pub const fn log_witness_elems(&self) -> usize
Returns log2 of the number of field elements in the packed trace.
Sourcepub const fn constraint_system(&self) -> &ConstraintSystem
pub const fn constraint_system(&self) -> &ConstraintSystem
Returns the constraint system.
Sourcepub const fn fri_params(&self) -> &FRIParams<B128>
pub const fn fri_params(&self) -> &FRIParams<B128>
Returns the chosen FRI parameters.
Sourcepub const fn log_public_words(&self) -> usize
pub const fn log_public_words(&self) -> usize
Returns log2 of the number of public constants and input/output words.
Sourcepub const fn iop_compiler(&self) -> &BaseFoldVerifierCompiler<B128>
pub const fn iop_compiler(&self) -> &BaseFoldVerifierCompiler<B128>
Returns the IOP compiler for creating verifier channels.
pub fn verify<Challenger_: Challenger>( &self, inout: &[Word], transcript: &mut VerifierTranscript<Challenger_>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for Verifier<H>
impl<H> RefUnwindSafe for Verifier<H>where
H: RefUnwindSafe,
impl<H> Send for Verifier<H>where
H: Send,
impl<H> Sync for Verifier<H>where
H: Sync,
impl<H> Unpin for Verifier<H>where
H: Unpin,
impl<H> UnsafeUnpin for Verifier<H>
impl<H> UnwindSafe for Verifier<H>where
H: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more