a ring over the set is given as , which has two binary operations, denoted by and such that:
We use (the zero element) to denote the identity element of the abelian group with respect to addition.
The additive inverse of is denoted by , also is abbreviated by .
Definition
from elementary algebra, a polynomial is regarded as an expression of the form
the 's are called the coefficients and are usually real or complex numbers. is viewed as a variable. The arithmetic of polynomials is governed by familiar rules. The concept of polynomial and the associated operations can be generalized to a formal algebraic setting in a straightforward manner.
Let be an arbitary ring. A polynomial over is an expression of the form
where is a nonegative integer, the coefficients , are elements of , and is a symbol not belonging to called an indeterminate over .
Let be a prime number and be the ring of modular arithmetic. To differentiate between arbitary modular arithmetic rings we write a prime fields of characteristic as
An impotant proterty of prime fields is that any prime field of charateristic has exactly elements which can be represented on a computer with not more than bits. This is in contracts to fields which may be require an unbounded amount of bits to properly describe an arbitary precession representation.
Prime fields are special case of modular arithmetic rings. Addition and multiplication can be computed by first doing integer addition and multiplication, and then considering the remainder in Euclidean division by as the result.
As above, (in Rings), for any prime fields element , its additive inverse (the negative) is given by .
For , the multiplicative inverse always exists, and is given by
Division is then defined by multiplication with the multiplicative inverse;
NOTE:
In modular arithmetic, a number has a multiplicative inverse if and only if and are coprime. Since in that case, we know from the Extended Euclidean Algorithm that there are numbers and , such that the following equation holds:
If we take the modulus n on both sides, the term vanishes, which tells us that is the multiplicative inverse of in modular arithmetic.
See: Extended Euclidean Algorithm
Pairing based SNARK systems are crucially dependent on certain types of pairings defind on elliptic curves over prime field extensions.
Given some prime number , a natural number , and a irreducible polynomial of degree whith coefficients from the prime field , a prime extension is defined as follows
The set of the prime field extension is given by the set of all polynomials with a degree less than :
The addition law of the prime field extension is given by the usual addition of polynomials:
Let and be two polynomials from .
The multiplication law of the prime field extension is given by first multiplying the two polynomials
The neutral element of the additive group is given by the zero polynomial 0.
Example:
For a field , an extension field is of the form .
An example is to study a binary extension field where .
In this example, has its elements represented a polynomials over the base field . A polynomial in is an expression where the coefficients come from the set , and arithemetic operations are performed modulo 2.
The degree of the polynomial will be less than of equal to .
Taking , we can construct extension field by considering the polynomials of degree 2 over .
A primitive polynomial for would be .
The elements are:
–> element in
0,0,0 –> which is also the additive identity.
0,0,1 –> which is also a multiplicative identity.
0,1,0 –>
0,1,1 –>
1,0,0 –>
1,0,1 –>
1,1,0 –>
1,1,1 –>
addition and multiplication are performed modulo 2.
For a prime power and (where a.k.a the degenerate case) let
within the development of SNARKs the use pairing-maps on commutative groups is a frequently used. A pairing map if a function that takes pairs of elements from the source field(s) and , and maps then to elements in a target field such that the blinearity property holds. i.e.,
Definition:
In other words, a pairing is a mapping of points in groups to points in another.
Bilinear in the fact that there is two eponents,
maps generators to generators.
generates generates
the example (in reference to the above) is that the group is an elliptic curve, and the target group is a finite field.
, , where k = 1,2,3,4,6,10,12
Note:
lets take a finite field under an elliptic curve and call this group which has point in the gorup
no lets take an extension which can be thought of a elliptic curve over a 2-dimensional set of points.
Tate pairing:
the function is a polynomial defined by the point , which is a bivariat polynomial whose inputs are the two coordinated of the point . i.e., treat the coordinate as .
In crypto we dont like to have such 2-dimensional fields, we prefer to use a ring. So we define two groups and that are non-degenerate, where , this is an asymetric pairing.