Trait frame_support::Hashable

source ·
pub trait Hashable: Sized {
    // Required methods
    fn blake2_128(&self) -> [u8; 16];
    fn blake2_256(&self) -> [u8; 32];
    fn blake2_128_concat(&self) -> Vec<u8> ;
    fn twox_128(&self) -> [u8; 16];
    fn twox_256(&self) -> [u8; 32];
    fn twox_64_concat(&self) -> Vec<u8> ;
    fn identity(&self) -> Vec<u8> ;
}

Required Methods§

source

fn blake2_128(&self) -> [u8; 16]

source

fn blake2_256(&self) -> [u8; 32]

source

fn blake2_128_concat(&self) -> Vec<u8>

source

fn twox_128(&self) -> [u8; 16]

source

fn twox_256(&self) -> [u8; 32]

source

fn twox_64_concat(&self) -> Vec<u8>

source

fn identity(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Codec> Hashable for T