Struct commit_verify::merkle::MerkleNode [−][src]
#[repr(transparent)]pub struct MerkleNode(_);Expand description
A hash type for LNPBP-81 Merkle tree leaves, branches and root
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write trait, and to never return errors under
any conditions. Read more
Flag indicating whether user-visible serializations of this hash
should be backward. For some reason Satoshi decided this should be
true for Sha256dHash, so here we are. Read more
Produce a hash from the current state of a given engine
Copies a byte slice into a hash object
Constructs a hash from the underlying byte array
Unwraps the hash and returns the underlying byte array
Unwraps the hash and returns a reference to the underlying byte array
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
type Strategy = UsingStrict
type Strategy = UsingStrict
Specific strategy. List of supported strategies: Read more
type Strategy = HashFixedBytes
type Strategy = HashFixedBytes
Specific strategy. List of supported strategies: Read more
Auto Trait Implementations
impl RefUnwindSafe for MerkleNode
impl Send for MerkleNode
impl Sync for MerkleNode
impl Unpin for MerkleNode
impl UnwindSafe for MerkleNode
Blanket Implementations
pub fn base32_len(&self) -> usize
pub fn base32_len(&self) -> usize
Calculate the base32 serialized length
Mutably borrows from an owned value. Read more
pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator