Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::curve::BN254 Class Reference

#include <bn254.hpp>

Public Types

using ScalarField = bb::fr
 
using BaseField = bb::fq
 
using Group = typename bb::g1
 
using Element = typename Group::element
 
using AffineElement = typename Group::affine_element
 
using G2AffineElement = typename bb::g2::affine_element
 
using G2BaseField = typename bb::fq2
 
using TargetField = bb::fq12
 

Static Public Attributes

static constexpr const char * name = "BN254"
 
static constexpr bool is_stdlib_type = false
 
static constexpr size_t SUBGROUP_SIZE = 256
 
static constexpr ScalarField subgroup_generator
 
static constexpr ScalarField subgroup_generator_inverse
 
static constexpr uint32_t LIBRA_UNIVARIATES_LENGTH = 9
 

Detailed Description

Definition at line 16 of file bn254.hpp.

Member Typedef Documentation

◆ AffineElement

using bb::curve::BN254::AffineElement = typename Group::affine_element

Definition at line 22 of file bn254.hpp.

◆ BaseField

Definition at line 19 of file bn254.hpp.

◆ Element

using bb::curve::BN254::Element = typename Group::element

Definition at line 21 of file bn254.hpp.

◆ G2AffineElement

Definition at line 23 of file bn254.hpp.

◆ G2BaseField

Definition at line 24 of file bn254.hpp.

◆ Group

using bb::curve::BN254::Group = typename bb::g1

Definition at line 20 of file bn254.hpp.

◆ ScalarField

Definition at line 18 of file bn254.hpp.

◆ TargetField

Definition at line 25 of file bn254.hpp.

Member Data Documentation

◆ is_stdlib_type

constexpr bool bb::curve::BN254::is_stdlib_type = false
staticconstexpr

Definition at line 31 of file bn254.hpp.

◆ LIBRA_UNIVARIATES_LENGTH

constexpr uint32_t bb::curve::BN254::LIBRA_UNIVARIATES_LENGTH = 9
staticconstexpr

Definition at line 46 of file bn254.hpp.

◆ name

constexpr const char* bb::curve::BN254::name = "BN254"
staticconstexpr

Definition at line 27 of file bn254.hpp.

◆ subgroup_generator

constexpr ScalarField bb::curve::BN254::subgroup_generator
staticconstexpr
Initial value:
=
ScalarField(uint256_t("0x07b0c561a6148404f086204a9f36ffb0617942546750f230c893619174a57a76"))
bb::fr ScalarField
Definition bn254.hpp:18

Definition at line 40 of file bn254.hpp.

◆ subgroup_generator_inverse

constexpr ScalarField bb::curve::BN254::subgroup_generator_inverse
staticconstexpr
Initial value:
=
ScalarField(uint256_t("0x204bd3277422fad364751ad938e2b5e6a54cf8c68712848a692c553d0329f5d6"))

Definition at line 42 of file bn254.hpp.

◆ SUBGROUP_SIZE

constexpr size_t bb::curve::BN254::SUBGROUP_SIZE = 256
staticconstexpr

Definition at line 37 of file bn254.hpp.


The documentation for this class was generated from the following file: