pub struct Verifier<F, H>where
F: BinaryField,
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<F, H> Verifier<F, H>
impl<F, H> Verifier<F, H>
Sourcepub fn setup(
constraint_system: ConstraintSystem<F>,
log_inv_rate: usize,
) -> Result<Self, Error>
pub fn setup( constraint_system: ConstraintSystem<F>, log_inv_rate: usize, ) -> Result<Self, Error>
Constructs a verifier for a constraint system.
See Verifier struct documentation for details.
Sourcepub const fn iop_verifier(&self) -> &IOPVerifier<F>
pub const fn iop_verifier(&self) -> &IOPVerifier<F>
Returns a reference to the IOP verifier.
pub const fn constraint_system(&self) -> &ConstraintSystemPadded<F>
Sourcepub const fn iop_compiler(&self) -> &BaseFoldVerifierCompiler<F>
pub const fn iop_compiler(&self) -> &BaseFoldVerifierCompiler<F>
Returns a reference to the BaseFold ZK verifier compiler.
Sourcepub fn verify<Challenger_: Challenger>(
&self,
public: &[F],
transcript: &mut VerifierTranscript<Challenger_>,
) -> Result<(), Error>
pub fn verify<Challenger_: Challenger>( &self, public: &[F], transcript: &mut VerifierTranscript<Challenger_>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<F, H> Freeze for Verifier<F, H>
impl<F, H> RefUnwindSafe for Verifier<F, H>
impl<F, H> Send for Verifier<F, H>
impl<F, H> Sync for Verifier<F, H>
impl<F, H> Unpin for Verifier<F, H>
impl<F, H> UnsafeUnpin for Verifier<F, H>
impl<F, H> UnwindSafe for Verifier<F, H>
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