pub struct BatchBrakedownFolder<P, C, Data = Vec<P>>{ /* private fields */ }Expand description
Folds and commits a batch of interleaved codewords that share a folded length.
Each ProxTestFolder is committed separately and folds (by the same challenges) to a codeword
of the common length codeword.log_len() - log_batch_size. The folded codewords are summed into
a single codeword that continues through the FRI rounds, and the per-commitment
BrakedownOracleProvers are bundled into a BatchBrakedownOracleProver.
Implementations§
Source§impl<F, P, C, Data> BatchBrakedownFolder<P, C, Data>
impl<F, P, C, Data> BatchBrakedownFolder<P, C, Data>
Sourcepub fn new(
folders: Vec<ProxTestFolder<P, C, Data>>,
log_code_len: usize,
) -> BatchBrakedownFolder<P, C, Data>
pub fn new( folders: Vec<ProxTestFolder<P, C, Data>>, log_code_len: usize, ) -> BatchBrakedownFolder<P, C, Data>
Constructs a batch folder from one or more interleaved-codeword folders.
log_code_len is the common (first-round) codeword length the folders combine into. Each
folder’s own folded length must not exceed it; folders that fall short are lifted (their
folded codewords duplicated) up to log_code_len during Self::fold.
pub fn fold( self, challenges: &[F], ) -> (FieldBuffer<F>, BatchBrakedownOracleProver<P, C, Data>)
Auto Trait Implementations§
impl<P, C, Data> Freeze for BatchBrakedownFolder<P, C, Data>
impl<P, C, Data> RefUnwindSafe for BatchBrakedownFolder<P, C, Data>where
C: RefUnwindSafe,
Data: RefUnwindSafe,
impl<P, C, Data> Send for BatchBrakedownFolder<P, C, Data>
impl<P, C, Data> Sync for BatchBrakedownFolder<P, C, Data>
impl<P, C, Data> Unpin for BatchBrakedownFolder<P, C, Data>
impl<P, C, Data> UnsafeUnpin for BatchBrakedownFolder<P, C, Data>
impl<P, C, Data> UnwindSafe for BatchBrakedownFolder<P, C, Data>where
C: UnwindSafe,
Data: 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
§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