Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fq12.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Completed, auditors: [Federico], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
8
9#include "../../fields/field12.hpp"
10#include "./fq2.hpp"
11#include "./fq6.hpp"
12
13namespace bb {
14
37
38#if defined(__SIZEOF_INT128__) && !defined(__wasm__)
39 static constexpr fq2 frobenius_coefficients_1{
40 { 0xaf9ba69633144907UL, 0xca6b1d7387afb78aUL, 0x11bded5ef08a2087UL, 0x02f34d751a1f3a7cUL },
41 { 0xa222ae234c492d72UL, 0xd00f02a4565de15bUL, 0xdc2ff3a253dfc926UL, 0x10a75716b3899551UL }
42 };
43
44 static constexpr fq2 frobenius_coefficients_2{
45 { 0xca8d800500fa1bf2UL, 0xf0c5d61468b39769UL, 0x0e201271ad0d4418UL, 0x04290f65bad856e6UL },
46 { 0UL, 0UL, 0UL, 0UL }
47 };
48
49 static constexpr fq2 frobenius_coefficients_3{
50 { 0x365316184e46d97dUL, 0x0af7129ed4c96d9fUL, 0x659da72fca1009b5UL, 0x08116d8983a20d23UL },
51 { 0xb1df4af7c39c1939UL, 0x3d9f02878a73bf7fUL, 0x9b2220928caf0ae0UL, 0x26684515eff054a6UL }
52 };
53#else
54 static constexpr fq2 frobenius_coefficients_1{
55 { 0xb75446af8a0c2399UL, 0xb5e243df8d8526c8UL, 0x7f6d66278fc2b89bUL, 0x2e05603062b5af58UL },
56 { 0xaeefbf6e3bc6cc33UL, 0x7f50c04b4ed87762UL, 0x9a8b7572eb6a58d4UL, 0x9b83e6c410c870UL }
57 };
58
59 static constexpr fq2 frobenius_coefficients_2{
60 { 0xd96ee8726e4983b2UL, 0xe9b7ed6a458f581eUL, 0x5361c2c89ea5d262UL, 0x24594fd198a79c6eUL },
61 { 0UL, 0UL, 0UL, 0UL }
62 };
63
64 static constexpr fq2 frobenius_coefficients_3{
65 { 0x9dc006978e6a3d3dUL, 0x695b3f038ef4bf24UL, 0x1a238968ba7a7ccdUL, 0x103828f20e49839cUL },
66 { 0x5cbbb0bd4f4e6b31UL, 0xe83ce8be1b5b282bUL, 0x646d437ef03fbae3UL, 0x133cf9860031f0c0UL }
67 };
68#endif
69};
70
72} // namespace bb
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
The twelfth degree extension of the base field of BN254.
Definition fq12.hpp:36
static constexpr fq2 frobenius_coefficients_2
Definition fq12.hpp:59
static constexpr fq2 frobenius_coefficients_3
Definition fq12.hpp:64
static constexpr fq2 frobenius_coefficients_1
Definition fq12.hpp:54