[][src]Trait zkp_merkle_tree::VectorCommitment

pub trait VectorCommitment where
    Self: Sync + Sized,
    Self::Leaf: Sync + Hashable
{ type Leaf; fn len(&self) -> usize;
fn leaf(&self, index: usize) -> Self::Leaf; fn is_empty(&self) -> bool { ... }
fn leaf_hash(&self, index: usize) -> Hash { ... }
fn commit(self) -> Result<(Commitment, Tree<Self>)> { ... } }

Associated Types

type Leaf

Loading content...

Required methods

fn len(&self) -> usize

fn leaf(&self, index: usize) -> Self::Leaf

Loading content...

Provided methods

fn is_empty(&self) -> bool

fn leaf_hash(&self, index: usize) -> Hash

fn commit(self) -> Result<(Commitment, Tree<Self>)>

Loading content...

Implementations on Foreign Types

impl<Leaf: Hashable + Clone + Sync> VectorCommitment for Vec<Leaf>[src]

type Leaf = Leaf

Loading content...

Implementors

Loading content...