In mathematics, the Edwards curves are a family of elliptic curves studied by Harold Edwards in 2007. The concept of elliptic curves over finite fields is widely used in elliptic curve cryptography. Applications of Edwards curves to cryptography were developed by Daniel J. Bernstein and Tanja Lange: they pointed out several advantages of the Edwards form in comparison to the more well known Weierstrass form.
The equation of an Edwards curve over a field K which does nothave characteristic 2 is:
x2+y2=1+d x2y2
d\inK\setminus\{0,1\}
x2+y2=c2(1+d x2y2)
where c, d ∈ K with cd(1 − c4·d) ≠ 0.
Every Edwards curve is birationally equivalent to an elliptic curve in Montgomery form, and thus admits an algebraic group law once one chooses a point to serve as a neutral element. If K is finite, then a sizeable fraction of all elliptic curves over K can be written as Edwards curves.Often elliptic curves in Edwards form are defined having c=1, without loss of generality. In the following sections, it is assumed that c=1.
(See also Weierstrass curve group law)
Every Edwards curve
x2+y2=1+dx2y2
d\ne1
(1/e)v2=u3+(4/e-2)u2+u
e=1-d,u=
1+y | |
1-y |
,v=
2(1+y) | |
x(1-y) |
P=(0,1)
On any elliptic curve the sum of two points is given by a rational expression of the coordinates of the points, although in general one may need to use several formulas to cover all possible pairs. For the Edwards curve, taking the neutral element to be the point (0, 1), the sum of the points
(x1,y1)
(x2,y2)
(x1,y1)+(x2,y2)=\left(
x1y2+x2y1 | |
1+dx1x2y1y2 |
,
y1y2-x1x2 | |
1-dx1x2y1y2 |
\right)
The opposite of any point
(x,y)
(-x,y)
(0,-1)
(\pm1,0)
If d is not a square in K and
\{(x1,y1),(x2,y2)\}\in\{(x,y)|x2+y2=1+dx2y2\}2
1+dx1x2y1y2
1-dx1x2y1y2
If d is a square in K, then the same operation can have exceptional points, i.e. there can be pairs of points
(x1,y1),(x2,y2)\in\{(x,y)|x2+y2=1+dx2y2\}
1+dx1x2y1y2=0
1-dx1x2y1y2=0
One of the attractive feature of the Edwards Addition law is that it is strongly unified i.e. it can also be used to double a point, simplifying protection against side-channel attack. The addition formula above is faster than other unified formulas and has the strong property of completeness[1]
Example of addition law :
Consider the elliptic curve in the Edwards form with d=2
{\displaystyle}x2+y2=1+2x2y2
and the point
P1=(1,0)
x3=
x1y2+y1x2 | |
1+2x1x2y1y2 |
=1
y3=
y1y2-x1x2 | |
1-2x1x2y1y2 |
=0
To understand better the concept of "addition" of points on a curve, a nice example is given by the classical circle group:
take the circle of radius 1
{\displaystyle}x2+y2=1
and consider two points P1=(x1,y1), P2=(x2,y2) on it. Let α1 and α2 be the angles such that:
{\displaystyle}P1=(x1,y1)=(\sin{\alpha1
{\displaystyle}P2=(x2,y2)=(\sin{\alpha2
The sum of P1 and P2 is, thus, given by the sum of "their angles". That is, the point P3=P1+P2 is a point on the circle with coordinates (x3,y3), where:
{\displaystyle}x3=\sin({\alpha}1+{\alpha}2)=\sin{\alpha}1\cos{\alpha}2+\sin{\alpha}2\cos{\alpha}1=x1y2+x2y1
{\displaystyle}y3=\cos({\alpha}1+{\alpha}2)=\cos{\alpha}1\cos{\alpha}2-\sin{\alpha}1\sin{\alpha}2=y1y2-x1x2.
In this way, the addition formula for points on the circle of radius 1 is:
{\displaystyle}(x1,y1)+(x2,y2)=(x1y2+x2y1,y1y2-x1x2)
The points on an elliptic curve form an abelian group: one can add points and take integer multiples of a single point. When an elliptic curve is described by a non-singular cubic equation, then the sum of two points P and Q, denoted P + Q, is directly related to third point of intersection between the curve and the line that passes through P and Q.
The birational mapping between an Edwards curve and the corresponding cubic elliptic curve maps the straight lines into conic sections[2]
Axy+Bx+Cy+D=0
P
Q
-(P+Q)
Given two distinct non-identity points
P1=(x1,y1),P2=(x2,y2),P1\neP2
A=(x1-x2)+(x1y2-x2y1)
B=(x2y2-x1y1)+y1y2(x2-x1)
C=x1x2(y1-y2),D=C
In the case of doubling a point
P=(x,y)
-2P
P
A=dx2y-1
B=y-x2
C=x(1-y),D=C
In the context of cryptography, homogeneous coordinates are used to prevent field inversions that appear in the affine formula. To avoid inversions in the original Edwards addition formulas, the curve equation can be written in projective coordinates as:
(X2+Y2)Z2=Z4+dX2Y2
A projective point
(X:Y:Z)
(X/Z:Y/Z)
The identity element is represented by
(0:1:1)
(X:Y:Z)
(-X:Y:Z)
The addition formula in homogeneous coordinates is given by:
(X1:Y1:Z1)+(X2:Y2:Z2)=(X3:Y3:Z3)
where
X3=Z1Z2(X1Y2+X2Y1
2 | |
)(Z | |
1 |
2 | |
Z | |
2 |
-dX1X2Y1Y2)
Y3=Z1Z2(Y1Y2-X1X2
2 | |
)(Z | |
1 |
2 | |
Z | |
2 |
+dX1X2Y1Y2)
Z3=
2 | |
(Z | |
1 |
2 | |
Z | |
2 |
-dX1X2Y1Y2
2 | |
)(Z | |
1 |
2 | |
Z | |
2 |
+dX1X2Y1Y2)
Addition of two points on the Edwards curve could be computed more efficiently[3] in the extended Edwards form
(X:Y:Z:T)
T=XY/Z
(X3:Y3:Z3:T3)=(X1:Y1:Z1:T1)+(X2:Y2:Z2:T2)
A=X1X2;B=Y1Y2;C=dT1T2;D=Z1Z2;
E=(X1+Y1)(X2+Y2)-A-B;F=D-C;G=D+C;H=B-A;
X3=E ⋅ F;Y3=G ⋅ H;Z3=F ⋅ G;T3=E ⋅ H;
Doubling can be performed with exactly the same formula as addition. Doubling refers to the case in which the inputs (x1, y1) and (x2, y2) are equal.
Doubling a point
P=(x,y)
\begin{align} (x,y)+(x,y)&=\left(
2xy | |
1+dx2y2 |
,
y2-x2 | |
1-dx2y2 |
\right)\\[6pt] &=\left(
2xy | |
x2+y2 |
,
y2-x2 | |
2-x2-y2 |
\right) \end{align}
The denominators were simplified based on the curve equation
x2+y2=1+dx2y2
2xy
(x+y)2-x2-y2
As in the previous example for the addition law, consider the Edwards curve with d=2:
x2+y2=1+2x2y2
and the point
P=(1,0)
P2=2P1
x2=
2xy | |
x2+y2 |
=0
y2=
y2-x2 | |
2-(x2+y2) |
=-1
The point obtained from doubling P is thus
P2=(0,-1)
Mixed addition is the case when Z2 is known to be 1. In such a case A=Z1.Z2 can be eliminated and the total cost reduces to 9M+1S+1C+1D+7a
A= Z1.Z2 // in other words, A= Z1
B= Z12
C=X1.X2
D=Y1.Y2
E=d.C.D
F=B-E
G=B+E
X3= A.F((XI+Y1).(X2+Y2)-C-D)
Y3= A.G.(D-C)
Z3=C.F.G
Tripling can be done by first doubling the point and then adding the result to itself. By applying the curve equation as in doubling, we obtain
3(x1,y1)=\left(
| ||||||||||||||||||||||
|
x1,
| ||||||||||||||||||||||
|
y1\right).
There are two sets of formulas for this operation in standard Edwards coordinates. The first one costs 9M + 4S while the second needs 7M + 7S. If the S/M ratio is very small, specifically below 2/3, then the second set is better while for larger ratios the first one is to be preferred.[4] Using the addition and doubling formulas (as mentioned above) the point (X1 : Y1 : Z1) is symbolically computed as 3(X1 : Y1 : Z1) and compared with (X3 : Y3 : Z3)
Giving the Edwards curve with d=2, and the point P1=(1,0), the point 3P1 has coordinates:
x3=
| ||||||||||||||||||||||
|
x1=-1
y3=
| ||||||||||||||||
|
y1=0
So, 3P1=(-1,0)=P-1. This result can also be found considering the doubling example: 2P1=(0,1), so 3P1 = 2P1 + P1 = (0,-1) + P1 = -P1.
A=X12
B=Y12
C=(2Z1)2
D=A+B
E=D2
F=2D.(A-B)
G=E-B.C
H=E-A.C
I=F+H
J=F-G
X3=G.J.X1
Y3=H.I.Y1
Z3=I.J.Z1
This formula costs 9M + 4S
Bernstein and Lange introduced an even faster coordinate system for elliptic curves called the Inverted Edward coordinates[5] in which the coordinates (X : Y : Z) satisfy the curve (X2 + Y2)Z2 = (dZ4 + X2Y2) and correspondsto the affine point (Z/X, Z/Y) on the Edwards curve x2 + y2 = 1 + dx2y2 with XYZ ≠ 0.
Inverted Edwards coordinates, unlike standard Edwards coordinates, do not have complete addition formulas: some points, such as the neutral element, must be handled separately. But the addition formulas still have the advantage of strong unification: they can be used without change to double a point.
For more information about operations with these coordinates see http://hyperelliptic.org/EFD/g1p/auto-edwards-inverted.html
There is another coordinates system with which an Edwards curve can be represented. These new coordinates are called extended coordinates[6] and are even faster than inverted coordinates. For more information about the time-cost required in the operations with these coordinates see:http://hyperelliptic.org/EFD/g1p/auto-edwards.html
For more information about the running-time required in a specific case, see Table of costs of operations in elliptic curves.