[][src]Trait frame_support::StorageHasher

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

    pub const METADATA: StorageHasher;

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

Hasher to use to hash keys to insert to storage.

Associated Types

type Output: AsRef<[u8]>[src]

Loading content...

Associated Constants

pub const METADATA: StorageHasher[src]

Loading content...

Required methods

pub 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...