Package 

Class StorageHasher

  • All Implemented Interfaces:
    dev.sublab.substrate.hashers.StorageHashing

    
    public final class StorageHasher
     implements StorageHashing
                        

    Handles storage hashing

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ByteArray hash(RuntimeModuleStorageItem storageItem, List<ByteArrayConvertible> keys) Hashes provided storage item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 hash
        keys - keys for hashing by key-mapping