Skip to content

Struct crypto::Sha3Hasher

zaun_community_protocol::crypto::Sha3Hasher · Struct

pub struct Sha3Hasher(…)

An incremental content_hash, for attachment files read in pieces.

pub fn new() -> Self

An empty hash.

pub fn update(&mut self, bytes: &[u8])

Feeds bytes.

pub fn finalize(self) -> [u8; 32]

The digest.

Clone, Debug, Default

Full rustdoc page