pub struct BaseFoldVerifierChannel<'a, F, Channel>{ /* private fields */ }Expand description
A verifier channel that uses ZK BaseFold for all oracle commitments and openings.
Each round of the schedule is committed as one round oracle, laid out by
layout_rounds, whose commitment arrives with the round’s
last oracle. The opening runs over the round oracles.
§Type Parameters
'a: Lifetime for borrowed referencesF: The binary field typeChannel: The Merkle channel carrying all prover interaction
Implementations§
Source§impl<'a, F, Channel> BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> BaseFoldVerifierChannel<'a, F, Channel>
Sourcepub const fn new(
channel: Channel,
schedule: &'a OracleSchedule,
layouts: &'a [RoundLayout],
fri_params: &'a FRIParams<F>,
) -> Self
pub const fn new( channel: Channel, schedule: &'a OracleSchedule, layouts: &'a [RoundLayout], fri_params: &'a FRIParams<F>, ) -> Self
Creates a new BaseFold ZK verifier channel over a Merkle channel from precomputed FRI parameters.
The FRI parameters should already account for ZK (log_batch_size = 1, doubled message length).
Sourcepub fn finish(self) -> Result<Channel, Error>
pub fn finish(self) -> Result<Channel, Error>
Consumes the channel and verifies the single combined opening over all committed oracles.
All oracle relations queued by
verify_multi_oracle_relation across
every call are processed here in one batch: batching into one relation, then one BaseFold
sumcheck opening over every committed oracle (in oracle-index order). Because the whole
opening is deferred to this point, every oracle is committed, so the precomputed combined
FRIParams (optimal_for_batch over all oracle specs) serves the opening.
Returns the Merkle channel, so a caller can still reach what it accumulated.
Trait Implementations§
Source§impl<'a, F, Channel> IOPVerifierChannel<F> for BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> IOPVerifierChannel<F> for BaseFoldVerifierChannel<'a, F, Channel>
type Oracle = BaseFoldOracle
Source§fn remaining_oracle_specs(&self) -> &[OracleSpec]
fn remaining_oracle_specs(&self) -> &[OracleSpec]
Source§fn recv_oracle(
&mut self,
len: usize,
is_witness_dependent: bool,
) -> Result<Self::Oracle, Error>
fn recv_oracle( &mut self, len: usize, is_witness_dependent: bool, ) -> Result<Self::Oracle, Error>
Source§fn verify_multi_oracle_relation(
&mut self,
operands: impl IntoIterator<Item = (Self::Oracle, TransparentEvalFn<Self::Elem>)>,
claim: Self::Elem,
) -> Result<(), Error>
fn verify_multi_oracle_relation( &mut self, operands: impl IntoIterator<Item = (Self::Oracle, TransparentEvalFn<Self::Elem>)>, claim: Self::Elem, ) -> Result<(), Error>
Source§impl<F, Channel> IPVerifierChannel<F> for BaseFoldVerifierChannel<'_, F, Channel>
impl<F, Channel> IPVerifierChannel<F> for BaseFoldVerifierChannel<'_, F, Channel>
Source§type Elem = <Channel as IPVerifierChannel<F>>::Elem
type Elem = <Channel as IPVerifierChannel<F>>::Elem
Source§fn recv_one(&mut self) -> Result<Self::Elem, Error>
fn recv_one(&mut self) -> Result<Self::Elem, Error>
Source§fn recv_many(&mut self, n: usize) -> Result<Vec<Self::Elem>, Error>
fn recv_many(&mut self, n: usize) -> Result<Vec<Self::Elem>, Error>
n field elements from the prover.Source§fn recv_array<const N: usize>(&mut self) -> Result<[Self::Elem; N], Error>
fn recv_array<const N: usize>(&mut self) -> Result<[Self::Elem; N], Error>
Source§fn recv_public_claim(&mut self) -> Result<Self::Elem, Error>
fn recv_public_claim(&mut self) -> Result<Self::Elem, Error>
Source§fn observe_one(&mut self, val: F) -> Self::Elem
fn observe_one(&mut self, val: F) -> Self::Elem
Source§fn observe_many(&mut self, vals: &[F]) -> Vec<Self::Elem>
fn observe_many(&mut self, vals: &[F]) -> Vec<Self::Elem>
Source§impl<F, Channel> WordIPVerifierChannel<F> for BaseFoldVerifierChannel<'_, F, Channel>
impl<F, Channel> WordIPVerifierChannel<F> for BaseFoldVerifierChannel<'_, F, Channel>
Source§type Word = <Channel as WordIPVerifierChannel<F>>::Word
type Word = <Channel as WordIPVerifierChannel<F>>::Word
Source§fn observe_words(&mut self, words: &[Word]) -> Vec<Self::Word>
fn observe_words(&mut self, words: &[Word]) -> Vec<Self::Word>
Auto Trait Implementations§
impl<'a, F, Channel> !RefUnwindSafe for BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> !Send for BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> !Sync for BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> !UnwindSafe for BaseFoldVerifierChannel<'a, F, Channel>
impl<'a, F, Channel> Freeze for BaseFoldVerifierChannel<'a, F, Channel>where
<Channel as IPVerifierChannel<F>>::Elem: Sized,
<F as UnderlierView>::Underlier: Sized,
Channel: Freeze,
impl<'a, F, Channel> Unpin for BaseFoldVerifierChannel<'a, F, Channel>where
<Channel as IPVerifierChannel<F>>::Elem: Sized + Unpin,
<F as UnderlierView>::Underlier: Sized,
Channel: Unpin,
<Channel as MerkleIPVerifierChannel<F>>::Commitment: Unpin,
impl<'a, F, Channel> UnsafeUnpin for BaseFoldVerifierChannel<'a, F, Channel>where
<Channel as IPVerifierChannel<F>>::Elem: Sized,
<F as UnderlierView>::Underlier: Sized,
Channel: UnsafeUnpin,
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