Trait sc_network::multiaddr::multihash::StatefulHasher
source · [−]pub trait StatefulHasher: Default + Send + Sync {
type Size: Size;
type Digest: Digest<Self::Size>;
fn update(&mut self, input: &[u8]);
fn finalize(&self) -> Self::Digest;
fn reset(&mut self);
}
Expand description
Trait implemented by a hash function implementation.