pub enum RoundState<Coeffs, Claim> {
Coeffs(Coeffs),
Claim(Claim),
}Expand description
The value a sumcheck-style prover carries between two consecutive protocol phases.
A prover alternates between two phases, once per variable:
- producing the round polynomial(s) for the variable being bound,
- reducing them with the verifier challenge to the claim(s) for the next variable.
A prover holds exactly one of the two at any time. Tracking which one lets the mandated call order be validated in a single place.
Variants§
Coeffs(Coeffs)
Round polynomial(s) already produced for this variable, awaiting the reduction step.
Claim(Claim)
Claim(s) awaiting the next round polynomial(s): the initial claim, or a reduction result.
Implementations§
Source§impl<Coeffs, Claim> RoundState<Coeffs, Claim>
impl<Coeffs, Claim> RoundState<Coeffs, Claim>
Trait Implementations§
Auto Trait Implementations§
impl<Coeffs, Claim> Freeze for RoundState<Coeffs, Claim>
impl<Coeffs, Claim> RefUnwindSafe for RoundState<Coeffs, Claim>where
Coeffs: RefUnwindSafe,
Claim: RefUnwindSafe,
impl<Coeffs, Claim> Send for RoundState<Coeffs, Claim>
impl<Coeffs, Claim> Sync for RoundState<Coeffs, Claim>
impl<Coeffs, Claim> Unpin for RoundState<Coeffs, Claim>
impl<Coeffs, Claim> UnsafeUnpin for RoundState<Coeffs, Claim>where
Coeffs: UnsafeUnpin,
Claim: UnsafeUnpin,
impl<Coeffs, Claim> UnwindSafe for RoundState<Coeffs, Claim>where
Coeffs: UnwindSafe,
Claim: 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