Module 4, Lesson 2

Post-quantum migration path for XRPL-like systems

Guiding question

If a ledger like the XRP Ledger needs to stop relying on elliptic-curve signatures, what would the move actually involve, in what order, and what would it cost?

Short answer. The tools exist. NIST finalized its first post-quantum standards on August 13, 2024: FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) for signatures, and FIPS 203 (ML-KEM) for key exchange. 1 A ledger like XRPL already has the two mechanisms a migration needs: an amendment process to change the rules, which passes a change once it holds "more than 80% support for two weeks" among trusted validators, and key rotation, which lets an account switch the key that signs for it without changing its address. 2 3 The path is: choose an algorithm, add it as a new key type through an amendment, let wallets and services support it, move accounts to new keys, and only then consider limiting old keys. lesson The main costs are size and coordination. An ML-DSA-44 signature is 2,420 bytes and its public key 1,312 bytes, against 64 and 33 bytes for an XRPL Ed25519 signature and key, so each signed transaction grows by about 3.6 kilobytes. 4 5 3 model The hardest problem is not code but accounts that never move. lesson

Section 1: what has to change, and what does not

A ledger uses cryptography in several places. Only some are quantum-vulnerable. lesson

Part What it does Quantum risk
Account signatures Prove the owner approved a transaction High: ECDSA and EdDSA are vulnerable to Shor's algorithm 6
Validator signatures Prove which validators approved a ledger High, same reason 6 lesson
Hashes Link ledgers and identify objects Lower: NIST does not expect to replace these standards 6
Network connections between servers Protect traffic Depends on the key exchange used; ML-KEM is NIST's main replacement 1

So a migration is mainly about signatures, for accounts and for validators. lesson

Section 2: choosing an algorithm

NIST offers more than one option. 1 7

  • ML-DSA (FIPS 204). Based on lattice math. NIST calls these standards "the primary tools for general encryption and protecting digital signatures." 1
  • SLH-DSA (FIPS 205). A hash-based scheme "based on a different math approach than ML-DSA," intended "as a backup method in case ML-DSA proves vulnerable." 1
  • FN-DSA (draft FIPS 206). Based on the FALCON algorithm; NIST said the draft would follow. 1
  • HQC. Chosen on March 11, 2025 as a backup for ML-KEM, for key exchange rather than signatures, with a final standard "expected in 2027." 7

Trade-offs. lesson ML-DSA is fast and has moderate sizes. SLH-DSA relies only on hash functions, which many cryptographers see as conservative, but its signatures are generally larger. FN-DSA aims for smaller signatures but is not yet final. A ledger could reasonably choose ML-DSA as its main option and keep a hash-based option available as insurance.

NIST's post-quantum options and their roles
ML-DSA (FIPS 204)
Lattice-based signatures; a primary tool, fast with moderate sizes
SLH-DSA (FIPS 205)
Hash-based signatures; backup in case ML-DSA proves vulnerable
FN-DSA (draft FIPS 206)
Based on FALCON; aims for smaller signatures, not yet final
HQC
Backup for ML-KEM key exchange, not signatures; final standard expected in 2027

A ledger could pick ML-DSA as its main option and keep a hash-based option as insurance.

Source: NIST, NIST Releases First 3 Finalized Post-Quantum Encryption Standards (August 13, 2024)

Hybrid signatures. Some designers propose requiring both a classical and a post-quantum signature during the transition, so that a flaw in either scheme alone does not break accounts. This doubles signing work and adds size, but protects against an early mistake in new algorithms. lesson

Section 3: the size cost, worked through

Sizes come from the standards. 4 5 On XRPL, Ed25519 public keys carry an extra prefix byte, making them 33 bytes. 3

Scheme Public key (bytes) Signature (bytes) Total per signed transaction
Ed25519 on XRPL 33 64 97
ML-DSA-44 1,312 2,420 3,732
ML-DSA-65 1,952 3,309 5,261

The first row combines RFC 8032 sizes with XRPL's 1-byte prefix; the others are FIPS 204's Table 2. 3 4 5

Bytes of key plus signature per signed transaction

Values in bytes

Ed25519 on XRPL97
ML-DSA-443,732
ML-DSA-655,261

What it means for storage. model Assume 2 million signed transactions a day. This is a round teaching number, not a measured XRPL figure. Moving every transaction from Ed25519 to ML-DSA-44 adds about 3,635 bytes each, or about 7.3 gigabytes a day and about 2.7 terabytes a year of extra data across full-history servers. ML-DSA-44 makes each signed transaction's key-plus-signature about 38 times larger.

Estimate

Additional storage, about

2.7

Extra data a year if every transaction moved from Ed25519 to ML-DSA-44

About 7.3 gigabytes a day across full-history servers. Real, but manageable for modern hardware.

Model: assumed 2 million signed transactions a day, about 3,635 extra bytes each

Source: NIST, FIPS 204: Module-Lattice-Based Digital Signature Standard

Reading it. That is a real cost, especially for servers that keep full history, but not an impossible one for modern hardware. Ways to reduce it include storing the public key once on the account rather than in every transaction, and pruning old signatures from servers that do not need full history. Both are design choices a ledger would have to make. lesson

Section 4: how XRPL changes its rules

The XRP Ledger changes its rules through amendments. Validators vote, and an amendment that keeps "more than 80% support for two weeks" passes and "applies permanently to all subsequent ledger versions." 2 Amendments "that have had their source code removed without being enabled are considered Vetoed." 2

Servers that do not upgrade become "amendment blocked." The documentation says such a server cannot determine the validity of a ledger, submit or process transactions, take part in consensus, or vote on future amendments. 2 This is a safety feature: a server that does not understand new rules stops instead of guessing. For a migration, it means all operators must upgrade in time. lesson

A staged post-quantum migration path for an XRPL-like ledger
  1. Step 1Choose algorithm(s) from NIST standards and publish a specification
  2. Step 2Implement a new key type in server software and test on test networks
  3. Step 3Validators vote; amendment passes with more than 80% support for two weeks
  4. Step 4Wallets, exchanges and custodians add support for the new key type
  5. Step 5Accounts rotate to post-quantum regular keys and disable old master keys
  6. Step 6Validators move their own signing keys to the new scheme
  7. Step 7Network considers rules for accounts that never migrated

Section 5: moving accounts without changing addresses

An XRPL account can assign a "regular key pair" and disable its master key; SetRegularKey "assigns or changes the regular key pair for an account." 3 A regular key or multi-signature "can do anything else the same as the master key pair." 3 That design lets a holder keep their address while changing the key behind it. lesson

If a post-quantum key type were added, a natural path would be: lesson

  1. Generate a post-quantum key.
  2. Set it as the account's regular key.
  3. Disable the elliptic-curve master key.
  4. Optionally, add a multi-signing list mixing key types during the transition.

These steps use features the documentation describes today, except the new key type itself, which does not exist on XRPL. The documentation lists only secp256k1 and Ed25519. 3

Section 6: the hard problem, accounts that never move

Some accounts will not migrate. Owners lose keys, forget, or die. lesson Once a capable quantum computer exists, any such account whose public key is on the ledger could be taken by whoever breaks its key first. Every ledger faces this. The options are uncomfortable. lesson

Option Benefit Cost
Do nothing No change to rules Unmigrated funds may be stolen by the first capable attacker
Set a deadline after which old-key signatures are refused Protects unmigrated funds from theft Owners who miss the deadline are locked out, possibly forever
Allow late recovery using a post-quantum proof of an earlier secret Fairer to late movers Complex, and only works if a suitable secret exists

All lesson. Each option is a governance choice about property rights, not a technical one. A ledger that wants to be trusted as neutral infrastructure should debate it publicly and early. lesson

Section 7: a realistic timeline

NIST's draft schedule disallows quantum-vulnerable signatures for US federal use after 2035, and it notes past migrations "have taken over a decade." 6 Working backwards gives a planning sketch. model

Estimate
Illustrative migration plan working back from NIST's 2035 date
  1. 2024NIST final standards FIPS 203, 204, 205 published
  2. 2027 (assumed)Ledger specification and test-network implementation
  3. 2029 (assumed)Amendment enabled on main network
  4. 2029 to 2033 (assumed)Wallets, custodians and most accounts migrate
  5. 2035NIST disallows quantum-vulnerable signatures for federal use

Model: only 2024 and 2035 come from NIST; other dates are planning assumptions

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

The middle dates are not anyone's announced plan. They show that even a smooth migration needs to begin within a few years to finish ahead of 2035. lesson

Section 8: questions to ask any ledger

Use these to judge whether a ledger's quantum plan is credible. lesson

  1. Has it published a specification naming a NIST algorithm?
  2. Does it support key rotation without changing addresses?
  3. How are rule changes approved, and how long does that take?
  4. What happens to validators' own keys?
  5. What is the policy for accounts that never migrate?
  6. Have large custodians and exchanges committed to support the new keys?

For XRPL specifically, items 2 and 3 already have documented answers. 2 3 The others depend on future work. This lesson found no enabled post-quantum key type in the XRPL documentation reviewed. 3

Section 9: the costs beyond bytes

Size is the most visible cost, but not the only one. lesson

  • Computation. Verifying larger signatures takes more processing. Validators, which check every transaction, feel this most.
  • Hardware wallets. Many store keys in small secure chips that may not support new algorithms without new hardware.
  • Fees. Ledgers that price transactions partly by size may see fees rise. On XRPL, the base transaction cost is a small amount of XRP destroyed per transaction, which a rule change could adjust. 8
  • Software everywhere. Every wallet, exchange, custodian, explorer and payment service must update. This is usually the longest part of any migration.

Section 10: a worked example, one custodian's migration

model A custodian holds assets for 50,000 client accounts on an XRPL-like ledger. Assume the network has enabled a post-quantum key type. The custodian plans its move.

Step costs, all assumed. Each account needs one transaction to set a new regular key and one to disable the old master key, so 100,000 transactions in total. At the ledger's minimum cost of 10 drops each, the network fees are 1,000,000 drops, or 1 XRP in total. 8 model Fees are trivial. At the ML-DSA-44 size from Section 3, the extra data is about 3.7 kilobytes per transaction, or about 370 megabytes for the whole project. 4 model

Where the real cost sits. The custodian must update its signing systems, often hardware security modules, test the new keys, rehearse recovery, and get sign-off from auditors and regulators. None of that has a public price, and it will vary widely by firm. A reasonable working assumption is that this takes months to a year and dominates the budget. lesson

Order of work. Migrate a small test group first; then the largest balances, which carry the most risk; then everyone else; then confirm that every old master key is disabled. lesson

The lesson of the example is that network fees and storage are small for any one firm. What takes time is the human and organizational work, multiplied across every wallet, exchange and custodian. lesson

Section 11: what could go wrong in the migration itself

A migration can create risk while trying to remove it. lesson

  • A flaw in a new algorithm. New schemes have less history. This is why NIST keeps backups such as SLH-DSA and HQC, based on different math. 1 7 Supporting more than one scheme, or hybrid signatures, reduces this risk.
  • Implementation bugs. New code in wallets and servers can have bugs that leak keys or accept invalid signatures. Careful review and test networks matter.
  • Split networks. If many servers fail to upgrade, they become amendment blocked and stop processing. 2 Clear notice and long testing periods reduce this.
  • Scams. Every migration attracts fake "upgrade your wallet" messages. Holders should use only official software and never share seeds; the XRPL documentation warns that anyone who knows a seed "has effectively full control over that address." 3

Section 12: the validator side

Accounts are not the only keys. Validators sign their votes on each ledger version, and the network decides which validators to trust. lesson If validator keys stayed elliptic-curve after a capable quantum computer appeared, an attacker could in principle impersonate trusted validators. So validators need to move too, ideally early, because there are far fewer of them than accounts and their operators are technically skilled. lesson Because amendments need more than 80% of trusted validators for two weeks, the same group that approves the change is also the group best placed to move first. 2 A credible plan names a date by which validator keys switch, and publishes it. lesson

Deliverable: a migration checklist

For a ledger of your choice, fill in:

Item Status (done / planned / unknown) Source
Post-quantum algorithm chosen
Specification published
Key rotation without address change
Rule-change process and threshold
Validator key plan
Policy for unmigrated accounts
Wallet and custodian support
Size and fee impact estimate model

Then write two sentences: is the ledger on track for a migration before 2035, and what is the biggest gap?

Why it matters

Ledgers that aim to carry value for decades must survive a change of cryptography. The good news is that standards exist and ledgers like XRPL already have rule-change and key-rotation features. The hard parts are coordination, size and unmigrated accounts. Judging a ledger on those, rather than on vague claims of being "quantum-proof" or warnings that it is doomed, gives a clearer view of long-term risk. lesson

Sources

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