Trait cumulus_primitives_core::relay_chain::HashT[][src]

pub trait HashT: 'static + MaybeSerializeDeserialize + Debug + Clone + Eq + PartialEq<Self> + Hasher<Out = Self::Output> {
    type Output: Member + MaybeSerializeDeserialize + Debug + Hash + AsRef<[u8]> + AsMut<[u8]> + Copy + Default + Encode + Decode + MaxEncodedLen + TypeInfo;
    fn ordered_trie_root(input: Vec<Vec<u8, Global>, Global>) -> Self::Output;
fn trie_root(
        input: Vec<(Vec<u8, Global>, Vec<u8, Global>), Global>
    ) -> Self::Output; fn hash(s: &[u8]) -> Self::Output { ... }
fn hash_of<S>(s: &S) -> Self::Output
    where
        S: Encode
, { ... } }
Expand description

Abstraction around hashing

Associated Types

The hash type produced.

Required methods

The ordered Patricia tree root of the given input.

The Patricia tree root of the given mapping.

Provided methods

Produce the hash of some byte-slice.

Produce the hash of some codec-encodable value.

Implementations on Foreign Types

Implementors