pub struct FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
F: BinaryField,
FA: BinaryField,
MerkleProver: MerkleTreeProver<F, Scheme = VCS>,
VCS: MerkleTreeScheme<F>,{ /* private fields */ }
Expand description
A prover for the FRI query phase.
Implementations§
source§impl<'a, F, FA, MerkleProver, VCS> FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
F: BinaryField + ExtensionField<FA>,
FA: BinaryField,
MerkleProver: MerkleTreeProver<F, Scheme = VCS>,
VCS: MerkleTreeScheme<F>,
impl<'a, F, FA, MerkleProver, VCS> FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
F: BinaryField + ExtensionField<FA>,
FA: BinaryField,
MerkleProver: MerkleTreeProver<F, Scheme = VCS>,
VCS: MerkleTreeScheme<F>,
sourcepub fn prove_query(
&self,
index: usize,
) -> Result<QueryProof<F, VCS::Proof>, Error>
pub fn prove_query( &self, index: usize, ) -> Result<QueryProof<F, VCS::Proof>, Error>
pub fn vcs_optimal_layers(&self) -> Result<Vec<Vec<VCS::Digest>>, Error>
Auto Trait Implementations§
impl<'a, F, FA, MerkleProver, VCS> Freeze for FRIQueryProver<'a, F, FA, MerkleProver, VCS>
impl<'a, F, FA, MerkleProver, VCS> RefUnwindSafe for FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
<MerkleProver as MerkleTreeProver<F>>::Committed: RefUnwindSafe,
MerkleProver: RefUnwindSafe,
F: RefUnwindSafe,
FA: RefUnwindSafe,
impl<'a, F, FA, MerkleProver, VCS> Send for FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
<MerkleProver as MerkleTreeProver<F>>::Committed: Sync + Send,
MerkleProver: Sync,
impl<'a, F, FA, MerkleProver, VCS> Sync for FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
<MerkleProver as MerkleTreeProver<F>>::Committed: Sync,
MerkleProver: Sync,
impl<'a, F, FA, MerkleProver, VCS> Unpin for FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
<MerkleProver as MerkleTreeProver<F>>::Committed: Unpin,
F: Unpin,
impl<'a, F, FA, MerkleProver, VCS> UnwindSafe for FRIQueryProver<'a, F, FA, MerkleProver, VCS>where
<FA as WithUnderlier>::Underlier: Sized,
<F as WithUnderlier>::Underlier: Sized,
<MerkleProver as MerkleTreeProver<F>>::Committed: RefUnwindSafe + UnwindSafe,
MerkleProver: RefUnwindSafe,
F: RefUnwindSafe + UnwindSafe,
FA: RefUnwindSafe,
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