Trait penumbra_tct::internal::path::Path

source ·
pub trait Path: IsHeight + Sized {
    type Path;

    // Required method
    fn root(path: &Self::Path, index: u64, leaf: Hash) -> Hash;
}
Available on crate feature internal only.
Expand description

Identifies the unique type representing an authentication path for the given height.

Required Associated Types§

source

type Path

The authentication path for this height.

Required Methods§

source

fn root(path: &Self::Path, index: u64, leaf: Hash) -> Hash

Calculate the root hash for a path leading to a leaf with the given index and hash.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Path for Zero

§

type Path = Leaf

source§

impl<Child, N: Path<Path = Child>> Path for Succ<N>

§

type Path = Node<Child>