Skip to main content
Extension trait for hash state accumulators. This trait adds the update_with method to hash states, allowing you to directly hash values of any type T that implements Hash, rather than having to manually convert values to felt252 first. This provides a more ergonomic API when working with complex types.

Signature

Trait functions

update_with

Updates the hash state with the given value and returns the updated state.

Signature

Examples