[][src]Struct zkp_merkle_tree::Proof

pub struct Proof { /* fields omitted */ }

Methods

impl Proof[src]

pub fn from_hashes(
    commitment: &Commitment,
    indices: &[usize],
    hashes: &[Hash]
) -> Result<Self>
[src]

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

pub fn verify<Leaf: Hashable>(&self, leafs: &[(usize, Leaf)]) -> Result<()>[src]

Trait Implementations

impl Clone for Proof[src]

impl Debug for Proof[src]

Auto Trait Implementations

impl Send for Proof

impl Unpin for Proof

impl Sync for Proof

impl UnwindSafe for Proof

impl RefUnwindSafe for Proof

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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>,