hash

Function hash 

Source
pub fn hash(data: &[u8]) -> CryptoHash
Expand 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);