Trait zcash_primitives::merkle_tree::Hashable[][src]

pub trait Hashable: Clone + Copy {
    fn read<R: Read>(reader: R) -> Result<Self>;
fn write<W: Write>(&self, writer: W) -> Result<()>;
fn combine(_: usize, _: &Self, _: &Self) -> Self;
fn blank() -> Self;
fn empty_root(_: usize) -> Self; }
Expand description

A hashable node within a Merkle tree.

Required methods

Parses a node from the given byte source.

Serializes this node.

Returns the parent node within the tree of the two given nodes.

Returns a blank leaf node.

Returns the empty root for the given depth.

Implementors