StorageHasherEnum enum
Storage hashers for map keys
Different hashing algorithms provide different security and performance tradeoffs.
Values
- blake2_128 → const StorageHasherEnum
-
Blake2 128-bit hash
- blake2_256 → const StorageHasherEnum
-
Blake2 256-bit hash
- blake2_128Concat → const StorageHasherEnum
-
Blake2 128-bit hash concatenated with the key
This allows reverse lookups and enumeration.
- twox128 → const StorageHasherEnum
-
Two-X (XX) 128-bit hash
- twox256 → const StorageHasherEnum
-
Two-X (XX) 256-bit hash
- twox64Concat → const StorageHasherEnum
-
Two-X (XX) 64-bit hash concatenated with the key
This allows reverse lookups and enumeration.
- identity → const StorageHasherEnum
-
Identity "hasher" (no hashing, key used directly)
Only safe when the key space is trusted (e.g., pallet index).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- codec → const $StorageHasherEnum
-
values
→ const List<
StorageHasherEnum> - A constant List of the values in this enum, in order of their declaration.