pub struct CommitmentSchemeVerifier<MC: MerkleChannel> {
pub trees: TreeVec<MerkleVerifierLifted<MC::H>>,
pub config: PcsConfig,
}Expand description
The verifier side of a FRI polynomial commitment scheme. See super.
Fields§
§trees: TreeVec<MerkleVerifierLifted<MC::H>>§config: PcsConfigImplementations§
Source§impl<MC: MerkleChannel> CommitmentSchemeVerifier<MC>
impl<MC: MerkleChannel> CommitmentSchemeVerifier<MC>
pub fn new(config: PcsConfig) -> Self
Sourcepub fn commit(
&mut self,
commitment: <MC::H as MerkleHasherLifted>::Hash,
log_sizes: &[u32],
channel: &mut MC::C,
)
pub fn commit( &mut self, commitment: <MC::H as MerkleHasherLifted>::Hash, log_sizes: &[u32], channel: &mut MC::C, )
Reads a commitment from the prover.
pub fn verify_values( &self, sampled_points: TreeVec<ColumnVec<Vec<CirclePoint<SecureField>>>>, proof: CommitmentSchemeProof<MC::H>, channel: &mut MC::C, ) -> Result<(), VerificationError>
Trait Implementations§
Source§impl<MC: Default + MerkleChannel> Default for CommitmentSchemeVerifier<MC>
impl<MC: Default + MerkleChannel> Default for CommitmentSchemeVerifier<MC>
Source§fn default() -> CommitmentSchemeVerifier<MC>
fn default() -> CommitmentSchemeVerifier<MC>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<MC> Freeze for CommitmentSchemeVerifier<MC>
impl<MC> RefUnwindSafe for CommitmentSchemeVerifier<MC>
impl<MC> Send for CommitmentSchemeVerifier<MC>
impl<MC> Sync for CommitmentSchemeVerifier<MC>
impl<MC> Unpin for CommitmentSchemeVerifier<MC>
impl<MC> UnsafeUnpin for CommitmentSchemeVerifier<MC>
impl<MC> UnwindSafe for CommitmentSchemeVerifier<MC>
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
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>
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