Trait Paddable

Source
pub trait Paddable {
    // Required method
    fn padding(idx: &TreeIndex, secret: &Secret) -> Self;
}
Expand description

Trait for generating a padding node in the SMT.

Required Methods§

Source

fn padding(idx: &TreeIndex, secret: &Secret) -> Self

When the tree node of the input index doesn’t exist, we need to construct a padding node at that position.

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§