Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
precomputed_generators_secp256r1_impl.hpp
Go to the documentation of this file.
1#pragma once
4
5// NOTE: Must be included before using get_precomputed_generators if using secp g1!
6namespace bb::detail {
7
8template <> class PrecomputedGenerators<"biggroup table offset generator", secp256r1::g1::affine_element, 1UL, 0UL> {
9 public:
10 // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays)
11 static constexpr secp256r1::g1::affine_element generators[1] = {
12 { uint256_t("0x12f1907bc0f7caa93716082e67e3466f525281c6a2cd95990b6d3582b5c1375f"),
13 uint256_t("0x3111b47a8c982605786143f3d7b4f4c754a1b83aeaa81a7af6b90176b7328d08") }
14 };
15 static constexpr std::span<const secp256r1::g1::affine_element> get_generators() { return generators; };
16};
17template <> class PrecomputedGenerators<"biggroup offset generator", secp256r1::g1::affine_element, 1UL, 0UL> {
18 public:
19 // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays)
20 static constexpr secp256r1::g1::affine_element generators[1] = {
21 { uint256_t("0xb61bd0f5671bc04ec041799e87e735af4ed40920c6ca71e63c8010ff162bd90a"),
22 uint256_t("0x338540b43f94cbfe32a1e62d192ea7d5827f4a4a66bb781a02321033110e492b") }
23 };
24 static constexpr std::span<const secp256r1::g1::affine_element> get_generators() { return generators; };
25};
26
27} // namespace bb::detail
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13