Skip to main content

Crate miden_stateful_hasher

Crate miden_stateful_hasher 

Source
Expand description

Stateful sponge-like hashers for cryptographic hashing.

This crate provides the StatefulHasher trait and implementations that maintain an evolving state during hashing. This interface is used by commitment schemes and Merkle trees to incrementally absorb data and squeeze out digests.

§Implementations

Structs§

ChainingHasher
An adapter that chains state with new input, hashing state || encode(input).
SerializingStatefulSponge
An adapter that serializes field elements to binary and delegates to an inner StatefulHasher.
StatefulSponge
A stateful sponge wrapper around a cryptographic permutation.
TruncatingHasher
Hasher analogue of p3-symmetric’s TruncatedPermutation.

Traits§

Alignable
Defines alignment for stateful hashers.
StatefulHasher
Trait for stateful sponge-like hashers.