Struct snarkvm_algorithms::merkle_tree::merkle_path::MerklePath[][src]

pub struct MerklePath<P: MerkleParameters> {
    pub parameters: P,
    pub path: Vec<(MerkleTreeDigest<P>, MerkleTreeDigest<P>)>,
}

Stores the hashes of a particular path (in order) from leaf to root. Our path is_left_child() if the boolean in path is true.

Fields

parameters: Ppath: Vec<(MerkleTreeDigest<P>, MerkleTreeDigest<P>)>

Implementations

impl<P: MerkleParameters> MerklePath<P>[src]

pub fn verify<L: ToBytes>(
    &self,
    root_hash: &MerkleTreeDigest<P>,
    leaf: &L
) -> Result<bool, MerkleError>
[src]

Trait Implementations

impl<P: Clone + MerkleParameters> Clone for MerklePath<P>[src]

impl<P: Debug + MerkleParameters> Debug for MerklePath<P>[src]

impl<P: MerkleParameters> Default for MerklePath<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for MerklePath<P> where
    P: RefUnwindSafe,
    <<P as MerkleParameters>::H as CRH>::Output: RefUnwindSafe

impl<P> Send for MerklePath<P> where
    P: Send,
    <<P as MerkleParameters>::H as CRH>::Output: Send

impl<P> Sync for MerklePath<P> where
    P: Sync,
    <<P as MerkleParameters>::H as CRH>::Output: Sync

impl<P> Unpin for MerklePath<P> where
    P: Unpin,
    <<P as MerkleParameters>::H as CRH>::Output: Unpin

impl<P> UnwindSafe for MerklePath<P> where
    P: UnwindSafe,
    <<P as MerkleParameters>::H as CRH>::Output: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,