Trait ckb_merkle_mountain_range::MMRStore
source · [−]pub trait MMRStore<Elem> {
fn get_elem(&self, pos: u64) -> Result<Option<Elem>>;
fn append(&mut self, pos: u64, elems: Vec<Elem>) -> Result<()>;
}
pub trait MMRStore<Elem> {
fn get_elem(&self, pos: u64) -> Result<Option<Elem>>;
fn append(&mut self, pos: u64, elems: Vec<Elem>) -> Result<()>;
}