[][src]Struct zkp_merkle_tree::Commitment

pub struct Commitment { /* fields omitted */ }

Methods

impl Commitment[src]

pub fn from_size_hash(size: usize, hash: &Hash) -> Result<Self>[src]

pub fn size(&self) -> usize[src]

pub fn hash(&self) -> &Hash[src]

pub fn sort_indices(&self, indices: &[usize]) -> Result<Vec<Index>>[src]

Convert leaf indices to a sorted list of unique Indexs and validates their range.

pub fn proof_size(&self, indices: &[usize]) -> Result<usize>[src]

The number of hashes in the proof for the given set of indices.

Trait Implementations

impl Clone for Commitment[src]

impl Default for Commitment[src]

impl Debug for Commitment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,