Struct commit_verify::mpc::MerkleTree
source · pub struct MerkleTree { /* private fields */ }Expand description
Complete information about LNPBP-4 merkle tree.
Implementations§
source§impl MerkleTree
impl MerkleTree
pub fn root(&self) -> MerkleNode
source§impl MerkleTree
impl MerkleTree
Trait Implementations§
source§impl Clone for MerkleTree
impl Clone for MerkleTree
source§fn clone(&self) -> MerkleTree
fn clone(&self) -> MerkleTree
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CommitStrategy for MerkleTree
impl CommitStrategy for MerkleTree
§type Strategy = ConcealStrict
type Strategy = ConcealStrict
Specific strategy. List of supported strategies: Read more
source§impl CommitmentId for MerkleTree
impl CommitmentId for MerkleTree
source§impl Conceal for MerkleTree
impl Conceal for MerkleTree
source§impl Debug for MerkleTree
impl Debug for MerkleTree
source§impl From<&MerkleTree> for MerkleBlock
impl From<&MerkleTree> for MerkleBlock
source§fn from(tree: &MerkleTree) -> Self
fn from(tree: &MerkleTree) -> Self
Converts to this type from the input type.
source§impl From<MerkleTree> for MerkleBlock
impl From<MerkleTree> for MerkleBlock
source§fn from(tree: MerkleTree) -> Self
fn from(tree: MerkleTree) -> Self
Converts to this type from the input type.
source§impl Hash for MerkleTree
impl Hash for MerkleTree
source§impl PartialEq<MerkleTree> for MerkleTree
impl PartialEq<MerkleTree> for MerkleTree
source§fn eq(&self, other: &MerkleTree) -> bool
fn eq(&self, other: &MerkleTree) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl StrictDecode for MerkleTree
impl StrictDecode for MerkleTree
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for MerkleTree
impl StrictDumb for MerkleTree
fn strict_dumb() -> Self
source§impl StrictEncode for MerkleTree
impl StrictEncode for MerkleTree
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictStruct for MerkleTree
impl StrictStruct for MerkleTree
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for MerkleTree
impl StrictType for MerkleTree
const STRICT_LIB_NAME: &'static str = LIB_NAME_COMMIT_VERIFY
fn strict_name() -> Option<TypeName>
source§impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
§type Error = Error
type Error = Error
Error type that may be reported during
TryCommitVerify::try_commit
and TryCommitVerify::try_verify proceduressource§fn try_commit(source: &MultiSource) -> Result<Self, Error>
fn try_commit(source: &MultiSource) -> Result<Self, Error>
Tries to create commitment to a byte representation of a given message
impl Eq for MerkleTree
impl Proof for MerkleTree
impl StrictProduct for MerkleTree
impl StructuralEq for MerkleTree
impl StructuralPartialEq for MerkleTree
Auto Trait Implementations§
impl RefUnwindSafe for MerkleTree
impl Send for MerkleTree
impl Sync for MerkleTree
impl Unpin for MerkleTree
impl UnwindSafe for MerkleTree
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> CommitEncode for Twhere
T: CommitStrategy,
Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
impl<T> CommitEncode for Twhere T: CommitStrategy, Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write writer instance§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.