Sextic extension of the base field of BN254.
Fq6 is defined as Fq2[v] / (v^3 - \xi), where \xi = 9 + u is not a cubic residue in Fq2. 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)
- Power q
\[
(a + bv + cv^2)^q = a^q + b^q * v^q + c^q * v^{2q} = a^q + b^q * \xi^{(q-1)/3} * v + c^q * \xi^{2(q-1)/3} * v^2
\]
- Power q^2
\[
(a + bv + cv^2)^{q^2} = a^{q^2} + b^{q^2} * v^{q^2} + c^{q^2} * v^{2q^2} =
a + b * \xi^{(q^2-1)/3} * v + c * \xi^{2(q^2-1)/3} * v^2
\]
- Power q^3
\[
(a + bv + cv^2)^{q^3} = a^{q^3} + b^{q^3} * v^{q^3} + c^{q^3} * v^{2q^3} =
a^q + b^q * \xi^{(q^3-1)/3} * v + c^q * \xi^{2(q^3-1)/3} * v^2
\]
Definition at line 37 of file fq6.hpp.