Function get_hash_from_u8

Source
pub fn get_hash_from_u8(data: &[u8]) -> Hash
Expand description

Computes the SHA-256 digest of the byte slice data and returns a Hash from bitcoin_hashes.