hash

Function hash 

Source
pub fn hash(data: impl AsRef<[u8]>) -> [u8; 20]
Expand description

Computes TentHash in one go for a contiguous slice of data.

ยงExample

let hash = tenthash::hash("Hello world!");

assert_eq!(&hash[..4], &[0x15, 0x5f, 0xa, 0x35]);