15 General rules of elliptic curve pairing explained
The chapter introduces elliptic curve pairings as a special kind of mathematics built on field extensions, emphasizing that the goal is practical use rather than mastering every theoretical detail. It explains that pairings turn point-based elliptic curve arithmetic into values in an extension field, creating a useful one-way trapdoor function. The chapter frames the topic with geometric intuition, using familiar ideas like slopes, lines through points, and roots of unity to show why pairings are powerful and why they require a richer curve structure than ordinary single-cycle elliptic curves.
A key requirement is that the elliptic curve group must have the right structure, typically described as a product of two cyclic groups, with a large prime factor appearing in the curve order. The pairing itself maps two curve points to an element of the extension field, not another point, and the chapter stresses the importance of two core rules: bilinearity and nondegeneracy. Bilinearity means that adding points before pairing is equivalent to multiplying pairing results, and scalar multiplication becomes exponentiation in the paired domain. Nondegeneracy ensures that if the point at infinity appears, the result is the identity element 1, keeping the algebra well behaved and avoiding division-by-zero problems.
The latter part of the chapter explains the two subroutines used to compute pairings. The first, hP,Q(R), is a geometric helper based on the line through points and a reference point, with special handling for vertical lines and the point at infinity. The second is Miller’s algorithm, which repeatedly applies doubling and addition steps, much like point multiplication, while accumulating field values that represent the pairing computation. The chapter closes by showing how these ideas are translated into code, with routines that carefully check exceptional cases first and then carry out the main arithmetic over polynomial representations in the field extension.
Elliptic curve over the complex plane
Elliptic curve group structure for pairings to work
\(n^{th}\) root of unity for \(n=7\) using complex numbers. Multiply any of these vectors by 7, and the result is 1.
\(h_{P,Q}(R)\) function diagram: the line between points \(P\) and \(Q\) defines rise and run to reference point \(R\).
Miller’s algorithm flow chart
Summary
- To incorporate elliptic curve pairing algorithms, curves that allow pairings must have a dual group structure of the form \[E_{F_q} \cong \dfrac{Z}{d_1 Z} \times \dfrac{Z}{d_2 Z}\]Purely cyclic curves described in chapter 3 will not work.
- The pairing of points on an elliptic curve results in a field element that is a root of unity. If the order of the points is \(m\), then the polynomial result of pairing is an \(m^{th}\) root of unity. This gives us a one-way trap door function for cryptographic use.
- The pairing function \(e_m(R,T)\) is bilinear. The general form to show this is \[e_m(aS,bT)=e_m(S,T)^{ab}\]This gives us a way to convert point addition over an elliptic curve to multiplication over a finite field, which is used in algorithms shown in chapters 18 and 19.
- The pairing function is nondegenerate, which means it never blows up. If one of the input points is the point at infinity, the value of the function is 1. This is essential to ensure algorithms work under any condition.
- The function \(h_{P,Q}(R)\) can be viewed geometrically as a relation between the line adding \(P\) plus \(Q\) and a reference point \(R\). \(h_{P,Q}(R)\) is the core of Miller’s algorithm.
- Miller’s algorithm computes the function \(f_P(R)\). The input is a point of order \(m\) and a reference point. The output is a field element based on multiplying the input point by \(m\) and using the \(h_{P,Q}\) function for doubling and adding. Miller’s algorithm is the function used in chapters 16 and 17 to compute different kinds of pairings.
Elliptic Curve Cryptography for Developers ebook for free