INNER CODE UNIT · Rust

update

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

    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 {
    fn default() -> Self {
        Self::new()
    }
}

fn optional_param(manifest: &RunManifest, key: &str) -> String {
    optional_string(manifest.params.get(key).map(String::as_str))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…