[][src]Trait proof::MerkleTreeOverlay

pub trait MerkleTreeOverlay {
    fn get_node(path: Vec<Path>) -> Result<Node, Error>;
fn height() -> u64;
fn min_repr_size() -> u64; }

Defines an interface for interacting with Proofs via Paths.

Required methods

fn get_node(path: Vec<Path>) -> Result<Node, Error>

Returns the Node coresponding to the path.

This will match path[0] against a field in the current object and recusively call itself on that field's type with path[1..] until the path is exhausted.

See the SSZ specification to better understand the tree architecture: https://github.com/ethereum/eth2.0-specs/blob/dev/specs/light_client/merkle_proofs.md Returns the Node coresponding to the given path.

fn height() -> u64

Returns the height of the merkle tree.

fn min_repr_size() -> u64

Returns the minimum number of bytes needed to represent the type's value.

Loading content...

Implementations on Foreign Types

impl MerkleTreeOverlay for bool[src]

impl MerkleTreeOverlay for u8[src]

impl MerkleTreeOverlay for u16[src]

impl MerkleTreeOverlay for u32[src]

impl MerkleTreeOverlay for u64[src]

impl MerkleTreeOverlay for u128[src]

impl MerkleTreeOverlay for U256[src]

impl MerkleTreeOverlay for usize[src]

Loading content...

Implementors

impl<T: MerkleTreeOverlay, N: Unsigned> MerkleTreeOverlay for FixedVector<T, N>[src]

impl<T: MerkleTreeOverlay, N: Unsigned> MerkleTreeOverlay for VariableList<T, N>[src]

Loading content...