Can somebody tell me how can I make a example of addition in Twisted Edwards Curve on sage? For example:
$ax^2 + y^2 = 1 + dx^2y^2$
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 $P_3$ that has coordinates:
x3 = (x1*y2 + y1*x2)/(1 + d*x1*x2*y1*y2) = 0
y3 = (y1*y2 − a*x1*x2)/(1 − d*x1*x2*y1*y2) = −1
It seems that long ago someone worked on this.
This preprint also seems to indicate it's possible.
But I'm not an expert on this, so I can't verify whether this is what you are looking for. Good luck.