reth_trie_common

Trait KeyHasher

Source
pub trait KeyHasher:
    Default
    + Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn hash_key<T: AsRef<[u8]>>(bytes: T) -> B256;
}
Expand description

Trait for hashing keys in state.

Required Methods§

Source

fn hash_key<T: AsRef<[u8]>>(bytes: T) -> B256

Hashes the given bytes into a 256-bit hash.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§