Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
precomputed_generators_secp256k1_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 secp256k1 g1!
6namespace bb::detail {
7
8template <> class PrecomputedGenerators<"biggroup table offset generator", secp256k1::g1::affine_element, 1UL, 0UL> {
9 public:
10 // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays)
11 static constexpr secp256k1::g1::affine_element generators[1] = {
12 { uint256_t("0x574c230ce183296830886bcc3e112214bbfd2f60a9389f6b7f69f995e77afc25"),
13 uint256_t("0xb0696caf104df357f903c8be0326fae6712f7e0ff79562293c064192284766ee") }
14 };
15 static constexpr std::span<const secp256k1::g1::affine_element> get_generators() { return generators; };
16};
17template <> class PrecomputedGenerators<"biggroup offset generator", secp256k1::g1::affine_element, 1UL, 0UL> {
18 public:
19 // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays)
20 static constexpr secp256k1::g1::affine_element generators[1] = {
21 { uint256_t("0xa09161947fa2686b64871af23b35a2c24e1e9e57ed9e554ace1b1ee6f0962a9f"),
22 uint256_t("0xa70752750a2862346d5320d31184c6afcc86f6bf12dfc54cb4875879bd146359") }
23 };
24 static constexpr std::span<const secp256k1::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