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
pub trait Hasher {
// Required methods
fn write_h256(&mut self, h: &H256);
fn write_byte(&mut self, b: u8);
fn finish(self) -> H256;
}
Trait for customize hash function