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
StatefulSponge: Wraps a permutation with proper sponge semanticsSerializingStatefulSponge: Serializes field elements to binary before absorbingChainingHasher: Uses chaining modeH(state || input)with a regular hasherTruncatingHasher: Wraps a hasher and returns a shorter fixed digest (prefix)
Structs§
- Chaining
Hasher - An adapter that chains state with new input, hashing
state || encode(input). - Serializing
Stateful Sponge - An adapter that serializes field elements to binary and delegates to an inner
StatefulHasher. - Stateful
Sponge - A stateful sponge wrapper around a cryptographic permutation.
- Truncating
Hasher - Hasher analogue of
p3-symmetric’sTruncatedPermutation.
Traits§
- Alignable
- Defines alignment for stateful hashers.
- Stateful
Hasher - Trait for stateful sponge-like hashers.