pub struct FRIQueryProver<F, P, C, Data = Vec<P>>{ /* private fields */ }Expand description
A prover for the FRI query phase.
This is a composition of ProxTestOracleProvers mirroring the verifier’s FRIQueryVerifier:
a BatchBrakedownOracleProver for the codeword’s interleaved reduction, then one
FRIOracleProver per fold arity for the subsequent reductions.
Implementations§
Source§impl<F, P, C, Data> FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> FRIQueryProver<F, P, C, Data>
Sourcepub const fn new(
codeword_oracle: BatchBrakedownOracleProver<P, C, Data>,
fri_oracles: Vec<FRIOracleProver<F, C>>,
) -> Self
pub const fn new( codeword_oracle: BatchBrakedownOracleProver<P, C, Data>, fri_oracles: Vec<FRIOracleProver<F, C>>, ) -> Self
Constructs a query prover from the per-oracle provers built during the fold phase.
codeword_oracle is the BatchBrakedownOracleProver for the originally committed
interleaved codeword(s), and fri_oracles holds one FRIOracleProver per fold arity. The
terminal codeword is sent in full and therefore is not represented here.
Sourcepub fn prove_queries<Channel>(
&self,
indices: &[Channel::Word],
channel: &mut Channel,
)where
Channel: MerkleIPProverChannel<F, Commitment = C>,
pub fn prove_queries<Channel>(
&self,
indices: &[Channel::Word],
channel: &mut Channel,
)where
Channel: MerkleIPProverChannel<F, Commitment = C>,
Proves the FRI challenge queries, batched per oracle.
For each committed oracle (the codeword first, then each fold-round oracle excluding the terminal codeword) this sends the oracle’s optimal Merkle layer once, followed by the coset opening for each query index. This per-oracle batched layout matches the verifier, which receives each oracle’s layer and then all of its query openings together.
§Arguments
indices- the sampled query indices into the original codeword domain
Auto Trait Implementations§
impl<F, P, C, Data> Freeze for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> RefUnwindSafe for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> Send for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> Sync for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> Unpin for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> UnsafeUnpin for FRIQueryProver<F, P, C, Data>
impl<F, P, C, Data> UnwindSafe for FRIQueryProver<F, P, C, Data>
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
§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>
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