pub trait Hasher: 'static + Eq + Clone + Send + Sync + Debug {
type Hash: AsRef<[u8]> + Eq + Ord + Copy + Clone + Send + Sync + Debug + Hash + Codec;
fn hash(s: &[u8]) -> Self::Hash;
}
Expand description
A hasher, used for creating identifiers for blocks or units.