Trait sc_network::multiaddr::multihash::StatefulHasher [−]
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.
Associated Types
Required methods
fn reset(&mut self)
fn reset(&mut self)
Reset the internal hasher state.
Implementors
impl StatefulHasher for Keccak224
impl StatefulHasher for Keccak256
impl StatefulHasher for Keccak384
impl StatefulHasher for Keccak512
impl StatefulHasher for Sha2_256
impl StatefulHasher for Sha2_512
impl StatefulHasher for Sha3_224
impl StatefulHasher for Sha3_256
impl StatefulHasher for Sha3_384
impl StatefulHasher for Sha3_512
impl<S> StatefulHasher for Blake2bHasher<S> where
S: Size,
impl<S> StatefulHasher for Blake2sHasher<S> where
S: Size,
impl<S> StatefulHasher for Blake3Hasher<S> where
S: Size,
impl<S> StatefulHasher for IdentityHasher<S> where
S: Size,