pub struct BaseFoldVerifierChannel<'a, F, Channel>{ /* private fields */ }Expand description
A verifier channel that uses ZK BaseFold for all oracle commitments and openings.
This channel always applies zero-knowledge blinding. The FRI parameters must be set up
with log_batch_size = 1 and log_msg_len = witness_log_len + 1 to account for the mask.
§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,
oracle_specs: &'a [OracleSpec],
fri_params: &'a FRIParams<F>,
) -> Self
pub const fn new( channel: Channel, oracle_specs: &'a [OracleSpec], 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_oracle_relation across every call
are processed here in one batch: masking, one batched sumcheck reducing the masked claims
to a shared point r, then one combined FRI opening over every committed oracle
(in oracle-index order). Because the whole opening is deferred to this point, every oracle
is committed and there is a single sumcheck point, 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§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