Edwards curves and their unified addition law #
An Edwards curve over a commutative ring R is given by the affine equation
x² + y² = 1 + d x² y² with d ≠ 0 and d ≠ 1 ([BS23], Section 15.2.1, p. 619).
Unlike Weierstrass form, the unified Edwards addition formula
(x₁, y₁) + (x₂, y₂) =
((x₁ y₂ + x₂ y₁) / (1 + d x₁ x₂ y₁ y₂), (y₁ y₂ - x₁ x₂) / (1 - d x₁ x₂ y₁ y₂))
requires no case split for doubling or adding the identity (0, 1), and the inverse of (x, y)
is (-x, y).
Over any field F, when d is a non-square (¬ IsSquare E.d), the addition denominators never
vanish (EdwardsCurve.denom_ne_zero), making EdwardsCurve.add total on E.Point with identity
(0, 1), negation (-x, y), commutativity, and inverse cancellation. Associativity and the
equivalence with Montgomery and Weierstrass models are left to follow-up modules.
Main definitions #
EdwardsCurve: an Edwards curvex² + y² = 1 + d x² y²withd ≠ 0andd ≠ 1.EdwardsCurve.Equation: the curve equationx ^ 2 + y ^ 2 = 1 + E.d * x ^ 2 * y ^ 2.EdwardsCurve.Point: affine points(x, y)satisfyingE.Equation x y.EdwardsCurve.zero: the identity point(0, 1).EdwardsCurve.neg: the inverse map(x, y) ↦ (-x, y).EdwardsCurve.order4Point: the point(1, 0)(which has order four when(2 : F) ≠ 0).EdwardsCurve.add: the unified Edwards addition law onE.Pointwhen¬ IsSquare E.d.
Main results #
EdwardsCurve.equation_add: closure ofE.Equationunder the unified addition formula.EdwardsCurve.mul_xy_eq_zero_of_two_eq_zero: in characteristic two,¬ IsSquare E.dforcesR.x * R.y = 0for every pointR.EdwardsCurve.denom_ne_zero: for¬ IsSquare E.d,1 ± E.d * P.x * Q.x * P.y * Q.y ≠ 0over any field.EdwardsCurve.zero_add,EdwardsCurve.add_zero,EdwardsCurve.add_comm,EdwardsCurve.neg_add_cancel: left/right identity, commutativity, and inverse cancellation forE.add.
Implementation notes and deviations from the source #
- [BS23], Section 15.2.1 (p. 619) states only
d ≠ 0, 1over𝔽_pwhen introducing the unified addition formula;d ≠ 0, 1alone does not keep the denominators1 ± d x₁ x₂ y₁ y₂nonzero onE.Point(seed = 4overZMod 11in the test suite), and this module adds the hypothesis¬ IsSquare E.d, which is sufficient but not necessary. - Over a field,
denom_ne_zero,add,zero_add,add_zero,add_comm, andneg_add_cancelhold without assuming(2 : F) ≠ 0, because in characteristic two a non-squaredforcesR.x * R.y = 0for every pointR, so the curve has only the points(0, 1)and(1, 0); no finite field of characteristic two satisfies the hypothesis.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 15.2.1 (p. 619).
The affine equation x² + y² = 1 + d x² y² defining E.
Instances For
Decidability of E.Equation x y when equality in R is decidable.
The identity point (0, 1) on E.
The Edwards negation (x, y) ↦ (-x, y).
Negation is involutive on E.Point.
The point (1, 0) on E (which has order four when (2 : F) ≠ 0).
The x-coordinate of E.order4Point is 1.
The y-coordinate of E.order4Point is 0.
The unified Edwards addition formula preserves E.Equation whenever both denominators are
nonzero.