pub struct FriConfig<M> {
pub log_blowup: usize,
pub num_queries: usize,
pub proof_of_work_bits: usize,
pub mmcs: M,
}
Fields§
§log_blowup: usize
§num_queries: usize
§proof_of_work_bits: usize
§mmcs: M
Implementations§
Source§impl<M> FriConfig<M>
impl<M> FriConfig<M>
pub const fn blowup(&self) -> usize
Sourcepub fn conjectured_soundness_bits(&self) -> usize
pub fn conjectured_soundness_bits(&self) -> usize
Returns the soundness bits of this FRI instance based on the ethSTARK conjecture.
Certain users may instead want to look at proven soundness, a more complex calculation which isn’t currently supported by this crate.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for FriConfig<M>where
M: Freeze,
impl<M> RefUnwindSafe for FriConfig<M>where
M: RefUnwindSafe,
impl<M> Send for FriConfig<M>where
M: Send,
impl<M> Sync for FriConfig<M>where
M: Sync,
impl<M> Unpin for FriConfig<M>where
M: Unpin,
impl<M> UnwindSafe for FriConfig<M>where
M: 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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