[−][src]Trait sp_runtime::traits::Hash
Abstraction around hashing
Associated Types
type Output: Member + MaybeSerializeDeserialize + Debug + Hash + AsRef<[u8]> + AsMut<[u8]> + Copy + Default + Encode + Decode
[src]
The hash type produced.
Required methods
pub fn ordered_trie_root(input: Vec<Vec<u8>>) -> Self::Output
[src]
The ordered Patricia tree root of the given input
.
pub fn trie_root(input: Vec<(Vec<u8>, Vec<u8>)>) -> Self::Output
[src]
The Patricia tree root of the given mapping.
Provided methods
pub fn hash(s: &[u8]) -> Self::Output
[src]
Produce the hash of some byte-slice.
pub fn hash_of<S: Encode>(s: &S) -> Self::Output
[src]
Produce the hash of some codec-encodable value.