pub struct FRIFoldVerifier<'a, F, C>where
F: BinaryField,{ /* private fields */ }Expand description
Receives the prover’s fold-phase commitments in the order the protocol sends them.
The fold phase spends one round per variable of the committed message. Most rounds only absorb a folding challenge and carry no message from the prover.
A round that completes a fold shrinks the codeword. The prover commits to that new codeword, and this type reads it off the channel.
Implementations§
Source§impl<'a, F, C> FRIFoldVerifier<'a, F, C>where
F: BinaryField,
C: Clone,
impl<'a, F, C> FRIFoldVerifier<'a, F, C>where
F: BinaryField,
C: Clone,
Sourcepub fn new(params: &'a FRIParams<F>) -> Self
pub fn new(params: &'a FRIParams<F>) -> Self
Derives the schedule of expected commitments from the protocol parameters.
Sourcepub fn process_round<Channel>(
&mut self,
channel: &mut Channel,
) -> Result<Option<C>, Error>where
Channel: MerkleIPVerifierChannel<F, Commitment = C>,
pub fn process_round<Channel>(
&mut self,
channel: &mut Channel,
) -> Result<Option<C>, Error>where
Channel: MerkleIPVerifierChannel<F, Commitment = C>,
Sourcepub const fn is_complete(&self) -> bool
pub const fn is_complete(&self) -> bool
Reports whether every fold round has been processed.
Auto Trait Implementations§
impl<'a, F, C> Freeze for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> RefUnwindSafe for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> Send for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> Sync for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> Unpin for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> UnsafeUnpin for FRIFoldVerifier<'a, F, C>
impl<'a, F, C> UnwindSafe for FRIFoldVerifier<'a, F, C>
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