Trait aleph_bft_types::Hasher
source · pub trait Hasher: Eq + Clone + Send + Sync + Debug + 'static {
type Hash: AsRef<[u8]> + Eq + Ord + Copy + Clone + Send + Sync + Debug + StdHash + Codec;
// Required method
fn hash(s: &[u8]) -> Self::Hash;
}
Expand description
A hasher, used for creating identifiers for blocks or units.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.