← Back to section · Foundations of Cryptography

ECDSA versus EdDSA: Two Signature Schemes with Different Temperaments

Both are elliptic-curve signatures, but ECDSA stakes its security on the randomness of every signature while EdDSA removes that landmine with deterministic derivation. This article compares their signing and verification equations, the history of nonce disasters, and their malleability differences, and explains why modern protocols keep defecting to EdDSA.

Published 22 November 2026 · 6 min read · PQ Frontier

ECDSA versus EdDSA: Two Signature Schemes with Different Temperaments
AI-generated site artwork
Video explainer · Elliptic curve cryptography: points and groups

Elliptic-curve digital signatures have two faces: ECDSA, which became a US federal standard in 1999 and underpins WebPKI, code signing and a large installed base; and EdDSA, represented by Ed25519 from 2011, which over the following decade captured almost every new position — SSH, TLS 1.3, software distribution. The security of both reduces to ECDLP, yet their equations are written with very different temperaments. This article walks through the two sets of equations side by side, focusing not on which is more “advanced” but on how design decisions determine the shape of implementation accidents.

ECDSA: the equations and the landmine named k

ECDSA signing runs as follows: the signer picks a one-time random nonce kk, computes the point R=kGR = kG, takes its x-coordinate modulo nn as rr, and then solves for s=k−1(H(m)+r⋅d) mod ns = k^{-1}(H(m) + r \cdot d) \bmod n, where dd is the private key and H(m)H(m) the message hash; the signature is the pair (r,s)(r, s). The verifier recomposes a point from the public key and checks whether its x-coordinate equals rr. The most glaring element in the equations is kk: for every message it must be random, uniform, secret, and never repeated. The reason is pure algebra: if the same kk signs two messages, the two ss equations form a system of two linear equations in two unknowns, and kk and dd can be solved directly — the private key leaks on the spot, with no computational difficulty involved at all. If some bits of kk leak or kk is biased, the problem turns into a hidden-number problem over lattices, and collecting enough signatures likewise recovers the private key.

This is not theoretical scaremongering. In 2010, a game console’s signing code fixed kk as a constant, and two signatures sufficed for its signing private key to be computed publicly — the most famous incident in the history of cryptographic engineering; in the years since, wallets and embedded devices have repeatedly had private keys stolen in bulk because of poor-quality random number generators and biased kk. The remedy is deterministic ECDSA (RFC 6979): derive kk with HMAC from the private key and the message, so the same message always yields the same signature and the random source leaves the signing path. But it is an after-the-fact patch, its deployment is far from universal, and determinism does not fix ECDSA’s other temperamental traits.

EdDSA: Schnorr lineage and deterministic derivation

EdDSA’s equations are much more economical. It descends from Schnorr signatures: the signer computes R=rGR = rG, where rr is not drawn at random but derived by hashing the second half of the private key material together with the message, r=H(private-key-derived material ∥ m)r = H(\text{private-key-derived material} \,\|\, m); then S=r+H(R ∥ A ∥ m)⋅d mod ℓS = r + H(R \,\|\, A \,\|\, m) \cdot d \bmod \ell, and the signature is (R,S)(R, S). Verification checks a single group equation, S⋅G=R+H(R∥A∥m)⋅AS \cdot G = R + H(R \| A \| m) \cdot A. Three design points deserve to be named one by one: the nonce is replaced wholesale by deterministic derivation, the signing step needs no random source, and the same input always produces the same signature — reproducible and testable; the challenge hash binds RR, the public key and the message together, closing off several combination-attack surfaces that ECDSA must guard against separately; and the verification equation is a pure group equality with no inversions and no coordinate-reduction juggling, making implementations shorter.

Side by side: where the temperaments differ

List the differences. Randomness dependence: ECDSA consumes high-quality randomness for every signature and binds it directly to private-key security; EdDSA does not depend on a signing-time random source at all. Malleability: for ECDSA, if (r,s)(r, s) is valid then (r,n−s)(r, n - s) is valid too, and signatures can be reworked by third parties, which caused real trouble in systems that treat a signature as a unique identifier (the early Bitcoin transaction-malleability problem came from exactly this); Ed25519’s normative verification constrains the range of SS and the form of the equation strictly, compressing the malleability space to a minimum. Batch verification: EdDSA’s linear verification equation naturally supports verifying many signatures jointly, with an obvious throughput advantage, while ECDSA needs two scalar multiplications per signature. Implementation surface: EdDSA rests on the complete addition formulas of Edwards curves (see the Edwards curves article), so the core code is short and easy to make constant-time; ECDSA needs inversion and coordinate reduction, and has more pitfalls. Determinism: EdDSA is deterministic by default; ECDSA needs RFC 6979 to catch up.

In fairness, ECDSA is not insecure: the equations themselves have withstood more than twenty years of analysis, and with reliable randomness and a conforming implementation it remains up to the job. Where it loses is fault tolerance — staking system security on “every signature must draw a perfect nonce” leaves every implementer a landmine that can go off at any time, whereas EdDSA’s design philosophy is to defuse the landmine at the specification layer. This runs in the same vein as the entire Curve25519/Ed25519 family: do not count on implementers never making mistakes; make mistakes hard to make.

The verification side has a bill too

The cost of a signature scheme is not only at the signing end. ECDSA verification needs two scalar multiplications (or one joint multi-scalar multiplication); the arithmetic itself is not slow, but implementations must handle inversion and coordinate reduction, and the verification code has just as many pitfalls as the signing code; EdDSA verification is a single group equation and, together with the complete Edwards formulas, verification implementations benefit equally from being short and branch-free. Another often-overlooked dimension is a signature’s linkability: a deterministic signature means the same private key always produces the same signature on the same message, which in most scenarios is a virtue (reproducibility, auditability), but in the few protocols that need “the signer cannot prove they signed something” or need signatures with a randomized appearance, it becomes a constraint instead — which is why a handful of new protocols still choose randomized signatures. Finally, thresholdization: when a private key must be split among several parties signing jointly, ECDSA’s nonlinear equations make multi-party protocols exceptionally complex, and the industry spent years of research before obtaining workable schemes; EdDSA’s linear structure is comparatively friendly, though its deterministic nonce derivation conflicts subtly with the multi-party setting and needs dedicated adaptation. Laying these dimensions on the table explains why different ecosystems give different answers.

Summary

The contest between ECDSA and EdDSA is a contest between two views of security: the former proved that elliptic-curve signatures were feasible; the latter proved the same thing can be done so that ordinary people can implement it correctly. The installed base guarantees ECDSA a long service life, while new protocols choose EdDSA almost unanimously. Understanding this line of evolution is understanding one of the most important lessons of modern cryptographic engineering — half of an algorithm’s security boundary is written in its equations, and the other half in how much room it leaves implementers to err. The final article opens a new tool: what new capabilities become available once elements of two groups are “paired” together?

Tags: ECDSAEdDSADigital SignaturesEd25519