pub fn hash_data(data: &[u8]) -> Vec<u8> ⓘ
Compute a SHA-256 hash of data. Returns a 32-byte Vec<u8>.
data
Vec<u8>