Trait incrementalmerkletree::Frontier[][src]

pub trait Frontier<H> {
    fn append(&mut self, value: &H) -> bool;
fn root(&self) -> H; }
Expand description

A possibly-empty incremental Merkle frontier.

Required methods

Appends a new value to the frontier at the next available slot. Returns true if successful and false if the frontier would exceed the maximum allowed depth.

Obtains the current root of this Merkle frontier by hashing against empty nodes up to the maximum height of the pruned tree that the frontier represents.

Implementors