← Back to section · Foundations of Cryptography
Edwards Curves and Ed25519: A Curve Shape Born for Implementation
Edwards curves trade a symmetric, elegant equation for complete addition formulas: no exceptional cases, no branches. This article explains the difference between the Edwards form and the twisted Edwards form, where Ed25519's parameters come from, and its kinship with Curve25519.
The same set of elliptic-curve points can be written in different equations; mathematically it makes no difference, but for implementation the difference is enormous. The point-addition formulas of the Weierstrass form come with a long list of exceptions: if the two points are equal, switch to the tangent formula; if they are inverses of each other, return the point at infinity; if the identity is involved, handle it separately — every branch is a potential bug and a side-channel entry point. In 2007, the curve family systematically studied by Harold Edwards offered another way of writing things, whose addition formula is remarkably beautiful by cryptographic standards: one formula covers every case. This article covers the family’s origin, why the formula is complete, and its star member, Ed25519.
The Edwards form: one equation and one formula
An Edwards curve over a field has the equation
where is a parameter. Over the reals with , the picture is an oval symmetric about both coordinate axes, in shape between a circle and a square — and when it degenerates exactly into the unit circle. The analogy is no coincidence: “addition” on the circle is addition of angles, and the point-addition formula on an Edwards curve is precisely the algebraic generalization of the angle-sum formulas on the circle. For any two points and , the sum is given by:
The identity is , and the inverse of is — inversion costs nothing but negating one coordinate. The key property is in the denominators: when is a non-square in the field, both denominators are never zero for points on the curve, so this set of formulas is complete — doubling, the identity and inverses all travel the same path, with no exceptional branches whatsoever. Bernstein and co-authors later proved that every elliptic curve over a field of odd characteristic that has a rational point of order 4 can be rewritten in Edwards form, so this is not the luck of one isolated example but good coordinates for a large class of curves.
The twisted Edwards form and Ed25519
What engineering actually uses is one step further: the twisted Edwards form , where the extra coefficient lets the designer tune once more between “complete formulas” and “arithmetic speed”. Ed25519 (RFC 8032) chooses one with : the field is and the equation is
where is the smallest value satisfying a list of security criteria. The total number of points on the curve is , where is a prime of about — that is, the base point has order and the cofactor is 8. Every parameter comes with a stated rationale: the prime is the prime nearest to , and is the smallest rational satisfying the conditions — the same language of “rigid generation” discussed in the previous article.
Ed25519’s relationship with Curve25519 is deeper than “same author”: the two share the field , and there is a birational equivalence map between the curves — Curve25519 is in Montgomery form, optimized for the ladder algorithm of X25519 key exchange; Ed25519 is the corresponding Edwards form, optimized for the complete addition formulas of signatures. One mathematical object, two coordinate systems tailored to different tasks. For deployers this also means the same field-arithmetic code can support both key exchange and signatures.
What complete formulas buy
Put the value in concrete terms. First, implementations are short: in a Weierstrass implementation, point addition must first test whether it is a doubling, whether the points are inverses, whether the identity is involved; in an Edwards implementation all of these tests vanish, the core operation is a single set of formulas, and the audit surface shrinks accordingly. Second, constant-time implementation is easy: branches are themselves a source of timing leakage, and complete formulas make “every input follows the same path” the default rather than extra work. Third, there are dedicated faster doubling formulas, but they are not required — the unified formula is already fast enough, and optimizations can be introduced when wanted without changing the semantics of the interface. These three together explain why Ed25519, proposed in 2011, quickly became the default option for SSH, TLS, software signing and similar scenarios: it is fast, but more importantly it lets ordinary implementers get it right.
The deployment record supports the persuasiveness of this design: within a few years of its proposal, Ed25519 became a default key type in OpenSSH, entered the signature-algorithm list of TLS 1.3, and was adopted by many software-update and package-signing systems, making it one of the most frequently encountered signature schemes in new deployments. It often appears as a pair with X25519 from the same family — one handles key exchange, the other signatures, sharing the same field arithmetic and constant-time implementation experience; this “designed as a set” quality lowers the audit cost of the whole protocol stack.
The cofactor 8 also has engineering meaning that must be stated. A cofactor other than 1 means the curve carries small subgroups besides the large prime-order subgroup, and protocol design must deal with them: whether signature verification uses an equation that multiplies through by the cofactor to clear small-subgroup components, or insists on the strict equation, was the subject of a well-known inconsistency discussion between implementations in the Ed25519 ecosystem, and its root lies exactly here. The lesson: a curve’s elegance does not automatically make a protocol rigorous — “tails” such as the cofactor always have to be accounted for at the protocol layer.
The family’s other member: Ed448
The same design language has a larger sibling, Ed448 (standardized alongside in RFC 8032). It swaps the field for the prime , keeps the twisted Edwards form with , has a base-point order that is a prime of about and a cofactor of 4, and targets a security strength of about 224 bits, for scenarios needing a higher security margin. Ed448 is deployed far less than Ed25519 — most systems consider 128-bit strength sufficient and are unwilling to pay for larger signatures and public keys — but its existence shows that the Edwards form is a scalable design method rather than one curve’s luck: the same rigid parameter-generation rules, the same complete formulas, and a change of prime moves the whole design to another security level. One small member and one large one demonstrate the difference between “parameters generated by rules” and “each curve hand-picked”: the former can be replicated in bulk, the latter must rebuild trust case by case.
Summary
Edwards curves pushed the implementation aesthetics of elliptic curves to a new height: one symmetric equation, one complete set of formulas, and an inversion that costs only a coordinate negation. Kin to Curve25519 and sharing its field, with rigidly auditable parameters, it is the most complete specimen of the “born for implementation” design route. The next article returns to the protocol layer: when these curves are used for key exchange, what exactly happens inside one ECDH handshake, and which verification problems must be defended against?
Tags: Edwards CurvesEd25519Elliptic Curves