-
- All Implemented Interfaces:
-
dev.sublab.substrate.hashers.StorageHashing
public final class StorageHasher implements StorageHashing
Handles storage hashing
-
-
Constructor Summary
Constructors Constructor Description StorageHasher(RuntimeModuleStorage storage)
-
Method Summary
Modifier and Type Method Description ByteArrayhash(RuntimeModuleStorageItem storageItem, List<ByteArrayConvertible> keys)Hashes provided storage item. -
-
Constructor Detail
-
StorageHasher
StorageHasher(RuntimeModuleStorage storage)
-
-
Method Detail
-
hash
ByteArray hash(RuntimeModuleStorageItem storageItem, List<ByteArrayConvertible> keys)
Hashes provided storage item. The hashing can be either plain or key-map
- Parameters:
storageItem- a storage item to hashkeys- keys for hashing by key-mapping
-
-
-
-