pub fn hash(data: &[u8]) -> CryptoHashExpand description
Calculates a hash of a bytes slice.
ยงExamples
The example below calculates the hash of the indicated data.
let data = [1, 2, 3];
let hash = unc_primitives_core::hash::hash(&data);pub fn hash(data: &[u8]) -> CryptoHashCalculates a hash of a bytes slice.
The example below calculates the hash of the indicated data.
let data = [1, 2, 3];
let hash = unc_primitives_core::hash::hash(&data);