Skip to main content

hash_bytes

Function hash_bytes 

Source
pub fn hash_bytes(data: &[u8]) -> [u8; 32]
Expand description

Compute SHA-256 of arbitrary bytes, returning a 32-byte array.