barretenberg
Loading...
Searching...
No Matches
g1.hpp
1#pragma once
2
3#include "../../groups/group.hpp"
4#include "./fq.hpp"
5#include "./fr.hpp"
6
7namespace barretenberg {
9 static constexpr bool USE_ENDOMORPHISM = true;
10 static constexpr bool can_hash_to_curve = true;
11 static constexpr bool small_elements = true;
12 static constexpr bool has_a = false;
13 static constexpr fq one_x = fq::one();
14 static constexpr fq one_y{ 0xa6ba871b8b1e1b3aUL, 0x14f1d651eb8e167bUL, 0xccdd46def0f28c58UL, 0x1c14ef83340fbe5eUL };
15 static constexpr fq a{ 0UL, 0UL, 0UL, 0UL };
16 static constexpr fq b{ 0x7a17caa950ad28d7UL, 0x1f6ac17ae15521b9UL, 0x334bea4e696bd284UL, 0x2a1f6744ce179d8eUL };
17};
18
20
21} // namespace barretenberg
22
23// specialize the name in msgpack schema generation
24// consumed by the typescript schema compiler, helps disambiguate templates
25inline std::string msgpack_schema_name(barretenberg::g1::affine_element const& /*unused*/)
26{
27 return "G1AffineElement";
28}
Definition: affine_element.hpp:11
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: g1.hpp:8