Trait penumbra_tct::internal::interface::Witness

source ·
pub trait Witness: Height + Sized {
    // Required method
    fn witness(&self, index: impl Into<u64>) -> Option<(AuthPath<Self>, Hash)>;
}
Available on crate feature internal only.
Expand description

Witness an authentication path into a tree, or remove a witnessed item from one.

Required Methods§

source

fn witness(&self, index: impl Into<u64>) -> Option<(AuthPath<Self>, Hash)>

Witness an authentication path to the given index in the tree.

The input mutable slice should be at least the height of the tree, and is overwritten by this function.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Witness for penumbra_tct::internal::complete::Item

source§

impl Witness for penumbra_tct::internal::frontier::Item

source§

impl<Child: Focus + Witness> Witness for penumbra_tct::internal::frontier::Node<Child>
where Child::Complete: Witness,

source§

impl<Child: GetHash + Witness + Clone> Witness for penumbra_tct::internal::complete::Node<Child>

source§

impl<Item: Focus + Witness + Clone> Witness for penumbra_tct::internal::frontier::Tier<Item>
where Item::Complete: Witness + Clone,

source§

impl<Item: Focus + Witness + Clone> Witness for Top<Item>
where Item::Complete: Witness + Clone,

source§

impl<Item: GetHash + Witness + Clone> Witness for penumbra_tct::internal::complete::Tier<Item>

source§

impl<Item: Witness> Witness for penumbra_tct::internal::complete::Leaf<Item>

source§

impl<Item: Witness> Witness for penumbra_tct::internal::frontier::Leaf<Item>