Module 4, Lesson 1

The quantum threat to elliptic-curve signatures

Guiding question

Could a quantum computer let someone forge the signatures that control accounts on ledgers like the XRP Ledger, and how worried should a careful person be today?

Short answer. Yes, in principle. NIST states that elliptic-curve signature schemes, ECDSA and EdDSA, "are vulnerable to Shor's Algorithm on a cryptographically relevant quantum computer." 1 The XRP Ledger signs transactions with exactly these: ECDSA on the secp256k1 curve, and Ed25519, an EdDSA scheme. 2 A machine that big would let an attacker who knows an account's public key work out its private key and sign as the owner. 1 lesson But NIST also says there are "no existing cryptographically relevant quantum computers," and nobody can say with confidence when one will exist. 1 The right stance is neither panic nor dismissal. NIST's own plan treats these algorithms as acceptable for now but sets them to be disallowed for federal use after 2035, and says migration is likely to take more than a decade, which is why it starts now. 1 Lesson 2 covers the migration path.

Section 1: what a digital signature does

On a ledger, nobody checks your passport. Control of an account means control of a secret number, the private key. From it you derive a public key that everyone can see. When you send a transaction, you sign it with the private key; anyone can check the signature against the public key. 2

How a ledger signature proves control of an account
  1. Step 1Owner holds a secret private key
  2. Step 2A public key is derived from it and is safe to share
  3. Step 3Owner signs each transaction with the private key
  4. Step 4Anyone checks the signature against the public key

Security rests on one step being one-way: public key to private key.

Source: XRPL.org, Cryptographic Keys

The XRP Ledger documentation puts it plainly: the public key "cannot be used to create valid signatures, so it is safe to share publicly." 2 That statement is true because, with classical computers, working backwards from a public key to its private key is practically impossible. Elliptic-curve cryptography rests on that one-way property. lesson

Where the account comes from. On XRPL, the Account ID that identifies an account is "derived from the public key." 2 The full address is not the public key itself, so someone who only knows your address does not automatically know your public key. But the documentation also says transactions "must include the public keys so that the network can verify" their signatures. 2 So once an account signs anything, its public key is on the public record. lesson

Section 2: what Shor's algorithm changes

In 1994 the mathematician Peter Shor showed that a quantum computer could solve certain math problems, including the ones behind RSA and elliptic-curve cryptography, much faster than any known classical method. lesson NIST's draft transition report, IR 8547, lists ECDSA, EdDSA and RSA together as "quantum-vulnerable" signature algorithms for this reason. 1

In plain terms. With a big enough quantum computer, the one-way street becomes two-way. Given a public key, the attacker computes the private key, and can then sign anything that key controls. lesson

What it does not break. NIST says existing symmetric cryptography and hash functions are "less vulnerable to attacks by quantum computers," and does not expect to need to replace those standards as part of this migration. 1 So the risk is concentrated in public-key signatures and key exchange, not in every part of a ledger. lesson

What a cryptographically relevant quantum computer threatens
Quantum-vulnerable
ECDSA, EdDSA and RSA signatures; public-key key exchange
Less vulnerable
Symmetric cryptography and hash functions; NIST does not expect to replace them

The risk is concentrated in public-key signatures and key exchange.

Source: NIST IR 8547 (initial public draft), Transition to Post-Quantum Cryptography Standards

Section 3: how big a machine, and when?

The phrase NIST uses is a "cryptographically relevant quantum computer," meaning one large and reliable enough to run Shor's algorithm against real key sizes. NIST says none exists today. 1

When one might is uncertain, and public estimates vary widely. This lesson does not pick a date, because there is no authoritative public figure to cite. lesson What NIST offers instead is a planning schedule. In IR 8547, quantum-vulnerable signature algorithms at 112 bits of security are "deprecated after 2030" and all of them are "disallowed after 2035" for US federal systems. 1 Ed25519 is designed for "around the 128-bit security level," and secp256k1 is generally treated as similar, so the schemes XRPL uses fall in the "disallowed after 2035" group. 6 1 lesson

NIST milestones for moving off quantum-vulnerable signatures
  1. 2024-08-13NIST publishes FIPS 203, 204 and 205, the first post-quantum standards
  2. 2024-11-12NIST IR 8547 draft sets transition schedule
  3. 2025-03-11NIST selects HQC as a backup key-establishment algorithm
  4. 2030112-bit quantum-vulnerable signatures deprecated
  5. 2035All quantum-vulnerable signatures (ECDSA, EdDSA, RSA) disallowed

The 2024 and 2025 events come from NIST announcements. 3 4

Section 4: Mosca's rule, or why "not yet" is not enough

NIST explains the urgency with what it calls Mosca's theorem. Let X be the years data must stay secure, Y the years needed to complete the transition, and Z the years until a cryptographically relevant quantum computer is built. If X plus Y is larger than Z, you are already late. 1

NIST adds that past cryptographic migrations "have taken over a decade, and this more complex migration will likely take at least that long." 1

Applying it to a ledger. model Signatures are different from encrypted secrets, so X works a little differently. A signature only needs to resist forgery while the key still controls value. For a long-lived account that holds assets for 10 years, X is about 10. If migrating a global ledger and its wallets takes 10 years, Y is about 10. The rule then says the migration needed to start about 20 years before a capable machine exists. All three numbers here are assumptions for teaching.

Estimate
Mosca's rule applied with teaching assumptions
X, years the key must stay safe
10 (assumed)
Y, years to migrate
10 (assumed; NIST says past migrations took over a decade)
Safe if Z, years until a capable machine, is more than
20 (X plus Y)

Model: X and Y are teaching assumptions; NIST gives no value for Z

Source: NIST IR 8547 (initial public draft), Transition to Post-Quantum Cryptography Standards

Section 5: "harvest now, decrypt later" and its signature cousin

NIST highlights the "harvest now, decrypt later" threat: adversaries collect encrypted data today and decrypt it once quantum technology matures. 1 That threat mainly concerns secrecy, such as messages and records.

Ledgers are mostly public, so secrecy is less of an issue. The ledger version of the threat is about forgery. lesson

  • Exposed public keys. Every signed transaction publishes the signer's public key. 2 An attacker can record those keys today and, once a capable machine exists, derive the private keys.
  • Long-lived accounts. An account that keeps the same key for years carries the most risk.
  • Dormant funds. Accounts whose owners have lost access can never move to new keys.

This is why migration on ledgers is partly about moving value. Changing the code is not enough if old keys still control old funds. lesson

Section 6: what XRPL already has that helps

Two existing XRPL features matter for later migration. 2 lesson

  1. Regular keys. An account can assign a separate "regular key pair" to sign transactions and can disable its master key pair. The documentation says the regular key can be changed, and a regular key or multi-signature "can do anything else the same as the master key pair." 2 This means an account's signing key can be rotated without changing its address.
  2. Multi-signing. An account can require signatures from a list of keys. Combining keys raises the bar for an attacker. 2

These do not make an account quantum-safe, because every key type XRPL supports today is elliptic-curve. 2 But they create a way to switch an account to a new kind of key later, if the network adds one. Lesson 2 explains how the network would add it. lesson

Section 7: how exposed are different holders?

lesson A rough ranking, from most to least exposed, if a capable machine appeared:

Holder type Why
Long-lived accounts that have signed many transactions and never rotate keys Public key is published; key has a long life
Dormant or lost accounts Can never migrate
Accounts using a regular key that rotates often Exposure window is shorter, but keys are still elliptic-curve
Accounts that migrate promptly when post-quantum keys become available Lowest exposure

The ranking is a judgment, not a measurement. It suggests the practical message: the risk depends far more on how keys are managed and how quickly a ledger can migrate than on the exact year a quantum computer arrives. lesson

Section 8: separating signal from noise

Quantum headlines are often confusing. Four habits help. lesson

  1. Ask which algorithm. Elliptic-curve signatures and RSA are the vulnerable ones. Hash functions and symmetric ciphers are much less affected. 1
  2. Ask whether the machine is "cryptographically relevant." Lab milestones with small numbers of qubits are progress, not a working attack. NIST says no such machine exists. 1
  3. Ask about migration, not just threat. NIST published the first post-quantum standards in August 2024: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). 3 The tools exist; adoption is the open question.
  4. Be wary of dated predictions. No authoritative public source gives a reliable date for a capable machine. Claims that pick one, early or late, are opinions.

Section 9: what this means for the course thesis

Module 4 asks whether XRP and XRPL could serve as a neutral settlement layer. Any ledger meant to hold value for decades must have a credible quantum plan, because NIST's schedule puts elliptic-curve signatures out of approved federal use after 2035, and banks and public bodies tend to follow NIST. 1 lesson This is not specific to XRPL: the same signature families protect most public blockchains. lesson The question for any ledger is whether its governance can agree on a change, ship it, and move users to new keys in time. That is a test of governance and operations more than of mathematics. lesson

Section 10: a short note on key sizes

Post-quantum signatures are larger. FIPS 204 lists an ML-DSA-44 public key at 1,312 bytes and a signature at 2,420 bytes. 5 An Ed25519 signature is 64 bytes, and its public key 32 bytes. 6 The difference matters for a ledger that stores and transmits every signature; Lesson 2 works through the cost. lesson

Signature size in bytes, classical vs post-quantum

Values in bytes

Ed25519 (RFC 8032)64
ML-DSA-44 (FIPS 204)2,420
ML-DSA-65 (FIPS 204)3,309
ML-DSA-87 (FIPS 204)4,627

Section 11: three myths, corrected

Myth 1: "Quantum computers will break all of crypto at once." The vulnerable parts are public-key signatures and key exchange. Hash functions and symmetric ciphers, which ledgers also use, are much less affected, according to NIST. 1 A ledger can keep most of its design and replace the signature layer. lesson

Myth 2: "Addresses that have never signed are completely safe." Safer, not completely safe. On XRPL the Account ID is derived from the public key rather than being the key, which hides the key until the first signature. 2 But nearly every useful account signs eventually, and accounts that receive funds and then sit unused still need to move to new keys when the network supports them. lesson

Myth 3: "There is nothing anyone can do until the machine exists." NIST's position is the opposite. It argues migration must start well before a capable machine exists, because it will likely take more than a decade. 1 The standards are already published. 3 5

Section 12: what migration would look like for an ordinary holder

Assume a future in which a ledger adds a post-quantum key type. model For an ordinary holder, the steps would likely be: update the wallet software; create a new post-quantum key; assign it to the account, for example as a regular key on XRPL-like systems; disable the old elliptic-curve master key; and confirm the change on the ledger. 2 lesson None of these steps exist for post-quantum keys on XRPL today, since the documentation lists only secp256k1 and Ed25519. 2 The point of sketching them is to show that the user's part of a migration can be short, while the hard parts, agreeing on the algorithm and shipping it network-wide, sit with developers and validators. lesson

Deliverable: a quantum exposure note

Write a half-page note on one ledger you follow:

  1. Which signature algorithms does it use? Cite its documentation.
  2. Are public keys published when users sign? Can users rotate keys without changing addresses?
  3. Using Mosca's rule, write down your own X and Y, labeled model, and state what Z would make you worried.
  4. List one signpost that would raise your concern, such as a credible demonstration of breaking a real elliptic-curve key size, and one that would lower it, such as the ledger enabling post-quantum signatures.

Why it matters

Quantum risk is the rare threat with a public, official timetable for moving away from today's tools. That makes it testable: you can check whether a ledger has a plan and whether it is executing it, instead of debating when a machine will arrive. For anyone evaluating long-term settlement infrastructure, a ledger without a credible migration path is carrying a known, dated risk. lesson

It also guards against the opposite error. Treating quantum computing as an immediate break of every ledger leads to rushed decisions and easy marketing claims. The calm reading is that the threat is real, the date is unknown, the tools are published, and the work is mostly coordination. lesson

Sources

  1. NIST IR 8547 (initial public draft), Transition to Post-Quantum Cryptography Standards (November 12, 2024)
  2. XRPL.org, Cryptographic Keys
  3. NIST, NIST Releases First 3 Finalized Post-Quantum Encryption Standards (August 13, 2024)
  4. NIST, NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption (March 11, 2025)
  5. NIST, FIPS 204: Module-Lattice-Based Digital Signature Standard (August 2024)
  6. IETF, RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA) (January 2017)