Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fq2.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/field2.hpp"
10#include "./fq.hpp"
11
12namespace bb {
13
30#if defined(__SIZEOF_INT128__) && !defined(__wasm__)
31 static constexpr fq twist_coeff_b_0{
32 0x3bf938e377b802a8UL, 0x020b1b273633535dUL, 0x26b7edf049755260UL, 0x2514c6324384a86dUL
33 };
34 static constexpr fq twist_coeff_b_1{
35 0x38e7ecccd1dcff67UL, 0x65f0b37d93ce0d3eUL, 0xd749d0dd22ac00aaUL, 0x0141b9ce4a688d4dUL
36 };
37 static constexpr fq frobenius_on_twisted_curve_x_0{
38 0xb5773b104563ab30UL, 0x347f91c8a9aa6454UL, 0x7a007127242e0991UL, 0x1956bcd8118214ecUL
39 };
40 static constexpr fq frobenius_on_twisted_curve_x_1{
41 0x6e849f1ea0aa4757UL, 0xaa1c7b6d89f89141UL, 0xb6e713cdfae0ca3aUL, 0x26694fbb4e82ebc3UL
42 };
43 static constexpr fq frobenius_on_twisted_curve_y_0{
44 0xe4bbdd0c2936b629UL, 0xbb30f162e133bacbUL, 0x31a9d1b6f9645366UL, 0x253570bea500f8ddUL
45 };
46 static constexpr fq frobenius_on_twisted_curve_y_1{
47 0xa1d77ce45ffe77c7UL, 0x07affd117826d1dbUL, 0x6d16bd27bb7edc6bUL, 0x2c87200285defeccUL
48 };
49#else
50 static constexpr fq twist_coeff_b_0{
51 0xdc19fa4aab489658UL, 0xd416744fbbf6e69UL, 0x8f7734ed0a8a033aUL, 0x19316b8353ee09bbUL
52 };
53 static constexpr fq twist_coeff_b_1{
54 0x1cfd999a3b9fece0UL, 0xbe166fb279c1a7c7UL, 0xe93a1ba45580154cUL, 0x283739c94d11a9baUL
55 };
57 0xecdea09b24a59190UL, 0x17db8ffeae2fe1c2UL, 0xbb09c97c6dabac4dUL, 0x2492b3d41d289af3UL
58 };
60 0xf1663598f1142ef1UL, 0x77ec057e0bf56062UL, 0xdd0baaecb677a631UL, 0x135e4e31d284d463UL
61 };
63 0xf46e7f60db1f0678UL, 0x31fc2eba5bcc5c3eUL, 0xedb3adc3086a2411UL, 0x1d46bd0f837817bcUL
64 };
66 0x6b3fbdf579a647d5UL, 0xcc568fb62ff64974UL, 0xc1bfbf4ac4348ac6UL, 0x15871d4d3940b4d3UL
67 };
68#endif
69};
70
72} // namespace bb
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
Quadratic extension of the base field of BN254.
Definition fq2.hpp:29
static constexpr fq twist_coeff_b_0
Definition fq2.hpp:50
static constexpr fq frobenius_on_twisted_curve_y_0
Definition fq2.hpp:62
static constexpr fq frobenius_on_twisted_curve_x_0
Definition fq2.hpp:56
static constexpr fq frobenius_on_twisted_curve_y_1
Definition fq2.hpp:65
static constexpr fq frobenius_on_twisted_curve_x_1
Definition fq2.hpp:59
static constexpr fq twist_coeff_b_1
Definition fq2.hpp:53