LegacyHash
A trait for hashing values using a felt252
as hash state, used for backwards compatibility. NOTE: Implement Hash
instead of this trait if possible.
Fully qualified path: core::hash::LegacyHash
pub trait LegacyHash<T>
Trait functions
hash
Takes a felt252
state and a value of type T
and returns the hash result. # Examples
use core::pedersen::PedersenTrait;
use core::hash::LegacyHash;
let hash = LegacyHash::hash(0, 1);
Fully qualified path: core::hash::LegacyHash::hash
fn hash(state: felt252, value: T) -> felt252