Skip to main content

PartHasher

Trait PartHasher 

Source
pub trait PartHasher {
    // Required method
    fn leaf(&self, leaf: &[u8]) -> [u8; 32];
}
Expand description

Keyed hashing of one part’s leaves. Branches are unkeyed (D11).

Required Methods§

Source

fn leaf(&self, leaf: &[u8]) -> [u8; 32]

One leaf’s encoded bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PartHasher for AuthorshipHasher

Source§

fn leaf(&self, leaf: &[u8]) -> [u8; 32]

Implementors§