pub struct EvalcheckVerifier<'a, F>where
F: TowerField,{ /* private fields */ }
Expand description
A mutable verifier state.
Can be persisted across EvalcheckVerifier::verify
invocations. Accumulates
new_sumchecks
bivariate sumcheck constraints, as well as holds mutable references to
the trace (to which new oracles & multilinears may be added during verification)
Implementations§
source§impl<'a, F> EvalcheckVerifier<'a, F>where
F: TowerField,
impl<'a, F> EvalcheckVerifier<'a, F>where
F: TowerField,
pub fn batch_committed_eval_claims(&self) -> &BatchCommittedEvalClaims<F>
source§impl<'a, F> EvalcheckVerifier<'a, F>where
F: TowerField,
impl<'a, F> EvalcheckVerifier<'a, F>where
F: TowerField,
pub fn batch_committed_eval_claims_mut( &mut self, ) -> &mut BatchCommittedEvalClaims<F>
source§impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
sourcepub fn new(oracles: &'a mut MultilinearOracleSet<F>) -> Self
pub fn new(oracles: &'a mut MultilinearOracleSet<F>) -> Self
Create a new verifier state from a mutable reference to the oracle set
(it needs to be mutable because new_sumcheck
reduction may add new
oracles & multilinears)
sourcepub fn take_new_sumcheck_constraints(
&mut self,
) -> Result<Vec<ConstraintSet<F>>, OracleError>
pub fn take_new_sumcheck_constraints( &mut self, ) -> Result<Vec<ConstraintSet<F>>, OracleError>
A helper method to move out sumcheck constraints
sourcepub fn verify(
&mut self,
evalcheck_claims: Vec<EvalcheckMultilinearClaim<F>>,
evalcheck_proofs: Vec<EvalcheckProof<F>>,
) -> Result<(), Error>
pub fn verify( &mut self, evalcheck_claims: Vec<EvalcheckMultilinearClaim<F>>, evalcheck_proofs: Vec<EvalcheckProof<F>>, ) -> Result<(), Error>
Verify an evalcheck claim.
See EvalcheckProver::prove
docs for comments.
Auto Trait Implementations§
impl<'a, F> Freeze for EvalcheckVerifier<'a, F>
impl<'a, F> !RefUnwindSafe for EvalcheckVerifier<'a, F>
impl<'a, F> !Send for EvalcheckVerifier<'a, F>
impl<'a, F> !Sync for EvalcheckVerifier<'a, F>
impl<'a, F> Unpin for EvalcheckVerifier<'a, F>
impl<'a, F> !UnwindSafe for EvalcheckVerifier<'a, F>
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
§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