pub struct ProtocolParams {
pub log_blowup: u32,
pub log_folding_arity: u32,
pub num_queries: u32,
pub query_pow_bits: u32,
pub ood_pow_bits: u32,
pub deep_pow_bits: u32,
pub folding_pow_bits: u32,
pub lookup_pow_bits: u32,
}Expand description
Protocol parameters that enter the round budget.
Every field must be bound into the protocol’s Fiat-Shamir transcript, so a proof cannot be graded under parameters it was not produced with.
Fields§
§log_blowup: u32Log2 of the LDE blowup factor; the FRI rate is 2^-log_blowup.
log_folding_arity: u32Log2 of the FRI folding arity.
num_queries: u32Number of FRI query repetitions.
query_pow_bits: u32Grinding bits before query index sampling.
ood_pow_bits: u32Grinding bits before the out-of-domain evaluation point is sampled.
This round’s error is the DEEP-ALI identity’s degree over the field size, fixed by the AIR and the trace height. Every other round here has a second lever — the query count, the folding arity, the width of what is batched — so this is the only one whose bits nothing but grinding can buy back.
deep_pow_bits: u32Grinding bits before the DEEP-composition challenge is sampled. Read only when
AirShape::num_deep_terms is Some.
folding_pow_bits: u32Grinding bits before each FRI folding challenge.
lookup_pow_bits: u32Grinding bits before the lookup / permutation argument’s challenges are sampled.
The lookup round’s error grows linearly in trace length, so its absence degrades with instance size.
Trait Implementations§
Source§impl Clone for ProtocolParams
impl Clone for ProtocolParams
impl Copy for ProtocolParams
Source§impl Debug for ProtocolParams
impl Debug for ProtocolParams
impl Eq for ProtocolParams
Source§impl PartialEq for ProtocolParams
impl PartialEq for ProtocolParams
impl StructuralPartialEq for ProtocolParams
Auto Trait Implementations§
impl Freeze for ProtocolParams
impl RefUnwindSafe for ProtocolParams
impl Send for ProtocolParams
impl Sync for ProtocolParams
impl Unpin for ProtocolParams
impl UnsafeUnpin for ProtocolParams
impl UnwindSafe for ProtocolParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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