Trait MerkleProof

Source
pub trait MerkleProof<T: NodeValue>:
    Eq
    + PartialEq
    + Hash
    + Clone
    + CanonicalSerialize
    + CanonicalDeserialize
    + Serialize
    + for<'a> Deserialize<'a> {
    // Required methods
    fn height(&self) -> usize;
    fn path_values(&self) -> &[Vec<T>];
}
Expand description

Trait for a Merkle proof

Required Methods§

Source

fn height(&self) -> usize

Expected height of the Merkle tree.

Source

fn path_values(&self) -> &[Vec<T>]

Return all values of siblings of this Merkle path

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§