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
Returns the parent node within the tree of the two given nodes.
fn empty_root(_: usize) -> Self
fn empty_root(_: usize) -> Self
Returns the empty root for the given depth.