Overview

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
figure
Elliptic curve group structure for pairings to work
figure
\(n^{th}\) root of unity for \(n=7\) using complex numbers. Multiply any of these vectors by 7, and the result is 1.
figure
\(h_{P,Q}(R)\) function diagram: the line between points \(P\) and \(Q\) defines rise and run to reference point \(R\).
figure
Miller’s algorithm flow chart
figure

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.

FAQ

What is an elliptic curve pairing in this chapter?A pairing is a function that takes two elliptic curve points and maps them to a field element, specifically an \(m\)th root of unity. It is not a point-to-point result; instead, it converts point-based arithmetic into multiplicative field arithmetic.
Why are pairings useful in cryptography?Pairings create a one-way trapdoor function that can be efficient and secure. They also make certain algorithms much easier to build than they would be without pairing mathematics.
What group structure is required for pairings to work?The elliptic curve over a finite field must have a double cyclic structure, described as \( \mathbb{Z}/d_1\mathbb{Z} \times \mathbb{Z}/d_2\mathbb{Z} \). Pairings do not work if the curve has only a single cyclic group.
What does bilinearity mean for an elliptic curve pairing?Bilinearity means the pairing distributes over point addition and scalar multiplication. For example, \(e_m(R+S,T)=e_m(R,T)e_m(S,T)\) and \(e_m(aS,bT)=e_m(S,T)^{ab}\).
What does the pairing output look like mathematically?The output is an element \(\mu_m\), an \(m\)th root of unity. In the complex-number analogy, such an element satisfies \(\mu_m^m=1\).
What is the nondegeneracy rule when one point is the point at infinity?If either input to the pairing is the point at infinity, the result is defined to be 1: \(e_m(S,\mathbf{0})=e_m(\mathbf{0},S)=1\). This special rule helps avoid division-by-zero problems and keeps the algorithms well behaved.
What is the function \(h_{P,Q}(R)\) used for?\(h_{P,Q}(R)\) is the core geometric function used in pairing computations. It is based on the line through \(P\) and \(Q\), evaluated at a reference point \(R\), and is essentially “rise over run.”
How is \(h_{P,Q}(R)\) handled when \(P=-Q\) or when a point is at infinity?When \(P=-Q\), the slope is infinite, so \(h_{P,Q}(R)=x-x_P\). If either \(P\) or \(Q\) is the point at infinity, then \(h_{P,Q}(R)=1\).
What does Miller’s algorithm compute?Miller’s algorithm computes a field element from elliptic curve points using repeated doubling and addition steps. It uses the \(h_{P,Q}(R)\) subroutine at each step and returns \(f_P(R)\).
Why does Miller’s algorithm use the double-and-add method?The algorithm follows the bits of the scalar \(m\) just like point multiplication, but it accumulates pairing values instead of points. This makes it efficient while producing the field element needed for the final pairing computation.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Elliptic Curve Cryptography for Developers Elliptic Curve Cryptography for Developers ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Elliptic Curve Cryptography for Developers Elliptic Curve Cryptography for Developers ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Elliptic Curve Cryptography for Developers Elliptic Curve Cryptography for Developers ebook for free