use digest::Digest; #[inline] pub fn sha256(input: &[u8]) -> Vec { sha2::Sha256::digest(input).to_vec() }