pub struct ProverMerkleCommitment<Committed> { /* private fields */ }Expand description
A Merkle commitment produced by ProverMerkleTranscriptChannel, carrying the committed tree
required to open it.
Implementations§
Source§impl<Committed> ProverMerkleCommitment<Committed>
impl<Committed> ProverMerkleCommitment<Committed>
Sourcepub const fn new(
committed: Committed,
depth: usize,
log_leaf_size: usize,
) -> Self
pub const fn new( committed: Committed, depth: usize, log_leaf_size: usize, ) -> Self
Wraps a tree committed with MerkleTreeProver::commit_field_buffer (or
commit_iterated) into the handle the channel opens with.
depth is the commitment’s tree depth and log_leaf_size the base-2 logarithm of the
leaf size the tree was committed at. A prover that has to drop a committed tree between
sending its root and opening it commits the same data again with the same
MerkleTreeProver and wraps the result here; the root it gets back is the one it sent.
Auto Trait Implementations§
impl<Committed> Freeze for ProverMerkleCommitment<Committed>where
Committed: Freeze,
impl<Committed> RefUnwindSafe for ProverMerkleCommitment<Committed>where
Committed: RefUnwindSafe,
impl<Committed> Send for ProverMerkleCommitment<Committed>where
Committed: Send,
impl<Committed> Sync for ProverMerkleCommitment<Committed>where
Committed: Sync,
impl<Committed> Unpin for ProverMerkleCommitment<Committed>where
Committed: Unpin,
impl<Committed> UnsafeUnpin for ProverMerkleCommitment<Committed>where
Committed: UnsafeUnpin,
impl<Committed> UnwindSafe for ProverMerkleCommitment<Committed>where
Committed: UnwindSafe,
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