pub struct ConstantArityStrategy {
pub arity: usize,
}Expand description
Strategy that uses a constant fold arity.
Fields§
§arity: usizeThe fold arity to use for each reduction step.
Implementations§
Source§impl ConstantArityStrategy
impl ConstantArityStrategy
Sourcepub fn with_optimal_arity<F, MerkleScheme>(
_merkle_scheme: &MerkleScheme,
approx_log_code_len: usize,
) -> Selfwhere
F: Field,
MerkleScheme: MerkleTreeScheme<F>,
pub fn with_optimal_arity<F, MerkleScheme>(
_merkle_scheme: &MerkleScheme,
approx_log_code_len: usize,
) -> Selfwhere
F: Field,
MerkleScheme: MerkleTreeScheme<F>,
Creates a strategy with an estimated optimal arity.
Uses a heuristic to estimate the optimal FRI folding arity that minimizes proof size.
§Arguments
_merkle_scheme- the Merkle tree scheme (used to infer digest size)approx_log_code_len- approximate log2 of the codeword length
Trait Implementations§
Source§impl AritySelectionStrategy for ConstantArityStrategy
impl AritySelectionStrategy for ConstantArityStrategy
fn choose_arities<F, MerkleScheme>(
&self,
merkle_scheme: &MerkleScheme,
log_msg_len: usize,
log_inv_rate: usize,
n_test_queries: usize,
) -> Vec<usize>where
F: Field,
MerkleScheme: MerkleTreeScheme<F>,
Source§impl Clone for ConstantArityStrategy
impl Clone for ConstantArityStrategy
Source§fn clone(&self) -> ConstantArityStrategy
fn clone(&self) -> ConstantArityStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstantArityStrategy
Auto Trait Implementations§
impl Freeze for ConstantArityStrategy
impl RefUnwindSafe for ConstantArityStrategy
impl Send for ConstantArityStrategy
impl Sync for ConstantArityStrategy
impl Unpin for ConstantArityStrategy
impl UnsafeUnpin for ConstantArityStrategy
impl UnwindSafe for ConstantArityStrategy
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