Struct binius_core::protocols::evalcheck::EvalcheckVerifier
source · pub struct EvalcheckVerifier<'a, F: TowerField> { /* private fields */ }
Expand description
A mutable verifier state.
Can be persisted across EvalcheckVerifier::verify
invocations. Accumulates
new_sumchecks
bivariate sumcheck instances, as well as holds mutable references to
the trace (to which new oracles & multilinears may be added during verification)
Implementations§
source§impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
pub fn batch_committed_eval_claims(&self) -> &BatchCommittedEvalClaims<F>
pub fn new_sumcheck_claims(&self) -> &Vec<SumcheckClaim<F>>
source§impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
impl<'a, F: TowerField> EvalcheckVerifier<'a, F>
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_sumchecks(&mut self) -> Vec<SumcheckClaim<F>>
pub fn take_new_sumchecks(&mut self) -> Vec<SumcheckClaim<F>>
A helper method to move out the set of reduced claims
sourcepub fn verify(
&mut self,
evalcheck_claim: EvalcheckClaim<F>,
evalcheck_proof: EvalcheckProof<F>
) -> Result<(), Error>
pub fn verify( &mut self, evalcheck_claim: EvalcheckClaim<F>, evalcheck_proof: 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>where
F: BinaryField<Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F> + ExtensionField<BinaryField1b> + MulAssign<BinaryField1b> + SubAssign<BinaryField1b> + AddAssign<BinaryField1b> + Mul<BinaryField1b> + Sub<BinaryField1b> + Add<BinaryField1b> + TryInto<BinaryField1b> + From<BinaryField1b> + Field + WithUnderlier + Zeroable + InvertOrZero + Square + for<'a> MulAssign<&'a F> + for<'a> SubAssign<&'a F> + for<'a> AddAssign<&'a F> + MulAssign + SubAssign + AddAssign + for<'a> Product<&'a F> + for<'a> Sum<&'a F> + for<'a> Mul<&'a F> + for<'a> Sub<&'a F> + for<'a> Add<&'a F> + Product + Sum + Mul + Sub + Add + Neg + Debug + Sync + Send + Default + Clone + Copy + Eq + PartialEq + 'static,
<F as WithUnderlier>::Underlier: PackScalar<F> + UnderlierType + Sync + Send + Zeroable + NoUninit + Random + Copy + Clone + ConstantTimeEq + Eq + PartialEq + Default + Debug + Sized + 'static,
impl<'a, F> !RefUnwindSafe for EvalcheckVerifier<'a, F>
impl<'a, F> Send for EvalcheckVerifier<'a, F>where
F: BinaryField<Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F> + ExtensionField<BinaryField1b> + MulAssign<BinaryField1b> + SubAssign<BinaryField1b> + AddAssign<BinaryField1b> + Mul<BinaryField1b> + Sub<BinaryField1b> + Add<BinaryField1b> + TryInto<BinaryField1b> + From<BinaryField1b> + Field + WithUnderlier + Zeroable + InvertOrZero + Square + for<'a> MulAssign<&'a F> + for<'a> SubAssign<&'a F> + for<'a> AddAssign<&'a F> + MulAssign + SubAssign + AddAssign + for<'a> Product<&'a F> + for<'a> Sum<&'a F> + for<'a> Mul<&'a F> + for<'a> Sub<&'a F> + for<'a> Add<&'a F> + Product + Sum + Mul + Sub + Add + Neg + Debug + Sync + Send + Default + Clone + Copy + Eq + PartialEq + 'static,
<F as WithUnderlier>::Underlier: PackScalar<F> + UnderlierType + Sync + Send + Zeroable + NoUninit + Random + Copy + Clone + ConstantTimeEq + Eq + PartialEq + Default + Debug + Sized + 'static,
impl<'a, F> Sync for EvalcheckVerifier<'a, F>where
F: BinaryField<Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F> + ExtensionField<BinaryField1b> + MulAssign<BinaryField1b> + SubAssign<BinaryField1b> + AddAssign<BinaryField1b> + Mul<BinaryField1b> + Sub<BinaryField1b> + Add<BinaryField1b> + TryInto<BinaryField1b> + From<BinaryField1b> + Field + WithUnderlier + Zeroable + InvertOrZero + Square + for<'a> MulAssign<&'a F> + for<'a> SubAssign<&'a F> + for<'a> AddAssign<&'a F> + MulAssign + SubAssign + AddAssign + for<'a> Product<&'a F> + for<'a> Sum<&'a F> + for<'a> Mul<&'a F> + for<'a> Sub<&'a F> + for<'a> Add<&'a F> + Product + Sum + Mul + Sub + Add + Neg + Debug + Sync + Send + Default + Clone + Copy + Eq + PartialEq + 'static,
<F as WithUnderlier>::Underlier: PackScalar<F> + UnderlierType + Sync + Send + Zeroable + NoUninit + Random + Copy + Clone + ConstantTimeEq + Eq + PartialEq + Default + Debug + Sized + 'static,
impl<'a, F> Unpin for EvalcheckVerifier<'a, F>where
F: BinaryField<Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F, Output = F> + ExtensionField<BinaryField1b> + MulAssign<BinaryField1b> + SubAssign<BinaryField1b> + AddAssign<BinaryField1b> + Mul<BinaryField1b> + Sub<BinaryField1b> + Add<BinaryField1b> + TryInto<BinaryField1b> + From<BinaryField1b> + Field + WithUnderlier + Zeroable + InvertOrZero + Square + for<'a> MulAssign<&'a F> + for<'a> SubAssign<&'a F> + for<'a> AddAssign<&'a F> + MulAssign + SubAssign + AddAssign + for<'a> Product<&'a F> + for<'a> Sum<&'a F> + for<'a> Mul<&'a F> + for<'a> Sub<&'a F> + for<'a> Add<&'a F> + Product + Sum + Mul + Sub + Add + Neg + Debug + Sync + Send + Default + Clone + Copy + Eq + PartialEq + 'static + Unpin,
<F as WithUnderlier>::Underlier: PackScalar<F> + UnderlierType + Sync + Send + Zeroable + NoUninit + Random + Copy + Clone + ConstantTimeEq + Eq + PartialEq + Default + Debug + Sized + 'static,
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