[][src]Struct beacon::MerkleProof

pub struct MerkleProof<'a> {
    pub leaf: H256,
    pub proof: &'a [H256],
    pub root: H256,
    pub depth: usize,
    pub index: usize,
}

Merkle proof.

Fields

leaf: H256

Leaf of the proof.

proof: &'a [H256]

The proof chain.

root: H256

Root of the proof.

depth: usize

Depth of the proof.

index: usize

Index of the proof.

Methods

impl<'a> MerkleProof<'a>[src]

pub fn is_valid<C: Config>(&self, config: &C) -> bool[src]

Whether the merkle proof is valid.

Auto Trait Implementations

impl<'a> Send for MerkleProof<'a>

impl<'a> Sync for MerkleProof<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.