bittensor.utils.substrate_utils.hasher#
Helper functions used to calculate keys for Substrate storage items
Functions#
|
Helper function to calculate a 16 bytes Blake2b hash for provided data, used as key for Substrate storage items |
|
Helper function to calculate a 16 bytes Blake2b hash for provided data, concatenated with data, used as key |
|
Helper function to calculate a 32 bytes Blake2b hash for provided data, used as key for Substrate storage items |
|
|
|
Helper function to calculate a xxh64 hash with concatenated data for provided data, |
|
Helper function to calculate a 2 concatenated xxh64 hash for provided data, used as key for several Substrate |
|
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)#