Bitcoin Security

Air-Gapped to Quantum: Bitcoin Security

A dark-screen signer connects by a short cable only to a small unmarked power bank on stone.

This guide shows you how to guard your bitcoin against two threats: one you face today and one that may come later. Today’s is the link between your hardware wallet and your computer. A USB connection is convenient, but it is also a way in: attackers can exploit it through compromised cables or infected drivers. An air-gapped signing device never makes a data connection to your computer. Each transaction crosses the gap as a QR code or on a microSD card, and your private keys stay on the device.

The later threat is a quantum computer. A large enough one, running Shor’s algorithm, could work out a private key from its public key; no such machine exists today. With most address types, a new address shows only a hash of your public key until you spend from it. Taproot addresses (starting bc1p) are the exception: they contain the key itself. So the habit that cuts your exposure is a fresh address for every payment. The seven steps below set up air-gapped signing with that habit built in, and leave you ready to move your coins to quantum-resistant addresses if Bitcoin adopts them.

Your private key, kept on your device, makes your public key, and a hash of the public key makes your address. Both steps are easy to compute forwards. Going back from the public key to the private key is impossible for today's computers; a large quantum computer running Shor's algorithm could do it, but none exists today. Going back from the address to the public key is impossible for any computer, quantum or not, because a hash can't be undone. So until you spend, most addresses show only the hash, and a quantum computer has no public key to start from. Below, two bars to scale: earlier estimates of the physical qubits such a machine would need were about 20 times larger than Google Quantum AI's March 2026 estimate of fewer than 500,000, which would take a few minutes per key.
A quantum computer could undo only one step: from your public key back to your private key. Nothing can undo the hash that makes your address, so it needs your public key to start, and most addresses show only the hash until you spend. The size of machine it would take has been revised down about 20-fold, but none exists today.

Step-by-Step Guide

Follow these steps to set up air-gapped signing today and be ready for a quantum-resistant upgrade later.

1. Select an Air-Gap-Capable Signing Device

Choose a hardware wallet that supports fully air-gapped operation. The Coldcard Mk5 signs from a microSD card — it never needs USB for signing — and the Coldcard Q adds a QR code scanner to its two microSD slots. The Keystone 3 Pro (on pre-order at Keystone’s own store as of November 2026, shipping in about 4–6 weeks) and Blockstream’s Jade Classic and Jade Plus (the Jade Core has no camera) use QR codes for transaction data transfer. SeedSigner is a do-it-yourself option built on a Raspberry Pi Zero (ideally the model without Wi-Fi) with a camera for QR scanning; it keeps no seed between sessions, so you enter your seed each time you sign. Evaluate each device’s open-source status, secure element design, and community audit history, then buy it new from the maker’s own store.

2. Generate and Secure Your Seed Phrase

Initialize the signing device in a private environment with no cameras or wireless devices nearby. Use the device’s hardware random number generator to create a 24-word seed. Current Coldcard firmware also makes you add your own randomness (dice rolls, coin flips or key presses) before it creates a seed; if a Coldcard made your seed on older firmware, read our Coldcard advisory. Write the words on paper first, then copy them to a metal backup plate, which survives fire and water far better than paper. Store the plate in a fireproof safe or bank vault. Test seed recovery on the device before proceeding.

3. Export Public Key to Watch-Only Wallet

From your signing device, export the xpub (extended public key) via microSD or QR code. Import this xpub into Sparrow Wallet on your networked computer. Sparrow creates a watch-only wallet that can generate receive addresses and monitor balances, but cannot sign transactions. The signing device stays offline. The xpub can’t spend, but keep it private all the same: anyone who has it can see every address, your balance and your full history, and it contains every public key your wallet will use, so a leaked xpub would hand a future quantum computer those keys before you ever spend.

4. Practice the Signing Workflow

Create a test transaction in Sparrow. Sparrow generates a PSBT (Partially Signed Bitcoin Transaction) file. Transfer the PSBT to your signing device via microSD card or QR code. Review the transaction details on the signing device’s screen — verify the destination address and amount. Sign the transaction on the device. Transfer the signed transaction back to Sparrow via the same air-gapped method. Broadcast through your node.

One payment across the air gap. Your computer is online and runs Sparrow as a watch-only wallet: it has your xpub, so it can watch your wallet and prepare payments, but it can't sign. 1: Sparrow builds an unsigned PSBT listing the address it pays and the amount, with an empty signature slot. It crosses the gap as a QR code or on a microSD card. 2: on your signing device, which is offline and holds the private keys, you check the address and amount on its screen, then it signs. The signed PSBT crosses back the same way. 3: Sparrow broadcasts it through your node to the network. Only the transaction crosses the gap; your private keys never leave the device.
The transaction crosses the gap twice: out unsigned, back signed. Your computer only ever holds your xpub, so it can prepare and broadcast but never sign. The check that matters happens on the device’s own screen.

5. Implement Address Hygiene for Quantum Resistance

Never reuse a Bitcoin address. When you spend from an address, the public key is revealed on-chain and theoretically becomes vulnerable to quantum attack in the future. With hashed address types (everything except Taproot), using each address only once (one receive, one spend) limits the time your coins sit behind a visible key to the wait between broadcast and confirmation; after that the key stays on the blockchain, but nothing is left behind it. That window is short but not zero: Google’s March 2026 paper estimates that a fast type of quantum computer, if one is built and prepared in advance, could work out a key about 9 minutes after seeing it, close to the 10 minutes a block takes on average. Only the quantum-resistant signatures in step 7 close it completely. Modern HD wallets generate new addresses automatically — verify this is enabled in your wallet settings.

How long coins sit behind a public key anyone can see, in three stages: while coins sit unspent, when you spend them and the payment waits to confirm, and afterwards. A fresh address used once, of any type except Taproot: while coins sit there, only a hash of your public key shows; the key appears when you spend, and afterwards it stays public on the blockchain but nothing is left behind it, so the coins are exposed only until the payment confirms. Your key is already public if you have spent from the address before, if it is a Taproot address (starting bc1p), or, for any address, once your xpub leaks: then the coins sit behind a visible key for months or years. Spending always shows your public key and the blockchain keeps it; with a fresh address, no coins are left behind it once the payment confirms.
What matters is how long coins sit behind a public key that anyone can see. Spending reveals your key, and the blockchain keeps it, but with a fresh address the coins are gone once the payment confirms. A reused or Taproot address, or a leaked xpub, leaves the key in view while coins sit for months or years.

6. Keep Firmware Updated on Your Signing Device

Download firmware updates from the manufacturer’s official website. Verify the GPG signature of the firmware file before applying it. On devices like Coldcard, firmware updates are loaded via microSD card — the device never connects to the internet. Review the changelog for security fixes. Apply critical security updates promptly. For non-critical updates, wait a week after release to let the community identify any issues before updating.

7. Plan for Future Migration to Quantum-Resistant Schemes

Keep informed about Bitcoin Improvement Proposals (BIPs) related to post-quantum cryptography. When quantum-resistant signature schemes are adopted in Bitcoin (likely through a soft fork), plan to migrate your funds to new address types that use these schemes. The migration process will involve signing transactions with your current keys and sending to new quantum-resistant addresses. Having a tested, working air-gapped signing setup makes this migration straightforward when the time comes.

Common Mistakes to Avoid

1. Treating Air-Gap as Optional for Large Holdings

USB-connected hardware wallets are significantly more secure than software wallets, but they still expose a data channel between the signing device and a potentially compromised computer. Sophisticated attacks like BadUSB can inject malicious payloads through USB connections. For large holdings, air-gapped signing via QR or microSD eliminates this attack vector entirely. The additional 30 seconds per transaction is a trivial cost for the security improvement.

2. Reusing Addresses Because “Quantum Computers Don’t Exist Yet”

Quantum computing is a future threat, but your blockchain history is permanent. Transactions you make today will still be visible when quantum computers become practical. If you reuse an address and expose its public key, that key remains exposed forever. A future quantum attacker could derive the private key and steal any remaining funds. Address reuse costs nothing to avoid — your HD wallet generates new addresses automatically.

3. Skipping Transaction Verification on the Device Screen

Your computer screen can be manipulated by malware. If you sign a PSBT without verifying the destination address and amount on your hardware wallet’s screen, you might approve a transaction to an attacker’s address. Always check every detail on the trusted display of your signing device. The device screen is the only component in the signing chain that malware cannot compromise (assuming genuine hardware).

4. Using Unverified Firmware or Third-Party Software

Loading firmware from unofficial sources or using unverified signing software can compromise your entire security model. An attacker who modifies firmware can exfiltrate your seed phrase or substitute transaction details during signing. Only download firmware from the manufacturer’s verified download page. Check GPG signatures against the developer’s published public key. For open-source devices, compare checksums with those published by independent community verifiers.

Four mistakes and the habit that prevents each. 1: a USB cable gives malware on your computer a data link to the device; the air gap closes it: sign by QR code or microSD card, never by cable. 2: a reused address leaves your public key on the blockchain for a future quantum computer; the air gap is no help: use a fresh address for every payment. 3: malware can show you one address on your computer and put another in the transaction; the air gap is no help: check the address and amount on the device's screen. 4: firmware from an unofficial source can leak your seed or swap transaction details; the air gap is no help: install only the maker's firmware and check its signature.
An air gap closes one way in, not all of them. The other three mistakes are stopped by habits: a fresh address each time, a check on the device’s own screen, and firmware only from the maker.

Frequently Asked Questions

How real is the quantum computing threat to Bitcoin?

No quantum computer today can break Bitcoin’s keys, but the estimates of what one would need have fallen fast. In March 2026, Google Quantum AI estimated that breaking 256-bit elliptic-curve keys could take fewer than 500,000 physical qubits and a few minutes, about 20 times fewer qubits than earlier estimates, and said it is moving its own systems to quantum-resistant cryptography on a 2029 timeline. Bitcoin transactions are permanent. A public key exposed today through address reuse remains vulnerable to future quantum attacks. The risk is low today but real for long-term holdings. Use a fresh address for every payment and follow the post-quantum proposals; our lesson Is Bitcoin Safe? explains which coins are exposed.

Is a microSD air-gap more secure than a QR code air-gap?

Both remove the cable, and each has one thing to watch. A QR code carries only the transaction: your computer shows it on screen and the device’s camera reads it. A microSD card is a small drive, so a compromised computer could add other files to it, such as a fake firmware update; on the device, open only the PSBT you saved, and keep one card just for this job, formatted on the device. With either, check the address and amount on the device’s screen before you sign, because a compromised computer can still put the wrong ones into the transaction. Choose by your device: the Coldcard Q does both.

Can I use the same air-gapped device for multisig signing?

Yes. Your air-gapped signing device can hold one key in a multisig setup. Use separate hardware devices for each key in the multisig quorum — for example, a Coldcard, a Jade Plus and a SeedSigner for a 2-of-3 multisig. Each device signs independently via its own air-gapped method. Sparrow Wallet coordinates the multisig by collecting partial signatures from each device and combining them into a complete transaction. With three makers, one maker’s flaw can’t reach enough keys to spend.

What should I do if my hardware wallet shows a different address than my computer screen?

Stop immediately. This discrepancy indicates either a software bug or malware on your computer attempting to redirect funds. Do not complete the transaction. Verify your wallet software is legitimate by checking its checksum against the developer’s published values. Scan your computer for malware. Try the transaction again on a clean machine. If the mismatch persists, contact the hardware wallet manufacturer’s support. Never send funds to an address you cannot verify on your trusted signing device’s display.

Related Resources

Part of our free Bitcoin course: This topic is covered in Is Bitcoin Safe? Common Concerns Answered, from the Bitcoin Fundamentals course.
Filed under: Bitcoin Security
← Back to All Articles