anza 0.5.0

Ultra-lightweight, zero-copy, cryptographically verified Server-Templated UI (STUI) engine
Documentation
1
2
3
4
5
6
7
8
pub fn content(bytes: &[u8]) -> [u8; 32] {
  let hash = blake3::hash(bytes);
  *hash.as_bytes()
}

pub fn hex(bytes: &[u8]) -> String {
  blake3::hash(bytes).to_hex().to_string()
}