bittensor.utils.substrate_utils.hasher#

Helper functions used to calculate keys for Substrate storage items

Functions#

blake2_128(data)

Helper function to calculate a 16 bytes Blake2b hash for provided data, used as key for Substrate storage items

blake2_128_concat(data)

Helper function to calculate a 16 bytes Blake2b hash for provided data, concatenated with data, used as key

blake2_256(data)

Helper function to calculate a 32 bytes Blake2b hash for provided data, used as key for Substrate storage items

identity(data)

two_x64_concat(data)

Helper function to calculate a xxh64 hash with concatenated data for provided data,

xxh128(data)

Helper function to calculate a 2 concatenated xxh64 hash for provided data, used as key for several Substrate

xxh64(data)

Module Contents#

bittensor.utils.substrate_utils.hasher.blake2_128(data)#

Helper function to calculate a 16 bytes Blake2b hash for provided data, used as key for Substrate storage items

bittensor.utils.substrate_utils.hasher.blake2_128_concat(data)#

Helper function to calculate a 16 bytes Blake2b hash for provided data, concatenated with data, used as key for Substrate storage items

bittensor.utils.substrate_utils.hasher.blake2_256(data)#

Helper function to calculate a 32 bytes Blake2b hash for provided data, used as key for Substrate storage items

bittensor.utils.substrate_utils.hasher.identity(data)#
bittensor.utils.substrate_utils.hasher.two_x64_concat(data)#

Helper function to calculate a xxh64 hash with concatenated data for provided data, used as key for several Substrate

bittensor.utils.substrate_utils.hasher.xxh128(data)#

Helper function to calculate a 2 concatenated xxh64 hash for provided data, used as key for several Substrate

bittensor.utils.substrate_utils.hasher.xxh64(data)#