k2f_core 0.2.3

K2F semantic tree, lock types, and hashes
Documentation
1
2
3
4
5
6
7
use sha2::{Digest, Sha256};

pub fn sha256_hex(bytes: &[u8]) -> String {
    let mut hasher = Sha256::new();
    hasher.update(bytes);
    format!("{:x}", hasher.finalize())
}