Trait linera_base::crypto::Hashable

source ·
pub trait Hashable<Hasher> {
    // Required method
    fn write(&self, hasher: &mut Hasher);
}
Expand description

Something that we know how to hash.

Required Methods§

source

fn write(&self, hasher: &mut Hasher)

Send the content of Self to the given hasher.

Implementations on Foreign Types§

source§

impl<Hasher> Hashable<Hasher> for [u8]
where Hasher: Write,

source§

fn write(&self, hasher: &mut Hasher)

Implementors§

source§

impl<'de, T, Hasher> Hashable<Hasher> for T
where T: BcsHashable<'de>, Hasher: Write,