Rotate/Swap your Coldkey
This page describes how to rotate or swap the coldkey in your wallet. This is required if you suspect your coldkey has been leaked. Your coldkey secures your identity on Bittensor.
See:
Coldkey swaps are only necessary if you need to migrate a coldkey with subnet ownerships or registrations.
If you only hold and stake TAO, you do not need to perform a coldkey swap. Instead, simply transfer your staked and unstaked TAO to the new coldkey. For more information, see btcli wallet transfer and btcli stake transfer --all.
The schedule coldkey swap feature works as follows:
- The schedule coldkey swap feature enables you to schedule the swapping of source coldkey to a destination coldkey. If you feel your existing coldkey is potentially compromised, then use this feature to schedule a swap to a destination coldkey.
- When you use this feature, it will not immediately swap your coldkeys and swap your TAO funds from the source coldkey to the destination coldkey. It will only schedule the swap event.
- All scheduled coldkey swaps will be executed on-chain. Your scheduled coldkey swap will execute on the mainnet 36000 blocks (approximately 5 days) after you successfully scheduled the coldkey swap using the method described in this document.
- The source coldkey you used in this method will be locked when you schedule the swap. After the 36000-block period is elapsed your original coldkey will be unlocked entirely.
- Cost: The cost of this coldkey swap transaction is 0.1 TAO. This must be available in your source coldkey.
- Any subnet ownership from your source coldkey will move to the destination coldkey.
- The delegated stake will be transferred from your source coldkey to the destination coldkey.
- For those who were staking to a validator from their source coldkey, their staking TAO will transfer to the destination coldkey.
Once a coldkey swap has been scheduled, it cannot be cancelled. This is an intentional design feature; coldkey swaps must not be cancellable, because if they were, an attacker who gained access to a coldkey could use cancellation to thwart the owner's attempt to swap it.
The delay period is intentionally long to allow those affected by the swap to access their coldkeys in order to respond. This is an issue because high-value keys (for example, coldkeys with subnet ownership or which control high value validator hotkeys) should be kept under stringent conditions of physical security, implying they cannot always be quickly accessed, for example during travel.
Requirements
- To execute this operation, you must own the source coldkey.
- The destination (new) coldkey public key must not already be assigned to a hotkey or a coldkey that is associated with any hotkeys.
- Confirm the identity of the destination coldkey. A mistake here can result in loss of all of the source coldkey's assets and identity.
- If you are rotating the coldkey to maintain ownership, you must control the destination coldkey privatekey. Otherwise you will lose control over all of the source coldkey's assets and identity.
- If you are transferring ownership to someone else, confirm that they have secure control of the destination coldkey private key.
Using Bittensor-CLI
btcli w swap-coldkey