ArticleslgStudy

computer science

Twisted Edwards curve

Twisted Edwards curve is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Twisted Edwards curve rather than just read about it. In short: In algebraic geometry, the twisted Edwards curves are plane models of elliptic curves, a generalisation of Edwards curves introduced by Bernstein, Birkner, Joye, Lange and Peters in 2008. The curve set is named after mathematician Harold M.

Twisted Edwards curve — main illustration
Twisted Edwards curve — illustration

Key takeaways

  • Twisted Edwards curve belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Twisted Edwards curve to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Twisted Edwards curve from memory before moving on to harder problems.

Reference excerpt

In algebraic geometry, the twisted Edwards curves are plane models of elliptic curves, a generalisation of Edwards curves introduced by Bernstein, Birkner, Joye, Lange and Peters in 2008. The curve set is named after mathematician Harold M. Edwards. Elliptic curves are important in public key cryptography and twisted Edwards curves are at the heart of a digital signature scheme called EdDSA that offers high performance while avoiding security problems that have surfaced in other digital signature schemes.

Definition A twisted Edwards curve EE,a,d over a field 𝕂 with characteristic not equal to 2 (that is, no element is its own additive inverse) is an affine plane curve defined by the equation:

EE,a,d:ax2+y2=1+dx2y2 where a,d are distinct non-zero elements of 𝕂. Each twisted Edwards curve is a twist of an Edwards curve. The special case a=1 is untwisted, because the curve reduces to an ordinary Edwards curve. Every twisted Edwards curve is birationally equivalent to an elliptic curve in Montgomery form and vice versa.

Group law 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 𝕂 be a field with characteristic different from 2. Let (x1,y1) and (x2,y2) be points on the twisted Edwards curve. The equation of twisted Edwards curve is written as;

EE,a,d: ax2+y2=1+dx2y2. The sum of these points (x1,y1),(x2,y2) on EE,a,d is:

(x1,y1)+(x2,y2)=(x1y2+y1x21+dx1x2y1y2,y1y2−ax1x21−dx1x2y1y2) The neutral element is (0,1) and the negative of (x1,y1) is (−x1,y1) These formulas also work for doubling. If a is a square in 𝕂 and d is a non-square in 𝕂, 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:

3x2+y2=1+2x2y2 it is possible to add the points P1=(1,2) and P2=(1,−2) using the formula given above. The result is a point P3 that has coordinates:

x3=x1y2+y1x21+dx1x2y1y2=0, y3=y1y2−ax1x21−dx1x2y1y2=−1.

Doubling on twisted Edwards curves Doubling can be performed with exactly the same formula as addition. Doubling of a point (x1,y1) on the curve EE,a,d is: 2(x1,y1)=(x3,y3) where

x3=x1y1+y1x11+dx1x1y1y1=2x1y1ax12+y12y3=y1y1−ax1x11−dx1x1y1y1=y12−ax122−ax12−y12. Denominators in doubling are simplified using the curve equation dx2y2=ax2+by2−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 P1=(1,2). The point 2P1 obtained using the formula above has the following coordinates:

x3=2x1y1ax12+y12=225, y3=y12−ax122−ax12−y12=13. It is easy to see, with some little computations, that the point P3=(225,13) belongs to the curve 3x2+y2=1+2x2y2.

Extended coordinates There is another kind of coordinate system with which a point in the twisted Edwards curves can be represented. A point (x,y,z) on ax2+y2=1+dx2y2 is represented as X, Y, Z, T satisfying the following equations x = X/Z, y = Y/Z, xy = T/Z. The coordinates of the point (X:Y:Z:T) are called the extended twisted Edwards coordinates. The identity element is represented by (0:1:1:0). The negative of a point is (−X:Y:Z:−T).

Inverted twisted Edwards coordinates The coordinates of the point (X1:Y1:Z1) are called the inverted twisted Edwards coordinates on the curve (X2+aY2)Z2=X2Y2+dZ4with X1Y1Z1≠0; this point to the affine one (Z1/X1,Z1/Y1) on EE,a,d. Bernstein and Lange introduced these inverted coordinates, for the case a=1 and observed that the coordinates save time in addition.

Projective twisted Edwards coordinates The equation for the projective twisted Edwards curve is given as: (aX2+Y2)Z2=Z4+dX2Y2 For Z1 ≠ 0 the point (X1:Y1:Z1) represents the affine point (x1 = X1/Z1, y1 = Y1/Z1) on EE,a,d. Expressing an elliptic curve in twisted Edwards form saves time in arithmetic, even when the same curve can be expressed in the Edwards form.

Addition in projective twisted curves The addition on a projective twisted Edwards curve is given by

(X3:Y3:Z3) = (X1:Y1:Z1) + (X2:Y2:Z2) and costs 10Multiplications + 1Squaring + 2D + 7 additions, where the 2D are one multiplication by a and one by d.

Algorithm A = Z1 · Z2, B = A2 C = X1 · X2 D = Y1 · Y2 E = dC · D F = B − E G = B + E X3 = A · F((X1 + Y1) · (X2 + Y2) − C − D) Y3 = A · G · (D − aC) Z3 = F · G

Doubling on projective twisted curves Doubling on the projective twisted curve is given by

(X3:Y3:Z3) = 2(X1:Y1:Z1). This costs 3Multiplications + 4Squarings + 1D + 7additions, where 1D is a multiplication by a.

Algorithm

B = (X1 + Y1)2 C = X12 D = Y12 E = aC F = E + D H = Z12 J = F − 2H X3 = (B − C − D).J Y3 = F · (E − D) Z3 = F · J

See also EdDSA For more information about the running time required in a specific case, see Table of costs of operations in elliptic curves.

Notes

References Daniel J. Bernstein; Marc Joye; Tanja Lange; Peter Birkner; Christiane Peters, Twisted Edwards Curves (PDF) Huseyin Hisil, Kenneth Wong, Gary Carter, Ed Dawson. (2008), "Twisted Edwards Curves revisited", Cryptology ePrint Archive{{citation}}: CS1 maint: multiple names: authors list (link) Daniel J. Bernstein; Tanja Lange; Peter Birkner; Christiane Peters, ECM using Edwards curves (PDF)

External links http://hyperelliptic.org/EFD/g1p/index.html http://hyperelliptic.org/EFD/g1p/auto-twisted.html The Ed25519 algorithm: http://ed25519.cr.yp.to/

Illustrations

Twisted Edwards curve: A twisted Edwards curve of equation 10x2+y2=1+6x2y2
A twisted Edwards curve of equation 10x2+y2=1+6x2y2

Worked examples

Example 1 — a first encounter with Twisted Edwards curve

Start with the simplest possible case. Write down what Twisted Edwards curve claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Twisted Edwards curve before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Twisted Edwards curve ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Twisted Edwards curve

In research
Twisted Edwards curve appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Twisted Edwards curve in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Twisted Edwards curve is common in secondary-school and first-year university syllabi. It links to neighbouring topics Elliptic curve cryptography, Elliptic curves, Quartic curves, so understanding it makes those chapters shorter.
In everyday life
Look for Twisted Edwards curve outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Twisted Edwards curve” →

How to study Twisted Edwards curve in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Twisted Edwards curve means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Twisted Edwards curve out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Twisted Edwards curve in simple terms?

In algebraic geometry, the twisted Edwards curves are plane models of elliptic curves, a generalisation of Edwards curves introduced by Bernstein, Birkner, Joye, Lange and Peters in 2008. The curve set is named after mathematician Harold M.

Why does Twisted Edwards curve matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Twisted Edwards curve?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Twisted Edwards curve.

Tags

  • Elliptic curve cryptography
  • Elliptic curves
  • Quartic curves

Keep exploring