Function ckb_hash::blake2b_256
source · [−]Expand description
Hashes the slice of binary and returns the digest.
Examples
use ckb_hash::blake2b_256;
let input = b"ckb";
let digest = blake2b_256(&input);
println!("ckbhash({:?}) = {:?}", input, digest);