Finite Fields
Goal
By the end of this chapter, you should understand prime fields, basic arithmetic in , why every nonzero element has an inverse, and how larger finite fields can be built from irreducible polynomials.
You should also have a first intuition for extension fields, field towers, the Frobenius map, and why finite fields are essential for elliptic curves and pairings.
Prerequisites
You should be comfortable with modular arithmetic, groups, rings, and fields. In particular, you should know:
- addition and multiplication modulo
- modular inverses
- why is a field when is prime
- polynomial rings at a basic level
- quotient rings as "reduce by a rule" arithmetic
Motivation
Cryptography often needs arithmetic that is exact, finite, and efficient. Finite fields provide that environment.
In a finite field:
- there are only finitely many values
- addition, subtraction, multiplication, and division by nonzero values work
- arithmetic is exact, not floating point
- the rules are structured enough for algebra and cryptography
Elliptic curves, pairings, and BLS signatures all use finite fields. Without finite fields, later chapters would not have a clean arithmetic setting for curve coordinates and pairing computations.
Prime Fields
The simplest finite fields are prime fields. If is prime, then:
This is the set:
with addition and multiplication performed modulo .
Example:
The word "field" means every nonzero element has a multiplicative inverse. That works because is prime.
Addition Modulo
Addition in means ordinary addition followed by reduction modulo .
Example in :
So in :
The equality is happening inside the field. If we want to emphasize the ordinary integer computation, we write the congruence.
Multiplication Modulo
Multiplication in also means ordinary multiplication followed by reduction modulo .
Example in :
So in :
All results remain in:
Inverses in
Every nonzero element of has a multiplicative inverse.
Example: find the inverse of in .
We need such that:
Try small values:
So:
The extended Euclidean algorithm can find inverses efficiently. Since is prime, every nonzero is coprime to , so the inverse exists.
Fermat's Little Theorem
Fermat's little theorem says that if is prime and is not divisible by , then:
Example with and :
and:
This theorem gives another way to find inverses. Since:
we can multiply both sides by conceptually and get:
Example in :
Compute:
So again:
Extension Fields
Not every finite field has a prime number of elements. There are also fields with:
elements, where is prime and .
These are called extension fields. They extend the prime field by adding a new element that satisfies a polynomial relation.
The notation:
means a finite field with elements.
For example:
has elements.
Constructing Extension Fields with Irreducible Polynomials
To construct an extension field, start with polynomials over and reduce by an irreducible polynomial.
An irreducible polynomial is like a prime number for polynomials. It cannot be factored into lower-degree nonconstant polynomials over the same field.
Example over :
This polynomial is irreducible over . To check, test and :
It has no root in , so this degree- polynomial is irreducible.
Now build:
This means polynomial arithmetic over , with the rule:
Equivalently:
because in characteristic , subtraction and addition are the same.
Every element can be represented as:
where .
So the field has four elements:
A Small Extension-Field Multiplication Example
Work in:
Compute:
First multiply as polynomials:
Use the reduction rule :
In characteristic , , so:
Thus:
So and are multiplicative inverses in this field.
Field Towers
A field tower builds fields in stages.
For example, instead of jumping directly from to a large extension, we can build:
The symbol here means each field is contained inside the next one.
Field towers are useful in pairing-friendly curves because computations in large extension fields can be organized using smaller extension layers. This is an implementation and efficiency concern as well as an algebraic construction.
We will not build a full tower here. The important idea is that extension fields can be layered.
Frobenius Map, Lightly
In a field of characteristic , the Frobenius map sends:
In finite fields, this map has special structure and is often efficient to compute.
In the prime field , Fermat's little theorem implies:
for every .
In extension fields, the Frobenius map is not always the identity, but it still preserves addition and multiplication:
and:
This becomes useful in pairing computations and field arithmetic. For now, it is enough to recognize the name and the operation.
Why Finite Fields Are Essential for Elliptic Curves and Pairings
Elliptic curve cryptography needs a finite arithmetic environment where equations can be evaluated exactly and where division by nonzero values is available. Finite fields provide that environment.
An elliptic curve over a finite field might be written:
where , , , and are elements of a finite field.
Pairings need even more field structure. The output of a pairing lives in a target group related to an extension field. In pairing-friendly curves, field extensions are part of the construction that makes pairings computable and useful.
Chia Connection
BLS12-381 uses finite fields. At a high level, it has a base field used for curve coordinates and a scalar field used for scalar multiplication. Pairing computations also use extension fields.
This chapter does not give the BLS12-381 parameters. Later chapters will separate the curve family from the specific BLS12-381 parameter set and cite standard sources for factual details.
For now, the important point is that BLS signatures in Chia rest on arithmetic in finite fields, not on floating-point numbers or informal real-number geometry.
Source starting points: BLS12-381 construction notes, IETF pairing-friendly curves draft, and Chia Keys and Signatures.
Common Pitfalls
Assuming every modulus gives a field. is a field only when is prime.
Confusing with integers modulo . The field is not usually the same thing as . For , the latter has zero divisors and is not a field.
Forgetting to reduce polynomials. In extension fields, polynomial products must be reduced by the chosen irreducible polynomial.
Treating the symbol as an ordinary unknown. In a quotient construction, represents a field element satisfying a fixed polynomial relation.
Assuming Frobenius is always the identity. It is the identity on , but in extension fields it can move elements nontrivially.
Thinking field towers are only theory. Field towers often matter for efficient implementation of pairing arithmetic.
Exercises
- Compute and in .
- Find the inverse of in .
- Use Fermat's little theorem to compute in .
- Explain why is not the field .
- In , compute .
- List the four elements of .
- In your own words, explain what it means to reduce a polynomial by .
- What does the Frobenius map do to elements of ?
- Why do elliptic curve equations need field arithmetic instead of ordinary floating-point arithmetic?
Further Reading
- Later chapter: Elliptic Curve Group Law
- Later chapter: Curves Over Finite Fields
- Later chapter: Pairings
- Later chapter: BLS12-381
- Any introductory abstract algebra text covering finite fields and polynomial quotient rings