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
2
#include "
barretenberg/ecc/curves/secp256r1/secp256r1.hpp
"
3
#include "
precomputed_generators.hpp
"
4
5
// NOTE: Must be included before using get_precomputed_generators if using secp g1!
6
namespace
bb::detail
{
7
8
template
<>
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
};
17
template
<>
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
bb::detail::PrecomputedGenerators<"biggroup offset generator", secp256r1::g1::affine_element, 1UL, 0UL >::get_generators
static constexpr std::span< const secp256r1::g1::affine_element > get_generators()
Definition
precomputed_generators_secp256r1_impl.hpp:24
bb::detail::PrecomputedGenerators<"biggroup table offset generator", secp256r1::g1::affine_element, 1UL, 0UL >::get_generators
static constexpr std::span< const secp256r1::g1::affine_element > get_generators()
Definition
precomputed_generators_secp256r1_impl.hpp:15
bb::group_elements::affine_element
Definition
affine_element.hpp:21
bb::numeric::uint256_t
Definition
uint256.hpp:32
secp256r1.hpp
bb::detail
Definition
constexpr_utils.hpp:8
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
precomputed_generators.hpp
bb::detail::PrecomputedGenerators
Definition
precomputed_generators.hpp:32
src
barretenberg
ecc
groups
precomputed_generators_secp256r1_impl.hpp
Generated by
1.9.8