pub struct FriConfig<F> {
pub log_blowup: usize,
pub num_queries: usize,
pub proof_of_work_bits: usize,
/* private fields */
}Fields§
§log_blowup: usize§num_queries: usize§proof_of_work_bits: usizeImplementations§
Source§impl<F> FriConfig<F>
impl<F> FriConfig<F>
pub const fn new( log_blowup: usize, num_queries: usize, proof_of_work_bits: usize, ) -> Self
Sourcepub fn default_fri_config() -> Self
pub fn default_fri_config() -> Self
This FRI config relies on a conjecture for achieving 100 bits of security. Given Gruen and Diamond’s recent result, we have increased the number of queries to 94 to be on the safe side. (With the original conjecture, we would achieve 100 bits of security with 84 queries and 16 bits of grinding.)
pub const fn log_blowup(&self) -> usize
pub const fn num_queries(&self) -> usize
pub const fn proof_of_work_bits(&self) -> usize
Trait Implementations§
Source§impl<F: Ord> Ord for FriConfig<F>
impl<F: Ord> Ord for FriConfig<F>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialOrd> PartialOrd for FriConfig<F>
impl<F: PartialOrd> PartialOrd for FriConfig<F>
impl<F> Copy for FriConfig<F>
impl<F: Eq> Eq for FriConfig<F>
impl<F> StructuralPartialEq for FriConfig<F>
Auto Trait Implementations§
impl<F> Freeze for FriConfig<F>
impl<F> RefUnwindSafe for FriConfig<F>where
F: RefUnwindSafe,
impl<F> Send for FriConfig<F>where
F: Send,
impl<F> Sync for FriConfig<F>where
F: Sync,
impl<F> Unpin for FriConfig<F>where
F: Unpin,
impl<F> UnsafeUnpin for FriConfig<F>
impl<F> UnwindSafe for FriConfig<F>where
F: 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