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
2
#include "
barretenberg/ecc/curves/secp256k1/secp256k1.hpp
"
3
#include "
precomputed_generators.hpp
"
4
5
// NOTE: Must be included before using get_precomputed_generators if using secp256k1 g1!
6
namespace
bb::detail
{
7
8
template
<>
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
};
17
template
<>
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
bb::detail::PrecomputedGenerators<"biggroup offset generator", secp256k1::g1::affine_element, 1UL, 0UL >::get_generators
static constexpr std::span< const secp256k1::g1::affine_element > get_generators()
Definition
precomputed_generators_secp256k1_impl.hpp:24
bb::detail::PrecomputedGenerators<"biggroup table offset generator", secp256k1::g1::affine_element, 1UL, 0UL >::get_generators
static constexpr std::span< const secp256k1::g1::affine_element > get_generators()
Definition
precomputed_generators_secp256k1_impl.hpp:15
bb::group_elements::affine_element
Definition
affine_element.hpp:22
bb::numeric::uint256_t
Definition
uint256.hpp:32
secp256k1.hpp
bb::detail
Definition
bb_bench.cpp:169
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_secp256k1_impl.hpp
Generated by
1.9.8