use sha2::{Digest, Sha256}; pub fn sha256(data: &[u8]) -> Vec<u8> { let mut hasher = Sha256::new(); hasher.update(data); hasher.finalize().to_vec() }