Post Quantum Encryption Project Learning View on GitHub

Post-Quantum Reality Check

Understanding the headlines without the panic.

Reviewed: December 3, 2026

Recent announcements from Anthropic, OpenAI and the NSA have understandably made people nervous about encryption.

The useful takeaway is: prepare for changes, but don't treat every announcement as proof that today's encryption has been broken. These announcements describe different things: new mathematical research, government migration advice, and industry commitments to adopt post-quantum cryptography.

What actually happened?

Anthropic's research revealed important mathematical progress. An independent review by the Cryptography Research and Information Group found that the new quantum attack offers an improvement in how certain lattice problems scale at enormous sizes. However, applying it to deployed ML-KEM and ML-DSA parameters would require vastly more computation than previously known attacks, which were already infeasible. The result deserves attention, but it is not a practical shortcut for breaking those standards. Independent research assessment

The UK's National Cyber Security Centre likewise assessed that the research does not threaten standardized and deployed ML-KEM or ML-DSA. Its advice remains to continue the planned transition to post-quantum cryptography. NCSC assessment

The NSA urged faster migration, particularly for US National Security Systems. A separate joint government statement acknowledged advances affecting some cryptography while saying that recent advances do not create an immediate, widespread threat. Some details remain undisclosed, so we should avoid claiming that everything is either broken or guaranteed safe. NSA advisory · Joint government statement

OpenAI and other technology companies, including Anthropic, supported accelerating adoption of NIST's post-quantum standards. That statement is a migration commitment, not a demonstration that someone can decrypt everybody's messages. Industry statement

Three standards, three different jobs

NIST finalized these standards on August 13, 2024. They were already part of the response to future quantum threats before the latest headlines. NIST announcement

Standard Simple explanation Mathematical foundation
ML-KEM — FIPS 203 Helps two computers establish a shared secret. That secret can then protect messages using symmetric encryption. Structured lattices
ML-DSA — FIPS 204 Creates digital signatures: evidence that a message or software release was signed by the holder of a particular private key. Structured lattices
SLH-DSA — FIPS 205 Also creates digital signatures, using a different foundation. Hash functions

ML-KEM does not sign transactions. ML-DSA and SLH-DSA do not replace the encryption of a password database. They solve different parts of a security system.

SLH-DSA provides useful diversity: a discovery affecting lattice mathematics would not automatically apply to a signature scheme based on hash functions. That does not make it immune to every possible weakness. FIPS 203 · FIPS 204 · FIPS 205

Are these algorithms expensive?

Sometimes—but we need to ask expensive in what way?

ML-KEM and ML-DSA are designed for practical software use. Costs depend on the algorithm, settings, hardware and implementation. Larger keys, signatures and transmitted messages are important trade-offs.

For example:

Example setting Public key Ciphertext or signature
ML-KEM-768 1,184 bytes 1,088-byte ciphertext
ML-DSA-44 1,312 bytes 2,420-byte signature
SLH-DSA-SHA2-128s 32 bytes 7,856-byte signature

SLH-DSA offers smaller-signature and faster-signing variants, with different costs. Its small public keys do not mean small signatures. These figures come from the standards' parameter tables. ML-KEM sizes · ML-DSA sizes · SLH-DSA sizes

Implications for Bitcoin

Bitcoin uses signatures to authorize spending. Coins are not encrypted messages waiting to be decrypted. Someone who could derive a spending private key from its public key could potentially sign a theft transaction. Bitcoin's transaction documentation explains how keys and signatures control spending. How Bitcoin transactions work

The announcements discussed above do not demonstrate a practical attack on Bitcoin's signing keys. The lattice research concerns different mathematics from Bitcoin's elliptic-curve signatures. A future quantum computer powerful enough to attack those signatures remains a serious reason to prepare; it is not evidence that dormant coins can now be stolen.

Moving old coins does not, by itself, prove a hack, a sale, or a migration to SegWit. A transaction shows coins moving; those explanations require additional evidence. Claims that Bitcoin must go to zero, or cannot crash, are price predictions rather than conclusions established by the cryptographic research.

Post-quantum signatures would require changes to Bitcoin's validation rules and support from wallets and services. NIST publishing a standard does not automatically upgrade Bitcoin. BIP 360 proposes reducing prolonged public-key exposure, but remains a draft, not an activated protection. It does not itself introduce post-quantum signatures. BIP 360 proposal and status

Size also matters because block space is limited. A BIP 340 Schnorr signature is 64 bytes. The example ML-DSA signature above is about 38 times larger, and the SLH-DSA signature about 123 times larger.

Those are signature-only comparisons, not estimates of whole transaction costs. An actual Bitcoin transition would require protocol decisions, including which scheme to use and how to encode it. ML-KEM alone cannot authorize a Bitcoin spend. Bitcoin signature specification

Implications for Bitcoin wallets

The important distinction is public-key exposure, not simply how old a wallet is. One wallet can hold coins under several different spending conditions. A receiving address, a public key and a private key are different things.

Coins held using What is exposed? What that means for a future key-recovery attack
Early pay-to-public-key outputs (P2PK) The public key is visible from the start. An attacker could work on that key while the coins remain unspent.
Legacy public-key-hash addresses (P2PKH, usually 1…) A hash hides the public key until spending, unless it was exposed elsewhere. Old does not automatically mean the public key is exposed.
Native SegWit public-key-hash addresses (P2WPKH, bc1q…) A hash hides the public key until spending, unless it was exposed elsewhere. Useful hiding, but not a post-quantum signature scheme.
Native SegWit script-hash addresses (P2WSH, also bc1q…) A hash hides the spending script until use; that script may reveal public keys. The prefix alone does not establish the exposure of the signing keys.
Taproot addresses (P2TR, bc1p…) The output public key is visible from the start. Modern does not automatically mean resistant to quantum key recovery.

These distinctions follow the transaction formats in Bitcoin's transaction guide, BIP 141 for SegWit, and BIP 341 for Taproot. Taproot is technically SegWit version 1; wallet menus commonly use “native SegWit” for version 0 bc1q addresses.

Reusing an address after spending from it can leave remaining or newly received coins associated with an already exposed key. Public keys can also leak outside the blockchain, including through shared extended public keys, or xpubs. Even when a key was hidden beforehand, spending reveals it: a sufficiently fast future attacker could try to steal the coins before the legitimate transaction confirms. Hiding a key buys protection against prolonged exposure, not immunity. BIP 360's exposure analysis

A hardware wallet protects secrets on a device. It cannot change the mathematical security of a public key already visible to an attacker. Encrypting a wallet backup also protects a different layer from the signatures checked by Bitcoin.

For wallet users, the practical approach is to maintain secure backups, use supported wallet software, avoid address reuse and unnecessary xpub sharing, and follow verified migration guidance as it develops. Moving to bc1q alone is not a complete quantum fix. A wallet advertising post-quantum backup encryption has not thereby made its Bitcoin spending signatures post-quantum.

Could there be a backdoor?

Skepticism is reasonable. The Dual_EC controversy is a real reason to ask questions about cryptographic standards. NIST eventually removed that algorithm from its recommendations. NIST's removal notice

The current standards have public specifications and underwent years of public analysis. In the lattice schemes, public matrices are generated reproducibly from seeds, allowing researchers to inspect that mechanism.

That transparency is valuable evidence, not a proof that hidden weaknesses are impossible. Public review can miss a mathematical flaw. Implementations can also introduce bugs even when the underlying design is sound.

Government endorsement alone neither proves a backdoor nor proves safety. We should examine the design, independent analysis and implementation quality.

What does this mean for our password-manager project?

A password manager combines several protections. A master password, password-based key derivation, database encryption and any sharing mechanism each have different jobs.

Post-quantum cryptography does not mean throwing away every existing algorithm. For example, NIST continues to recognize AES-192 and AES-256 as providing strong protection against known quantum attacks. You also do not need a quantum computer to run post-quantum software. NIST FAQ

For this learning project, we will:

  • Understand what each component protects before selecting algorithms.
  • Use maintained cryptographic libraries for realistic demonstrations.
  • Keep homemade mathematics clearly labeled as educational.
  • Use fictional passwords and sample data.
  • Learn how software can replace algorithms as evidence changes.

There is a real reason to prepare: someone can collect encrypted information today and attempt to decrypt it later. Information that must stay confidential for many years deserves particular attention.

We can take that seriously without treating a research headline as an emergency instruction to move passwords into unfamiliar software.

Small glossary

  • Post-quantum cryptography: Cryptography designed to resist attacks using both ordinary and quantum computers.
  • KEM: A mechanism for establishing a shared secret.
  • Digital signature: Evidence connecting signed data to a private key.
  • Structured lattice: A mathematical lattice with additional patterns that make cryptographic operations efficient.
  • Asymptotic improvement: An improvement in how an algorithm scales as problems grow; it may offer no practical advantage at deployed sizes.
  • Cryptographic agility: The ability to replace algorithms without rebuilding an entire system.

Continue learning

Return to the course introduction, start Lesson 1, or explore the reference list.