barretenberg
Loading...
Searching...
No Matches
g2.hpp
1#pragma once
2
3#include "../../groups/group.hpp"
4#include "./fq2.hpp"
5#include "./fr.hpp"
6
7namespace barretenberg {
9 static constexpr bool USE_ENDOMORPHISM = false;
10 static constexpr bool can_hash_to_curve = false;
11 static constexpr bool small_elements = false;
12 static constexpr bool has_a = false;
13
14 static constexpr fq2 one_x{ { 0x8e83b5d102bc2026, 0xdceb1935497b0172, 0xfbb8264797811adf, 0x19573841af96503b },
15 { 0xafb4737da84c6140, 0x6043dd5a5802d8c4, 0x09e950fc52a02f86, 0x14fef0833aea7b6b } };
16 static constexpr fq2 one_y{ { 0x619dfa9d886be9f6, 0xfe7fd297f59e9b78, 0xff9e1a62231b7dfe, 0x28fd7eebae9e4206 },
17 { 0x64095b56c71856ee, 0xdc57f922327d3cbb, 0x55f935be33351076, 0x0da4a0e693fd6482 } };
18 static constexpr fq2 a = fq2::zero();
19 static constexpr fq2 b = fq2::twist_coeff_b();
20};
21
23} // namespace barretenberg
group class. Represents an elliptic curve group element. Group is parametrised by coordinate_field an...
Definition: group.hpp:29
constexpr_utils defines some helper methods that perform some stl-equivalent operations but in a cons...
Definition: constexpr_utils.hpp:16
Definition: g2.hpp:8
Definition: field2_declarations.hpp:11