Hotkey disassociation · Runtime & node hardening · Gamma service API keys · Runtime spec 499 · Python SDK 11.3.9
V499 raises the runtime spec_version from 498 to 499 with transaction_version staying at 2 and no storage migrations. It introduces SubtensorModule::disassociate_hotkey to release unused hotkeys back to an unowned state, corrects multi-mechanism Yuma Emission aggregation so stored emissions match actual payouts, trims Gamma emission whitelist removal cost, and lands a broad runtime and node security pass across post-quantum/hashed admission, mechanism weight delegation, limit orders, and Frontier EVM RPC state overrides.
Paired with the runtime upgrade, Python SDK 11.3.9 (requiring bittensor-core>=0.1.16) ships the DisassociateHotkey intent, Gamma service API key management (btcli service key and service.key_operations), explicit rejection of unsupported post-quantum message verification, Ed25519 key zeroization on drop, and secret-free key derivation errors.
| Area | Before V499 | After V499 |
|---|---|---|
| Hotkey ownership release | Once associated via try_associate_hotkey, a hotkey could never be released | disassociate_hotkey (call index 178) releases unused hotkeys, invalidates stale incoming pending child delegations, and rejects active use with HotkeyStillInUse |
Multi-mechanism Yuma Emission | Subnet-level stored Emission multiplied by each mechanism's budget share twice | Sums per-mechanism emission directly (matching Null consensus); payouts are unchanged while reported Emission and UID ranking match paid amounts |
| Gamma emission whitelist weight | Adding charged worst-case removal weight; removing re-allocated every split share (22r / 21w per subnet) | Add pays single-write weight; remove moves pending Gamma share to miners (5r / 5w per subnet) |
| PQ/hashed admission & delegates | Unfunded/stale PQ submissions could reach Wasm verification; delegate checks missed queued moves and dissolving subnets | Pre-admission filters invalid/unbacked Pays::No spam early; set_mech_weight_delegate enforces direct-hotkey / ProxyType::Any and HotkeyOwnerPolicyViolation across grants, use, and queued hotkey-swap moves |
| Limit-order maker debits | Maker debits could drain below existential deposit and reap accounts / wipe ApprovedOrders | Keep-alive (Preservation::Preserve) debits keep the 500 rao ED intact; 100% linked buy-backs trim the ≤ ED shortfall only when spendable balance covers the full amount |
| Frontier EVM RPC overrides | No Subtensor account storage override for eth_call / eth_estimateGas | SubtensorAccountStorageOverride maps AccountId32, HashedAccounts::EvmAliases, rao scaling, and backing-account nonces |
Python SDK 11.3.9 & bittensor-core 0.1.16 | No service API key CLI/SDK, silent False for PQ verify_message, raw Ed25519 key buffers | Adds btcli service key & DisassociateHotkey, raises ValueError / exit 1 for PQ verify, zeroizes Ed25519 keys, and strips secrets from key/CLI errors |
disassociate_hotkey)A coldkey can now release a hotkey it owns using SubtensorModule::disassociate_hotkey(hotkey) (call index 178), the reverse of try_associate_hotkey. After disassociation, any coldkey can associate that hotkey.
HotkeyStillInUse while anything still refers to the hotkey — stake, a subnet registration, children or parents, childkey take, pending child updates, a root fund or claim, an auto-stake route, swap lineage, voting power, a subnet lease payout, a Gamma deposit, a published service, collateral, or a lock (including on dissolving subnets).HotkeyDisassociated and records HotkeyDisassociatedAt so any incoming PendingChildKeys entry scheduled before the release is dropped at activation and cannot survive a subsequent child swap_hotkey, while parent hotkey swaps carry the SetChildren schedule block forward so valid post-release delegations still activate cleanly.disassociate_hotkey is grouped under OwnerKeyCalls and restricted to the direct coldkey or an unrestricted ProxyType::Any proxy. See the proxies guide.# Preview fee and policy checks, then release an unused hotkey
btcli tx disassociate-hotkey --dry-run
btcli tx disassociate-hotkey -w my_coldkeyimport bittensor as bt
from bittensor.wallet import Wallet
wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
sub = bt.Subtensor()
result = sub.execute(bt.DisassociateHotkey(), wallet)
if not result.success:
print(result.error.code, result.error.remediation)On multi-mechanism Yuma subnets, subnet-level stored Emission now sums per-mechanism emission directly instead of weighting by each mechanism's budget share a second time, matching the Null consensus path. Each mechanism's epoch already scales a UID's emission by its share of the subnet budget, so the extra weighting previously under-reported stored Emission — for example, a 75/25 split stored 62.5% of paid emissions and ranked miners on the smaller mechanism too low.
Consumer impact: actual miner and validator payouts are unchanged. From each subnet's next epoch after V499 activates, wallets, indexers, and SDK consumers may see higher reported Emission values on multi-mechanism Yuma subnets, and registration replacement and UID trimming rank UIDs in line with paid emissions again. See the mechanisms guide.
Adding a subnet to the Gamma emission whitelist no longer charges worst-case removal weight for a single storage write; only removal carries removal weight. Removing a whitelisted target now routes its pending Gamma emission share to miners instead of re-allocating every share in each split, cutting worst-case removal cost from 22 reads and 21 writes per subnet to 5 reads and 5 writes. See the Gamma guide.
get_dispatch_info() pre-authentication, eliminate redundant stateless validation passes, and stream signing-hash encoding. See the protected accounts guide.set_mech_weight_delegate is restricted to direct hotkeys or unrestricted ProxyType::Any proxies and enforces HotkeyOwnerPolicyViolation on delegate grant, use, and queued hotkey-swap moves, so any preexisting classical MechWeightDelegate becomes immediately inert once a hotkey registers as PQ/V1.LimitOrders maker TAO debits and direct buys use Preservation::Preserve keep-alive semantics so order execution cannot reap maker accounts or wipe ApprovedOrders. Fixed buy orders must leave the 500 rao existential deposit in free TAO; 100% linked buy-backs automatically trim the ≤ ED keep-alive shortfall only when the maker's spendable balance covers the full resolved amount, ensuring genuinely underfunded linked buys revert instead of partially filling for dust.SubtensorAccountStorageOverride for eth_call and eth_estimateGas state_overrides, mapping 32-byte AccountId32 keys, protected HashedAccounts::EvmAliases, rao balance scaling (offset by existential deposit and freeze floor so EVM sees the exact requested balance), and NoncePreservingAccountProvider backing-account nonces.bittensor-core 0.1.16Paired with V499, bittensor bumps to 11.3.9 (requiring bittensor-core>=0.1.16) and bittensor-core bumps to 0.1.16:
keys block naming OpenAPI operationIds for create (and optional list and revoke), exposed via btcli service key and service.key_operations in bittensor.services. Key resolution fails closed if OpenAPI spec discovery is incomplete, and the Typer CLI disables local variable dumps in tracebacks (pretty_exceptions_show_locals=False) so secrets and issued API keys are never printed on unexpected errors. See the services guide.DisassociateHotkey (disassociate_hotkey), regenerated call/storage/error bindings, and HotkeyStillInUse error descriptions.wallets.verify_message and btcli wallet verify now raise ValueError / exit with status 1 for ML-DSA and Falcon schemes instead of returning False, matching signing and http_auth.verify. Callers pinning a trusted classical crypto_type still receive False for mismatched untrusted PQ receiving addresses. See the wallet crypto types guide.bittensor-core stores Ed25519 Keypair signing keys in Zeroizing<ed25519_zebra::SigningKey>, wipes transient keyfile and PKCS8 secret buffers on drop, derives mnemonic and secret-URI seeds without creating a temporary sp_core::ed25519::Pair, and strips secret input (phrases, passwords, and malformed secretSeed characters) from key derivation and keyfile error messages.// Optional keys block in a subnet service's services.json
"keys": {
"create": { "operationId": "createApiKey" },
"list": { "operationId": "listApiKeys" },
"revoke": { "operationId": "deleteApiKey" }
}# Install SDK 11.3.9 (pulls bittensor-core >= 0.1.16)
uv pip install "bittensor==11.3.9"
btcli --version
# Discover and use a Gamma service's API key operations
btcli service key --netuid 1
btcli service key create --netuid 1 -H HOTKEYV499 raises the runtime spec_version from 498 to 499 and keeps transaction_version at 2, with no storage migrations or parameter changes. Once the upgrade activates, refresh runtime metadata and rebuild signing payloads prepared under earlier versions, and regenerate and review any pending root parameter proposals before approving. See the V498 release notes for the prior release.
| Surface | Changes in V499 |
|---|---|
Extrinsics (SubtensorModule) | disassociate_hotkey(hotkey) (call index 178) |
| Storage | SubtensorModule.HotkeyDisassociatedAt(hotkey) |
| Events | HotkeyDisassociated { coldkey, hotkey } |
| Errors | HotkeyStillInUse |
| Proxy Filters | OwnerKeyCalls adds disassociate_hotkey; set_mech_weight_delegate restricted to direct hotkey or ProxyType::Any |
| Node RPC | Frontier SubtensorAccountStorageOverride for eth_call / eth_estimateGas state_overrides |
| Python SDK | bittensor==11.3.9, bittensor-core==0.1.16 |