INNER CODE UNIT · Rust

new

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

    pub fn new() -> Self {
        Self {
            inner: blake3::Hasher::new(),
        }
    }

    /// Add one artifact chunk.
    pub fn update(&mut self, bytes: &[u8]) {
        self.inner.update(bytes);
    }

    /// Return the current digest without consuming the hasher.
    pub fn finalize_hex(&self) -> String {
        self.inner.clone().finalize().to_hex().to_string()
    }
}

impl Default for Blake3Hasher {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…