>_ Skip to main content
Menu
Search

Post-Quantum Cryptography and Encryption Field Guide

Are Seed Phrases Safe from Quantum Computers?

SEED PHRASE
Not directly broken
by Shor’s algorithm
REAL EXPOSURE
Exposed public key
Shor recovers the signing key
GROVER
Square-root only
2^128 for a 24-word seed
THE FIX
Address hygiene
plus your chain’s migration

A securely generated seed phrase isn’t directly broken by a quantum computer. Shor’s algorithm doesn’t act on your words at all; it acts on an exposed elliptic-curve public key, and that is the real exposure for most existing wallets. Grover’s algorithm could speed up guessing a mnemonic, but only by a square root, which leaves a 24-word seed far out of reach. So the question that matters isn’t whether quantum breaks your phrase, but whether your public key is already exposed on chain. A longer phrase doesn’t fix a vulnerable signature. The answer is address hygiene now, and your chain’s migration later.

Part of the Post-Quantum Cryptography and Encryption guide series

In short

The two questions are separate

Breaking an exposed signing key doesn’t require breaking your seed phrase, and the two are attacked in different ways. The question that matters isn’t “will a quantum computer crack my words,” but “is my public key already exposed on chain.” For what a full migration changes, see Seed Phrases vs PQC.

A securely generated seed phrase isn’t directly broken by Shor’s algorithm. Quantum search could, in theory, accelerate the guesswork, but no practical quantum attack against a properly generated BIP-39 mnemonic has been demonstrated (at least not yet).

The more direct concern for many existing wallets is recovery of an elliptic-curve signing key from an exposed public key. So the question “will a quantum computer break my seed phrase” that’s been plaguing your mind is less relevant than whether your public key has already been exposed, and those are separate questions with separate answers.

The mnemonic-to-key pipeline

From words to keys, in four stages

  1. Entropy

    12 words encode 128 bits of initial entropy plus a checksum; 24 words encode 256 bits plus a checksum. BIP-39 is one mnemonic format among several (Electrum uses its own).

  2. Seed

    BIP-39 stretches the mnemonic into a 512-bit seed with PBKDF2-HMAC-SHA512, 2,048 iterations, and an optional passphrase. The longer output doesn’t add randomness.

  3. Derivation

    BIP-32 derives keys from that seed using HMAC-SHA512 together with secp256k1 elliptic-curve operations.

  4. Keys

    The result is the elliptic-curve signing keys your wallet uses. The mnemonic format and the derivation scheme are separate components, so keeping a familiar backup doesn’t by itself make derivation quantum-resistant.

Entropy vs quantum: the two attacks

AttackActs onEffectWhat it means
Grover’s algorithmthe mnemonic / secret (exhaustive search)square-root speedup, ~2^(n/2) queries~2^64 for 128 bits, ~2^128 for 256 bits; still far out of reach, and each query needs a quantum implementation of the check
Shor’s algorithman exposed elliptic-curve public keyrecovers the signing key directlyno searching of the mnemonic space needed; this is the real exposure for existing wallets

For a securely generated, undisclosed mnemonic, generic guessing remains a search problem, and Grover offers a square-root reduction in query complexity. Exposed elliptic-curve public keys face a different attack: Shor can recover a signing secret without searching the mnemonic space. Theft, partial disclosure, or weak generation can undermine the mnemonic’s security independently.

What’s at risk

Exposure depends on the output type

Many wallets derive elliptic-curve signing keys from the seed (Bitcoin uses ECDSA and Schnorr; other chains use schemes like Ed25519). Whether the public key is already visible depends on the account or output type.

P2PK and Taproot
expose the public key from the outset
Fresh P2PKH and P2WPKH
keep it hidden until spending, if the key hasn’t been disclosed elsewhere

How to harden, and what to skip

// Harden the right thing0/5 complete

Bottom line

Shor’s algorithm doesn’t directly break a securely generated seed phrase, and a longer phrase doesn’t repair a vulnerable signing key. Store the backup the ordinary way, practice address hygiene where your chain allows it so public keys stay hidden until you spend, and follow your chain’s migration.

The highest exposure is in the signature, and that’s also where the fix will come from. A longer phrase doesn’t repair a vulnerable signing key.


Keep going

New to the threat? Start with What Is Q-Day?

Continue the series:

Browse all post-quantum cryptography guides.


This article is educational and does not constitute security or investment advice.

// FAQ

Can a quantum computer crack my seed phrase?

Not a securely generated one, directly. Shor’s algorithm doesn’t act on your words; it acts on an exposed elliptic-curve public key. Grover’s algorithm could speed up guessing a mnemonic, but only by a square root, which leaves a 24-word seed far out of reach.

Is a 24-word phrase safer than 12 words against quantum?

It carries more entropy, but that’s not where the quantum risk is. Neither length stops Shor’s algorithm attacking an exposed public key, so a longer phrase gives no post-quantum spending protection.

What's actually exposed, then?

The signing key, when its public key becomes visible on chain. P2PK and Taproot outputs expose the public key from the outset; fresh P2PKH and P2WPKH outputs keep it hidden until you spend, if the key hasn’t been disclosed elsewhere.

Should I move my coins to a new seed phrase?

Changing the phrase alone doesn’t help. Do address hygiene (fresh addresses, no reuse, unused hash-committed outputs for long-term coins) and follow your chain’s migration when it arrives.

Do I need to worry about my xpub?

Be careful sharing it. A BIP-32 xpub reveals a public key and chain code, and a future quantum compromise of it could expose the corresponding private-key subtree, even for receiving addresses that never spent.

// Sources

  1. BIP-39, Mnemonic code for generating deterministic keys https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
  2. BIP-32, Hierarchical deterministic wallets (secp256k1 derivation) https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
  3. NIST, Post-Quantum Cryptography project https://csrc.nist.gov/projects/post-quantum-cryptography
  4. Project Eleven, Generating post-quantum keypairs from a BIP-39 seed phrase (one implementation, not a standard) https://blog.projecteleven.com/posts/generating-post-quantum-keypairs-from-a-single-24word-seed-phrase