INNER CODE UNIT · Rust

streaming_hasher_matches_one_shot_blake3

logannye/rosalind · crates/receipt-wasm/src/lib.rs:473

    fn streaming_hasher_matches_one_shot_blake3() {
        let mut hasher = Blake3Hasher::new();
        hasher.update(b"large ");
        hasher.update(b"artifact");
        assert_eq!(
            hasher.finalize_hex(),
            blake3::hash(b"large artifact").to_hex().to_string()
        );
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…