Expand description
§Bittensor Utilities
Helper functions for common Bittensor operations including:
- Weight normalization and payload creation
- Cryptographic signature operations
- Unit conversions (TAO/RAO)
Structs§
- Normalized
Weight - Represents a normalized weight for a neuron
Functions§
- create_
signature - Create a signature using a subxt signer
- normalize_
weights - Normalize weights to sum to u16::MAX
- set_
weights_ payload - Create a set_weights payload for submission to the chain
- sign_
message_ hex - Sign a message and return hex-encoded signature
- sign_
with_ keypair - Sign a message with a keypair
- verify_
bittensor_ signature - Verify a Bittensor signature
Type Aliases§
- Bittensor
Signature - Signature type used by Bittensor (sr25519)