Function forest_encoding::blake2b_variable [−][src]
Expand description
Generates blake2b hash with provided size.
Example
use forest_encoding::blake2b_variable;
let ingest: Vec<u8> = vec![];
let hash = blake2b_variable(&ingest, 20);
assert_eq!(hash.len(), 20);