Skip to main content
A trait for hash state accumulators. Provides methods to update a hash state with new values and finalize it into a hash result.

Signature

Trait functions

update

Updates the current hash state self with the given felt252 value and returns a new hash state.

Signature

Examples

finalize

Takes the current state self and returns the hash result.

Signature

Examples