Skip to content
Blog

How to move your TAO to a quantum-resistant wallet

Bittensor wallets sign with sr25519, an elliptic-curve scheme that a large enough quantum computer could break. Release 487 of the Bittensor chain adds wallets that sign with ML-DSA or Falcon, post-quantum schemes selected by NIST, the US standards institute.

Your current wallet keeps its address and keeps working: nothing moves on its own. Moving to a post-quantum wallet means creating a new one and sending your assets to it. This guide covers what that protects, what it changes, and each step to do it safely.

On Bittensor, a classical address is a public key written in another form. In theory, Shor’s algorithm, run on a quantum computer with enough reliable qubits, could recover the private key from that public key and sign transactions in your name, even for an address that has never sent a transaction.

No such computer is known to exist: today’s quantum computers are far from the size and reliability it would take, and nobody can say when, or whether, one will. Moving early only means your funds would already sit behind a post-quantum key on that day, with no race against everyone else.

A post-quantum address works differently. It is a fingerprint of a post-quantum public key, chosen so that it can never also be a classical public key. No classical key can sign for it, and its signatures resist all known quantum attacks.

  • You get a new address and a new recovery phrase. A post-quantum wallet is a new account. You move your assets to it with ordinary transfers: no wallet converts in place.
  • Few apps can sign for it. btcli and the Python SDK, both in the bittensor package, create these wallets and sign for them. A browser extension, a Ledger or Polkadot Vault can sign for them only once it adds support for the scheme.
  • Taoswap’s built-in wallet can sign for it. It creates or imports a standard wallet in ML-DSA-65, Falcon-512 or Falcon-1024, or a hashed one in ML-DSA-65. It marks the account with a Post-quantum badge in the account menu and when you approve a transaction, and signs its transfers, staking and swaps in its scheme.
  • The network can pause it. A network-wide switch, AdminUtils.HashedAccountsEnabled, lets the chain accept post-quantum signatures, and Bittensor’s root authority can turn it off in an emergency. While it is off, a post-quantum wallet still receives TAO but cannot send it, stake it or sign anything else. Step 2 shows how to check it.
  • Fees are higher. Each transaction carries a post-quantum public key and signature, about 1.7 to 5.4 kB depending on the scheme, against about 100 bytes for a classical wallet. The fee depends partly on that size: btcli’s --dry-run shows it before you sign, and Taoswap’s fee estimates include it. Taoswap’s Post-quantum page, in the Tools menu, shows the network fee of a stake in each scheme, as the network quotes it now.
  • It signs transactions only. These wallets cannot sign messages, nor log in to a service with a signature. On Bittensor, they approve a limit order with a transaction instead of a signed message: Taoswap does so for you, for a network fee, and the order’s terms are public from that block. With a post-quantum wallet, you cannot use Taoswap’s Sign Message, nor make the testnet faucet’s signed claim.
  • EVM accounts stay classical. The 0x accounts of Bittensor’s EVM, used by MetaMask and similar wallets, keep their ECDSA keys, with no post-quantum option.
  • Only accounts change. Validators’ consensus keys and the network’s own connections keep their cryptography. This upgrade protects the keys that hold your funds.

You make two choices: the signature scheme and the account mode. Write both down next to your recovery phrase: the same 24 words with another scheme or mode open a different account.

Scheme NIST level Size per transaction Best for
ML-DSA-65 3 5.4 kB Most people
Falcon-512 1 1.7 kB Frequent transactions
Falcon-1024 5 3.2 kB Large amounts that rarely move

All three resist known quantum attacks. The NIST level grades the safety margin from 1 to 5, and the size sets part of each transaction’s fee:

  • ML-DSA-65, --crypto-type ms in btcli, suits most people: it is the finalized NIST standard FIPS 204, with a middle security level.
  • Falcon-512, falcon512, has the lowest fees, which matters for a wallet that transacts often, with the smallest margin of the three.
  • Falcon-1024, falcon1024, has the largest margin, for fees close to ML-DSA-65’s: a choice for savings you rarely move.

Bittensor uses Falcon’s original format, which does not claim compatibility with FN-DSA, the standard NIST derives from Falcon.

Then choose the account mode:

  • Standard, the default: one fixed key, and an ordinary address starting with 5. It needs no registration and no deposit, and can receive funds right away. It suits almost everyone.
  • Hashed, with --type hashed: the account keeps its address while its signing key changes after each transaction. It must be registered before any use, which permanently reserves a deposit, 0.2 TAO by default, and its proxies must be registered post-quantum accounts too. Others pay it through a receiving address starting with tao_. Choose it only if you need these stricter rules.

Taoswap’s built-in wallet creates and imports standard wallets in all three schemes, and hashed ones in ML-DSA-65, which it marks Rotating keys. Hashed Falcon wallets stay btcli-only, and their words open other accounts in Taoswap.

  • For btcli, a computer with a terminal and Python 3.10 or later.
  • A little TAO left in your current wallet, for fees.
  • Paper, or a metal plate, to write down 24 words offline.
  • If you have open limit orders on Taoswap, cancel them: they spend from your current wallet.
  • If you use proxies, note them: they stay with your current wallet. Set them again from the new one with post-quantum accounts only: a proxy with a classical key can act for the new wallet, which cancels its protection.

You can use Taoswap or btcli for the move: pick one, and the steps below follow your choice. With Taoswap, its built-in wallet creates the new wallet and signs for it, and its move assistant checks your 24 words, tests the new wallet and moves your assets, with no terminal. In btcli commands, pq is the new wallet’s name.

Connect your current wallet to Taoswap, as you do to trade. Each transfer from it is signed there, as usual. The new wallet joins Taoswap’s built-in wallet in this browser, where the move assistant signs for it.

Nothing to install: Taoswap runs in your browser, and makes the checks of steps 2 and 4 itself. You need btcli only for a coldkey swap, in step 6.

Step 2: Check that the network accepts post-quantum signatures

Section titled “Step 2: Check that the network accepts post-quantum signatures”

Do this before you send anything to a post-quantum wallet.

Taoswap does it for you. When you choose your scheme in step 3, it says so if the network does not accept that scheme’s signatures right now, before you write any words down: then stop, and come back later. The test of step 5 checks it again before anything else moves.

Funds sent to a post-quantum wallet in the meantime are not lost, but cannot move until the switch is on.

  1. Choose Connect Wallet, or Change Wallet in the account menu, then Create New Wallet under Built-in Wallet. If this browser already holds a built-in wallet, choose Add Account, then Create New Seed Phrase. Create a post-quantum account, on the Post-quantum page of the Tools menu, opens the next step with Post-quantum already chosen.

  2. Under Wallet type, choose Post-quantum, then your scheme under Signature scheme: ML-DSA-65, marked Recommended, Falcon-512, Falcon-1024, or for the hashed mode, ML-DSA-65 marked Rotating keys. Each shows its NIST level and its size per transaction.

  3. Read the numbered notes below them: who signs for the account, what it cannot sign and what its proof adds to each fee, then, for rotating keys, their own rules. If a notice says the network does not accept the scheme’s signatures right now, stop here, as in step 2. Otherwise, choose Next.

  4. Make sure nobody can see your screen, then choose Reveal seed phrase. Write the 24 words down in order, offline, with the scheme and the mode you chose: the notice above them names the scheme and its --crypto-type in btcli. Never type them into another website, a messaging app or a cloud document.

  5. Tick I have saved my seed phrase in a safe place, choose Next, then type the words Taoswap asks for.

  6. Name the wallet, set a password, confirm it, and choose Create Wallet. If this browser already holds a built-in wallet, the new one joins it: enter its password and choose Add Account instead. The password only encrypts the wallet in this browser: it cannot restore the wallet, only the 24 words can.

  7. Taoswap connects the new wallet, and the account menu marks it with a Post-quantum badge. Like any Bittensor address, it starts with 5: copy it from the account menu. If your current wallet was connected and holds TAO or stake, Taoswap then offers to move them with the assistant of step 5, except to a wallet with rotating keys.

Before any funds arrive, prove that your 24 words restore the same address.

The move assistant does it in step 5, before the test: it asks for the new wallet’s 24 words from your written copy, and moves nothing until they open it.

btcli’s check works for a wallet created in Taoswap too: with its scheme’s crypto type, its 24 words open the same account in btcli. A wallet created in either tool is one account, which you can use in both.

Send a small amount to the new wallet, then send part of it back. The return trip proves that the network accepts your new wallet’s signatures before anything large moves.

  1. Connect your current wallet, open the account menu and choose Move to post-quantum. The Post-quantum page offers it too, beside each of your accounts that holds something.

  2. Read what changes, then choose I understand. If your current account is on a Ledger, the assistant asks you to wait: no Ledger signs these wallets yet.

  3. Choose the new wallet, then Next. The assistant offers only the post-quantum accounts of this browser’s built-in wallet, never a typed address. Create a post-quantum account opens step 3 instead, whose end brings you back to the assistant.

  4. Type the new wallet’s 24 words from your written copy, then choose Check the words. Nothing moves until they open it.

  5. Choose Start the test, then approve each signature: your current wallet sends 0.01 TAO plus the new wallet’s fees, and the new wallet sends 0.01 TAO back. For the new wallet, Approve Transaction shows the Post-quantum badge. If the assistant says your current wallet must be connected, choose Reconnect first.

The assistant never moves to a wallet with rotating keys, which receives nothing until the network registers it. To fund one, choose Receive for it, in Portfolio or on the Post-quantum page, then Register: another account of the built-in wallet pays its deposit. Then send TAO to its tao_ address.

If the return trip fails, check step 2 again: while it shows False, the network refuses these signatures, btcli reports that post-quantum authorization is disabled on this chain, and Taoswap that this network does not accept post-quantum signatures. Stop, and come back later: opened again from the account menu, Taoswap’s assistant asks for the built-in wallet’s password if your current wallet is a browser extension, then sends only the return trip.

There are two ways. Sending suits holders and stakers: it takes effect at once. The coldkey swap suits miners, validators and subnet owners: it moves everything in one operation, after a waiting period of about five days.

Each staked position moves as it is: same validator, same subnet, still staked. Nothing is sold, so there is no slippage.

  1. Once the test passes, the assistant previews the move. Moves now lists, in order, what only your current account can claim, such as root rewards, then your positions, and your free balance last. Needs an action first and Stays give a reason for each line, and Fees and Signatures say what each account pays and signs.

  2. Choose Move now, then approve each signature. Each step waits for its block.

  3. To pause, choose Stop after this step. To go on, choose Resume, or later Move to post-quantum in the account menu: the assistant reads where the move stands, and Move now moves the rest. If your current wallet is a browser extension, the assistant asks for the built-in wallet’s password before the new wallet signs again, unless that wallet is unlocked.

  4. If a line needs an action first, take it, then choose Refresh and Move now to move it too.

  5. Once everything that can move has moved, choose Use the post-quantum account to make the new wallet active.

Two cases need more:

  • If a subnet’s owner has turned off stake transfers, its positions cannot be sent: sell them and buy them back from the new wallet, or use the coldkey swap.
  • If a position holds locked alpha, the new wallet must accept locked alpha first, or the transfer fails: btcli conviction accept --allow --wallet pq. Taoswap’s assistant does this step itself, and moves that position last. The lock’s conviction follows the stake.

A coldkey swap hands everything your current coldkey controls on Bittensor to the new one: TAO, stake, conviction locks with their conviction, hotkeys with their registrations, subnet ownership and identity. Proxies and reserved deposits stay behind.

It costs 0.1 TAO, recycled when you announce it, and you can execute it after a waiting period of about five days. Until you do, your current coldkey is locked: no transfers, no staking, no trading.

  1. Remove the proxies you no longer need, so their deposits come back. Keep a little more than 0.1 TAO free, for the announcement and its fee.

  2. Announce the swap: btcli wallet announce-coldkey-swap --wallet my-wallet --new-coldkey <new-address>.

  3. Follow the countdown with btcli wallet swap-check --coldkey <current-address>.

  4. Once it shows the swap as executable, run it: btcli wallet swap-coldkey --wallet my-wallet --new-coldkey <new-address>.

  5. From the new wallet, set up again the proxies you still need, with post-quantum accounts only (a proxy with a classical key cancels its protection). Do the same for your auto-stake setting, if you use one: it does not follow to a wallet that already received your test amount.

Keep your hotkeys as they are. A hotkey cannot move your TAO, and validators and miners authenticate their requests with signed messages, which post-quantum keys cannot produce.

  • Check that your current wallet is empty, in Taoswap’s Portfolio or with btcli wallet balance --wallet my-wallet. Taoswap’s assistant leaves only what it lists under Stays, such as the tiny amount that keeps the account open.
  • To follow the new wallet in Taoswap without connecting it, open Portfolio, enter its address in Enter wallet address, then choose Add to watchlist.
  • To sign in Taoswap with a wallet created with btcli, import its 24 words: choose Import Seed Phrase under Built-in Wallet, after Add Account if this browser already holds one. Taoswap shows the account they open with each type, standard and each post-quantum scheme, with its balance. If the standard account is empty, it preselects the funded post-quantum one: keep the one named after your scheme, marked Rotating keys if your wallet is hashed.
  • Give the new address to whoever sends you TAO, exchanges included, and stop using the old one.
  • Keep the old recovery phrase until you are sure nothing is left on it.
  • Keep the 24 words, with their scheme and mode, in two safe places. Without them, nobody can restore the wallet, Taoswap included.

No. Your current wallet is not at risk from quantum computers today, classical wallets keep working, and nothing moves without you. Take your time: moving early only means your funds are already protected the day a quantum computer can break classical signatures.

The network fee of each transfer, higher for the transactions your post-quantum wallet signs. A coldkey swap adds 0.1 TAO. A standard post-quantum wallet needs no deposit, and a hashed one reserves 0.2 TAO by default. Taoswap’s assistant shows the fees of its move before you start it.

Yes. A post-quantum wallet can send its assets to any address, including a classical one, but then they lose the protection.

Bittensor’s wallet guide details every scheme and mode, and the Release 487 notes list everything the upgrade changes.