Trait frame_support::ReversibleStorageHasher

source ·
pub trait ReversibleStorageHasher: StorageHasher {
    // Required method
    fn reverse(x: &[u8]) -> &[u8] ;
}
Expand description

Hasher to use to hash keys to insert to storage.

Reversible hasher store the encoded key after the hash part.

Required Methods§

source

fn reverse(x: &[u8]) -> &[u8]

Split the hash part out of the input.

I.e. for input &[hash ++ key ++ some] returns &[key ++ some]

Object Safety§

This trait is not object safe.

Implementors§