penumbra_tct::internal::path

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Path for Zero

Source§

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

Source§

type Path = Node<Child>