As for all elliptic curves, also for the twisted Edwards curve, it is possible to do some operations between its points, such as adding two of them or doubling (or tripling) one. The results of these operations are always points that belong to the curve itself. In the following sections some formulas are given to obtain the coordinates of a point resulted from an addition between two other points (addition), or the coordinates of point resulted from a doubling of a single point on a curve.
Addition on twisted Edwards curves Let \mathbb{K} be a field with
characteristic different from 2. Let (x_1,y_1) and (x_2,y_2) be points on the twisted Edwards curve. The equation of twisted Edwards curve is written as; : E_{E, a, d}: ax^2+y^2=1+dx^2y^2. The sum of these points (x_1,y_1), (x_2,y_2) on E_{E, a, d} is: : (x_1,y_1) + (x_2,y_2) = \left(\frac{x_1y_2+y_1x_2}{1+dx_1x_2y_1y_2} , \frac{y_1y_2-ax_1x_2}{1-dx_1x_2y_1y_2}\right) The neutral element is (0,1) and the negative of (x_1,y_1) is (-x_1,y_1) These formulas also work for doubling. If
a is a
square in \mathbb{K} and
d is a
non-square in \mathbb{K}, these formulas are
complete: this means that they can be used for all pairs of points without exceptions; so they work for doubling as well, and neutral elements and negatives are accepted as inputs.
Example of addition Given the following twisted Edwards curve with
a = 3 and
d = 2: ; 3x^2 + y^2 = 1 + 2x^2y^2 it is possible to add the points P_1=(1,\sqrt{2}) and P_2=(1,-\sqrt{2}) using the formula given above. The result is a point P3 that has coordinates: : x_3 = \frac{x_1y_2+y_1x_2}{1+dx_1x_2y_1y_2} = 0, : y_3 = \frac{y_1y_2-ax_1x_2}{1-dx_1x_2y_1y_2} = -1.
Doubling on twisted Edwards curves Doubling can be performed with exactly the same formula as addition. Doubling of a point (x_1,y_1) on the curve E_{E, a, d} is: 2(x_1,y_1) = (x_3,y_3) where : \begin{align} x_3 & = \frac{x_1y_1+y_1x_1}{1+dx_1x_1y_1y_1}=\frac{2x_1y_1}{ax_1^2+y_1^2} \\[6pt] y_3 & = \frac{y_1y_1-ax_1x_1}{1-dx_1x_1y_1y_1}=\frac{y_1^2-ax_1^2}{2-ax_1^2-y_1^2}. \end{align} Denominators in doubling are simplified using the curve equation dx^2y^2 = ax^2 + by^2 - 1. This reduces the power from 4 to 2 and allows for more efficient computation.
Example of doubling Considering the same twisted Edwards curve given in the previous example, with a=3 and d=2, it is possible to double the point P_1=(1,\sqrt{2}). The point 2P1 obtained using the formula above has the following coordinates: : x_3 = \frac{2x_1y_1}{ax_1^2+y_1^2} = \frac{2\sqrt{2}}{5}, : y_3 = \frac{y_1^2-ax_1^2}{2-ax_1^2-y_1^2} = \frac{1}{3}. It is easy to see, with some little computations, that the point P_3=\left(\frac{2\sqrt{2}}{5}, \frac{1}{3}\right) belongs to the curve 3x^2 + y^2 = 1 + 2x^2y^2. ==Extended coordinates==