13 Finite field extension curves described
The chapter introduces elliptic curves over finite field extensions as the setting needed for pairing-based cryptography. It explains that an irreducible polynomial plays the role of a modulus, just as a prime does in a base field, and that this lets one build an extension field of size \(p^k\). The key cryptographic idea is the embedding degree: for a curve with a large prime factor \(r\) in its group order, the extension field must be chosen so that the extended curve’s cardinality is also divisible by \(r\), which is captured by the condition \(p^k \equiv 1 \pmod r\).
Building on that algebraic foundation, the chapter adapts the standard elliptic-curve routines to work with polynomial coordinates. It defines polynomial point and curve structures, shows how to initialize, clear, copy, print, and test them, and then extends point embedding, random point generation, addition, and scalar multiplication to the polynomial setting. The implementation repeatedly mirrors the prime-field versions, but every operation must also respect the irreducible polynomial, making the arithmetic more involved while following the same basic elliptic-curve formulas.
To make the ideas concrete, the chapter uses a small worked example over \(p=43\), with a curve chosen to have manageable cardinality and a very small embedding degree of 2. It demonstrates how to find an irreducible polynomial, enumerate points on the base curve, and then construct and list many more points over the extension curve, where \(x\) and \(y\) become polynomials rather than simple field elements. The example emphasizes that the extension contains all the original points plus many additional ones, illustrating why field extensions are essential for pairing computations and why the structure is more abstract but still governed by the same curve equations.
Expanding a prime base field \(p\) to an extension field \(p^k\). Extension fields are required to compute pairings.
Tiny example overall description
All points on tiny elliptic curve \(y^2=x^3+23x-1\) mod \(43\)
General shape of an elliptic curve to help with field extension abstraction
Summary
- An elliptic curve over a finite field has cardinality \(\#E=h\cdot r\) with \(r\) a large prime. That curve has field extension \(k\) when \[p^k\cong 1\text{ mod }r\]For elliptic curve pairings, we want \(k\) to be small.
- The cardinality of a field extension curve is \[\#E_k=p^k+1-t_k\]with \(t_k\) found from the recurrence relation\[t_{n+2}=t_1 t_{n+1} - p t_n\]This is used to find cofactors of field extension curves.
- Points on a field prime curve are labeled \(G_1\). Points on an extension curve are labeled \(G_2\). A field extension curve has the same coefficients as a field prime curve, but they are constructed as zero-degree polynomials.
- Testing for a polynomial point at infinity uses the degree of the polynomials as well as the lowest coefficient to determine whether both \(x\) and \(y\) are zero. This is used to determine the order of a point on a field extension curve.
- Embedding a polynomial point on a polynomial curve requires a "bump" routine that increments the next coefficient. It is only used for small test cases since large coefficients will never roll over.
- The polynomial random point function embeds a random polynomial on a polynomial curve. This is used to find reference points for pairing calculations.
- Polynomial elliptic curve addition uses the same formulas as field prime elliptic curve point addition. It just calls polynomial functions to process the math. These routines are used in aggregated signature and zero-knowledge algorithms.
- Polynomial elliptic curve multiplication is also the same as field prime elliptic curve multiplication. The double and add formula is exactly identical. These routines are used in aggregated signature and zero-knowledge algorithms.
- A tiny example shows how \(G_1\) and \(G_2\) points are on the same curve. A field extension has both \(G_1\) and \(G_2\) points. A prime field curve can only see \(G_1\) points.
Elliptic Curve Cryptography for Developers ebook for free