pub trait Hasher {
type Output;
fn hash(s: &[u8]) -> Self::Output;
fn hash_of<S: Encode>(s: &S) -> Self::Output { ... }
}
Expand description
This represents the hasher used by a node to hash things like block headers and extrinsics.
pub trait Hasher {
type Output;
fn hash(s: &[u8]) -> Self::Output;
fn hash_of<S: Encode>(s: &S) -> Self::Output { ... }
}
This represents the hasher used by a node to hash things like block headers and extrinsics.