pub trait StorageHasher: 'static {
    type Output: AsRef<[u8]>;

    const METADATA: StorageHasher;

    fn hash(x: &[u8]) -> Self::Output;
fn max_len<K: MaxEncodedLen>() -> usize; }
Expand description

Hasher to use to hash keys to insert to storage.

Associated Types

Associated Constants

Required methods

The max length of the final hash, for the given key type.

Implementors