Trait frame_support::StorageHasher[][src]

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

    const METADATA: StorageHasher;

    fn hash(x: &[u8]) -> Self::Output;
}

Hasher to use to hash keys to insert to storage.

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn hash(x: &[u8]) -> Self::Output[src]

Loading content...

Implementors

impl StorageHasher for Blake2_128[src]

impl StorageHasher for Blake2_128Concat[src]

type Output = Vec<u8>

impl StorageHasher for Blake2_256[src]

impl StorageHasher for Identity[src]

type Output = Vec<u8>

impl StorageHasher for Twox64Concat[src]

type Output = Vec<u8>

impl StorageHasher for Twox128[src]

impl StorageHasher for Twox256[src]

Loading content...