Struct crypto::Sha3Hasher
zaun_community_protocol::crypto::Sha3Hasher · Struct
pub struct Sha3Hasher(…)An incremental content_hash, for attachment files read in pieces.
Methods
Section titled “Methods”pub fn new() -> SelfAn empty hash.
update
Section titled “update”pub fn update(&mut self, bytes: &[u8])Feeds bytes.
finalize
Section titled “finalize”pub fn finalize(self) -> [u8; 32]The digest.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default