pub struct FRIParams<F, FA>where
F: BinaryField,
FA: BinaryField,{ /* private fields */ }
Expand description
Parameters for an FRI interleaved code proximity protocol.
Implementations§
source§impl<F, FA> FRIParams<F, FA>where
F: BinaryField,
FA: BinaryField,
impl<F, FA> FRIParams<F, FA>where
F: BinaryField,
FA: BinaryField,
sourcepub fn rs_code(&self) -> &ReedSolomonCode<FA>
pub fn rs_code(&self) -> &ReedSolomonCode<FA>
The Reed-Solomon code the verifier is testing proximity to.
source§impl<F, FA> FRIParams<F, FA>where
F: BinaryField,
FA: BinaryField,
impl<F, FA> FRIParams<F, FA>where
F: BinaryField,
FA: BinaryField,
sourcepub fn log_batch_size(&self) -> usize
pub fn log_batch_size(&self) -> usize
Vector commitment scheme for the codeword oracle.
sourcepub fn n_test_queries(&self) -> usize
pub fn n_test_queries(&self) -> usize
The number oracle consistency queries required during the query phase.
source§impl<F, FA> FRIParams<F, FA>
impl<F, FA> FRIParams<F, FA>
pub fn new( rs_code: ReedSolomonCode<FA>, log_batch_size: usize, fold_arities: Vec<usize>, n_test_queries: usize, ) -> Result<Self, Error>
pub fn n_fold_rounds(&self) -> usize
sourcepub fn index_bits(&self) -> usize
pub fn index_bits(&self) -> usize
Number of bits in the query indices sampled during the query phase.
sourcepub fn n_final_challenges(&self) -> usize
pub fn n_final_challenges(&self) -> usize
Number of folding challenges the verifier sends after receiving the last oracle.
sourcepub fn fold_arities(&self) -> &[usize]
pub fn fold_arities(&self) -> &[usize]
The reduction arities between each oracle sent to the verifier.
Trait Implementations§
Auto Trait Implementations§
impl<F, FA> Freeze for FRIParams<F, FA>
impl<F, FA> RefUnwindSafe for FRIParams<F, FA>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
F: RefUnwindSafe,
FA: RefUnwindSafe,
impl<F, FA> Send for FRIParams<F, FA>
impl<F, FA> Sync for FRIParams<F, FA>
impl<F, FA> Unpin for FRIParams<F, FA>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
F: Unpin,
FA: Unpin,
impl<F, FA> UnwindSafe for FRIParams<F, FA>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
F: UnwindSafe,
FA: 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
§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