Trait frame_support::ReversibleStorageHasher[][src]

pub trait ReversibleStorageHasher: StorageHasher {
    fn reverse(x: &[u8]) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

Hasher to use to hash keys to insert to storage.

Reversible hasher store the encoded key after the hash part.

Required methods

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Split the hash part out of the input.

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

Loading content...

Implementors

impl ReversibleStorageHasher for Blake2_128Concat[src]

impl ReversibleStorageHasher for Identity[src]

impl ReversibleStorageHasher for Twox64Concat[src]

Loading content...