Trait diem_crypto::hash::CryptoHasher[][src]

pub trait CryptoHasher: Default + Write {
    fn seed() -> &'static [u8; 32];
fn update(&mut self, bytes: &[u8]);
fn finish(self) -> HashValue; }
Expand description

A trait for representing the state of a cryptographic hasher.

Required methods

fn seed() -> &'static [u8; 32][src]

Expand description

the seed used to initialize hashing Self before the serialization bytes of the actual value

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

Expand description

Write bytes into the hasher.

fn finish(self) -> HashValue[src]

Expand description

Finish constructing the HashValue.

Loading content...

Implementors

impl CryptoHasher for EventAccumulatorHasher[src]

fn seed() -> &'static [u8; 32][src]

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

fn finish(self) -> HashValue[src]

impl CryptoHasher for SparseMerkleInternalHasher[src]

fn seed() -> &'static [u8; 32][src]

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

fn finish(self) -> HashValue[src]

impl CryptoHasher for TestOnlyHasher[src]

fn seed() -> &'static [u8; 32][src]

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

fn finish(self) -> HashValue[src]

impl CryptoHasher for TransactionAccumulatorHasher[src]

fn seed() -> &'static [u8; 32][src]

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

fn finish(self) -> HashValue[src]

impl CryptoHasher for VoteProposalHasher[src]

fn seed() -> &'static [u8; 32][src]

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

fn finish(self) -> HashValue[src]

Loading content...