substrate/substrate library

Classes

Blake2bHasher
Blake2b hash
Hasher
StorageDoubleMap<K1, K2, V>
StorageHasher<K>
StorageMap<K, V>
StorageNMap<V>
StorageQuadrupleMap<K1, K2, K3, K4, V>
StorageQuintupleMap<K1, K2, K3, K4, K5, V>
StorageSextupleMap<K1, K2, K3, K4, K5, K6, V>
StorageTripleMap<K1, K2, K3, V>
StorageValue<V>
TwoxxHasher
XX hash
XXHash64
XXHash64 is a fast and efficient non-cryptographic hash function for 64-bit platforms. It is designed for producing a quick and reliable hash value for a given data, which can be used for many applications, such as checksum, data validation, etc. In addition, it has a good distribution of hash values, which helps to reduce collisions.

Extensions

XXHash64StringExtension on String
Extension to String to generate xxh64 code.

Constants

xxh64 → const XXHash64
An instance of XXHash64 with seed = 0

Functions

xxh64code(String input, [Encoding? encoding]) int
Gets the 64-bit xxHash value of a String.
xxh64sum(String input, [Encoding? encoding]) String
Gets the 64-bit xxHash hash of a String in hexadecimal.