Module hasher

Module hasher 

Source
Expand description

Hashers (feature-gated) and utilities for implementing them.

Re-exports§

pub use blake3::Blake3Hasher;
pub use sha2::Sha2Hasher;

Modules§

blake3
A node hasher making use of blake3.
sha2
A node and value hasher making use of sha2-256.

Structs§

BinaryHasher
A node and value hasher constructed from a simple binary hasher.

Traits§

BinaryHash
A simple trait for representing binary hash functions.
NodeHasher
A trie node hash function specialized for 64 bytes of data.
ValueHasher
A hasher for arbitrary-length values.

Functions§

node_kind_by_msb
Get the node kind, according to a most-significant bit labeling scheme.
set_msb
Set the most-significant bit of the node.
unset_msb