RSA vs Ed25519 vs ML-DSA: which signature to move to
Move RSA signatures to Ed25519 or ECDSA now, and plan for ML-DSA as the post-quantum target. NIST IR 8547 deprecates RSA, ECDSA and EdDSA after 2030 and disallows them after 2035. ML-DSA signatures are 2,420 to 4,627 bytes against 64 for Ed25519, so it needs room in your protocols. Node supports ML-DSA from v24.6.0.
By Nate Sproul, software engineer · Updated December 1, 2026
What does each signature scheme resist?
RSA, Ed25519 and ML-DSA rest on different hard problems, so they fail under different attacks. NIST IR 8547 lists RSA, ECDSA and EdDSA (the family Ed25519 belongs to) in its table of quantum-vulnerable digital signature algorithms, and lists ML-DSA in its table of post-quantum signature algorithms. That table is the line that matters for planning.
Moving from RSA to Ed25519 changes which mathematical problem protects you. It does not make the signature quantum-resistant. RFC 8032 says Ed25519 is intended to operate at around the 128-bit security level, which is a classical-attack figure.
ML-DSA is the lattice-based standard, published as FIPS 204, the Module-Lattice-Based Digital Signature Standard. FIPS 204 claims security category 2 for ML-DSA-44, category 3 for ML-DSA-65 and category 5 for ML-DSA-87.
What are the key and signature sizes?
Ed25519 numbers come from RFC 8032 section 1: public keys of 32 bytes and signatures of 64 bytes. ML-DSA numbers come from Table 2 of FIPS 204, in bytes.
- Ed25519: 32-byte public key, 64-byte signature.
- ML-DSA-44: 1,312-byte public key, 2,560-byte private key, 2,420-byte signature.
- ML-DSA-65: 1,952-byte public key, 4,032-byte private key, 3,309-byte signature.
- ML-DSA-87: 2,592-byte public key, 4,896-byte private key, 4,627-byte signature.
- The practical effect: a JWT signed with ML-DSA-44 carries a 2,420-byte signature before encoding, where Ed25519 carries 64. Check header size limits, cookie limits and database column widths before you switch.
What do Node.js, WebCrypto and jose support?
This is what each project's own documentation says, as of the date at the top of this page.
- Node's crypto module lists
ed25519andml-dsa-44,ml-dsa-65andml-dsa-87as asymmetric key types. Its version history says "Add support for ML-DSA keys", ML-DSA key pairs and ML-DSA signing and verification in v24.6.0. - Node's WebCrypto implementation added Ed25519 in v18.4.0 and v16.17.0, and its history says Ed25519 is stable from v23.5.0, v22.13.0 and v20.19.3. Its ML-DSA entry says "ML-DSA algorithms are now supported" in v24.7.0, under a section marked "Stability: 1.1 - Active development".
- In browsers, MDN's SubtleCrypto.sign page documents Ed25519 and does not mention ML-DSA. We do not claim browser ML-DSA support.
- jose's README lists the specifications it covers, and the list includes CFRG Elliptic Curve ECDH and Signatures (RFC 8037) and ML-DSA for JOSE (RFC 9964).
- jsonwebtoken does not support EdDSA; see How to replace RS256 JWTs.
What does NIST say about timing?
NIST IR 8547, dated October 2026, says NIST will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow its use under NIST standards and guidelines after 2035. Its Table 2 lists RSA, ECDSA and EdDSA with "Deprecated after 2030" and "Disallowed after 2035".
Deprecated means organizations may continue using these algorithms while they migrate. The report also says federal high value assets and high impact systems have earlier deadlines under Executive Order 14412 and OMB Memorandum M-26-15: post-quantum signatures by December 31, 2031.
Where can you use ML-DSA today?
Two places are documented. In Node.js, from v24.6.0 through the crypto module, and from v24.7.0 through WebCrypto, which is marked active development. And Cloudflare says it supports ML-DSA for the connection between Cloudflare and your origin server, with post-quantum authentication for visitor-to-Cloudflare connections still in development.
We did not confirm ML-DSA in jsonwebtoken or in browsers, so we do not list them as supported.
So which one should you move to?
If you are leaving RSA now: Ed25519 where every verifier supports it, ECDSA P-256 where one does not. Put the algorithm name and a key ID in every signed object, so the later move to ML-DSA is a key and algorithm change, not a format change.
If you are designing something new that will live past 2030: write the signature field as variable-length from the start, and keep the algorithm behind one helper. The RSA exit plan and the crypto agility case study show how. To find what you have today, see How to find every RSA use in a JS/TS codebase. For encryption rather than signatures, see Harvest now, decrypt later.
If you want the engineer who wrote this to do the swap, the fix sprint is $2,500 per repo for up to 25 RSA call sites, plus $75 for each site after that. Details on the RSA exit page.
Questions
- Is Ed25519 quantum-safe?
- No. NIST IR 8547 lists EdDSA as deprecated after 2030 and disallowed after 2035, alongside RSA and ECDSA. Ed25519 is a reasonable step off RSA now, but it is not the final destination. (NIST IR 8547)
- How big is an ML-DSA signature?
- 2,420 bytes for ML-DSA-44, 3,309 for ML-DSA-65 and 4,627 for ML-DSA-87, per Table 2 of FIPS 204. An Ed25519 signature is 64 bytes.
- Does Node.js support ML-DSA?
- Yes, from v24.6.0 in the crypto module, per the version history in the Node.js crypto docs. The WebCrypto interface added ML-DSA in v24.7.0 and is marked active development.
Send a few lines about what you sign today and who verifies it. The reply comes from the engineer who would do the work.
nate@sproultech.com