Skip to main content

hash_bytes

Function hash_bytes 

Source
pub fn hash_bytes(content: &[u8]) -> Blake3Hash
Expand description

Hash a byte slice using BLAKE3.

This is a convenience function for hashing in-memory data.

ยงExamples

use sqry_core::hash::hash_bytes;

let hash = hash_bytes(b"hello world");
println!("Content hash: {}", hash);