Struct twenty_first::shared_math::fri::Fri
source · [−]pub struct Fri<FF: FiniteField, H> {
pub expansion_factor: usize,
pub colinearity_checks_count: usize,
pub domain: FriDomain<FF>,
/* private fields */
}
Fields
expansion_factor: usize
colinearity_checks_count: usize
domain: FriDomain<FF>
Implementations
sourceimpl<FF, H> Fri<FF, H>where
FF: FiniteField + Hashable<H::T>,
H: Hasher,
impl<FF, H> Fri<FF, H>where
FF: FiniteField + Hashable<H::T>,
H: Hasher,
pub fn new(
offset: FF,
omega: FF,
domain_length: usize,
expansion_factor: usize,
colinearity_checks_count: usize
) -> Self
pub fn prove(
&self,
codeword: &[FF],
proof_stream: &mut ProofStream
) -> Result<Vec<usize>, Box<dyn Error>>
pub fn verify(
&self,
proof_stream: &mut ProofStream
) -> Result<Vec<(usize, FF)>, Box<dyn Error>>
pub fn get_evaluation_domain(&self) -> Vec<FF>
Trait Implementations
Auto Trait Implementations
impl<FF, H> RefUnwindSafe for Fri<FF, H>where
FF: RefUnwindSafe,
H: RefUnwindSafe,
impl<FF, H> Send for Fri<FF, H>where
H: Send,
impl<FF, H> Sync for Fri<FF, H>where
H: Sync,
impl<FF, H> Unpin for Fri<FF, H>where
FF: Unpin,
H: Unpin,
impl<FF, H> UnwindSafe for Fri<FF, H>where
FF: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more