Trait Hasher

Source
pub trait Hasher {
    // Required methods
    fn write_h256(&mut self, h: &H256);
    fn write_byte(&mut self, b: u8);
    fn finish(self) -> H256;
}
Expand description

Trait for customize hash function

Required Methods§

Source

fn write_h256(&mut self, h: &H256)

Source

fn write_byte(&mut self, b: u8)

Source

fn finish(self) -> H256

Implementors§