Trait flow_sdk::algorithms::FlowHasher[][src]

pub trait FlowHasher {
    type Algorithm: HashAlgorithm;
    fn new() -> Self;
fn update<B: AsRef<[u8]> + ?Sized>(&mut self, bytes: &B);
fn finalize(self) -> [u8; 32]; }
Expand description

A hasher.

Associated Types

The algorithm of this hasher.

Required methods

Creates a new hasher.

Updates the hasher with bytes.

Finalize the hasher, returns the 256 bit hash.

Implementors