pub struct FriConfig {
pub log_blowup_factor: u32,
pub log_last_layer_degree_bound: u32,
pub n_queries: usize,
}Expand description
FRI proof config
Fields§
§log_blowup_factor: u32§log_last_layer_degree_bound: u32§n_queries: usizeImplementations§
Source§impl FriConfig
impl FriConfig
Sourcepub fn new(
log_last_layer_degree_bound: u32,
log_blowup_factor: u32,
n_queries: usize,
) -> Self
pub fn new( log_last_layer_degree_bound: u32, log_blowup_factor: u32, n_queries: usize, ) -> Self
Creates a new FRI configuration.
§Panics
Panics if:
log_last_layer_degree_boundis greater than 10.log_blowup_factoris equal to zero or greater than 16.
pub const fn last_layer_domain_size(&self) -> usize
pub const fn security_bits(&self) -> u32
Trait Implementations§
impl Copy for FriConfig
Source§impl<'de> Deserialize<'de> for FriConfig
impl<'de> Deserialize<'de> for FriConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FriConfig
impl RefUnwindSafe for FriConfig
impl Send for FriConfig
impl Sync for FriConfig
impl Unpin for FriConfig
impl UnsafeUnpin for FriConfig
impl UnwindSafe for FriConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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