Module key

Source
Expand description

Storage key hash function types and trait to override map hash functions.

Enums§

Identity
Identity hash which just prefixes all of the serializes bytes and uses it as the key.
Keccak256
Keccak256 hash helper which hashes through a syscall. This type satisfies the ToKey trait.
Sha256
Sha256 hash helper which hashes through a syscall. This type satisfies the ToKey trait.

Traits§

ToKey
Trait used to generate keys to store data based on a serializable structure.