|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
The twelfth degree extension of the base field of BN254. More...
#include <fq12.hpp>
Static Public Attributes | |
| static constexpr fq2 | frobenius_coefficients_1 |
| static constexpr fq2 | frobenius_coefficients_2 |
| static constexpr fq2 | frobenius_coefficients_3 |
The twelfth degree extension of the base field of BN254.
Fq12 is defined as Fq6[w] / (w^2 - v), where v is the variable added to Fq2 to construct Fq6. We store in the struct the coefficients to compute the frobenius morphism (we need powers up to q^3 to compute the final exponentiation in the pairing calculation)
\[ (a + bw)^q = a^q + b^q * w^q = a^q + b^q * \xi^{(q-1)/6} * v \]
\[ (a + bw)^{q^2} = a^{q^2} + b^{q^2} * w^{q^2} = a + b * \xi^{(q^2-1)/6} * v \]
\[ (a + bw)^{q^3} = a^{q^3} + b^{q^3} * w^{q^3} = a^q + b^q * \xi^{(q^3-1)/6} * v \]
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |