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

#include <fr.hpp>

Static Public Attributes

static constexpr uint64_t modulus_0 = 0x43E1F593F0000001UL
 
static constexpr uint64_t modulus_1 = 0x2833E84879B97091UL
 
static constexpr uint64_t modulus_2 = 0xB85045B68181585DUL
 
static constexpr uint64_t modulus_3 = 0x30644E72E131A029UL
 
static constexpr uint64_t r_squared_0 = 0x1BB8E645AE216DA7UL
 
static constexpr uint64_t r_squared_1 = 0x53FE3AB1E35C59E3UL
 
static constexpr uint64_t r_squared_2 = 0x8C49833D53BB8085UL
 
static constexpr uint64_t r_squared_3 = 0x216D0B17F4E44A5UL
 
static constexpr uint64_t cube_root_0 = 0x93e7cede4a0329b3UL
 
static constexpr uint64_t cube_root_1 = 0x7d4fdca77a96c167UL
 
static constexpr uint64_t cube_root_2 = 0x8be4ba08b19a750aUL
 
static constexpr uint64_t cube_root_3 = 0x1cbd5653a5661c25UL
 
static constexpr uint64_t primitive_root_0 = 0x636e735580d13d9cUL
 
static constexpr uint64_t primitive_root_1 = 0xa22bf3742445ffd6UL
 
static constexpr uint64_t primitive_root_2 = 0x56452ac01eb203d8UL
 
static constexpr uint64_t primitive_root_3 = 0x1860ef942963f9e7UL
 
static constexpr uint64_t endo_g1_lo = 0x7a7bd9d4391eb18dUL
 
static constexpr uint64_t endo_g1_mid = 0x4ccef014a773d2cfUL
 
static constexpr uint64_t endo_g1_hi = 0x0000000000000002UL
 
static constexpr uint64_t endo_g2_lo = 0xd91d232ec7e0b3d7UL
 
static constexpr uint64_t endo_g2_mid = 0x0000000000000002UL
 
static constexpr uint64_t endo_minus_b1_lo = 0x8211bbeb7d4f1128UL
 
static constexpr uint64_t endo_minus_b1_mid = 0x6f4d8248eeb859fcUL
 
static constexpr uint64_t endo_b2_lo = 0x89d3256894d213e3UL
 
static constexpr uint64_t endo_b2_mid = 0UL
 
static constexpr uint64_t r_inv = 0xc2e1f593efffffffUL
 
static constexpr uint64_t r_inv_0 = 0x2d3e8053e396ee4dUL
 
static constexpr uint64_t r_inv_1 = 0xca478dbeab3c92cdUL
 
static constexpr uint64_t r_inv_2 = 0xb2d8f06f77f52a93UL
 
static constexpr uint64_t r_inv_3 = 0x24d6ba07f7aa8f04UL
 
static constexpr uint64_t r_inv_wasm_0 = 0x18f05361
 
static constexpr uint64_t r_inv_wasm_1 = 0x12bb1fe
 
static constexpr uint64_t r_inv_wasm_2 = 0xf5d8135
 
static constexpr uint64_t r_inv_wasm_3 = 0x1e6275f6
 
static constexpr uint64_t r_inv_wasm_4 = 0x7e7a880
 
static constexpr uint64_t r_inv_wasm_5 = 0x10c6bf1f
 
static constexpr uint64_t r_inv_wasm_6 = 0x11f74a6c
 
static constexpr uint64_t r_inv_wasm_7 = 0x6fdaecb
 
static constexpr uint64_t r_inv_wasm_8 = 0x183227
 
static constexpr uint64_t coset_generators_0 [8]
 
static constexpr uint64_t coset_generators_1 [8]
 
static constexpr uint64_t coset_generators_2 [8]
 
static constexpr uint64_t coset_generators_3 [8]
 
static constexpr uint64_t modulus_wasm_0 = 0x10000001
 
static constexpr uint64_t modulus_wasm_1 = 0x1f0fac9f
 
static constexpr uint64_t modulus_wasm_2 = 0xe5c2450
 
static constexpr uint64_t modulus_wasm_3 = 0x7d090f3
 
static constexpr uint64_t modulus_wasm_4 = 0x1585d283
 
static constexpr uint64_t modulus_wasm_5 = 0x2db40c0
 
static constexpr uint64_t modulus_wasm_6 = 0xa6e141
 
static constexpr uint64_t modulus_wasm_7 = 0xe5c2634
 
static constexpr uint64_t modulus_wasm_8 = 0x30644e
 
static constexpr uint64_t r_squared_wasm_0 = 0x38c2e14b45b69bd4UL
 
static constexpr uint64_t r_squared_wasm_1 = 0x0ffedb1885883377UL
 
static constexpr uint64_t r_squared_wasm_2 = 0x7840f9f0abc6e54dUL
 
static constexpr uint64_t r_squared_wasm_3 = 0x0a054a3e848b0f05UL
 
static constexpr uint64_t cube_root_wasm_0 = 0x7334a1ce7065364dUL
 
static constexpr uint64_t cube_root_wasm_1 = 0xae21578e4a14d22aUL
 
static constexpr uint64_t cube_root_wasm_2 = 0xcea2148a96b51265UL
 
static constexpr uint64_t cube_root_wasm_3 = 0x0038f7edf614a198UL
 
static constexpr uint64_t primitive_root_wasm_0 = 0x2faf11711a27b370UL
 
static constexpr uint64_t primitive_root_wasm_1 = 0xc23fe9fced28f1b8UL
 
static constexpr uint64_t primitive_root_wasm_2 = 0x43a0fc9bbe2af541UL
 
static constexpr uint64_t primitive_root_wasm_3 = 0x05d90b5719653a4fUL
 
static constexpr uint64_t coset_generators_wasm_0 [8]
 
static constexpr uint64_t coset_generators_wasm_1 [8]
 
static constexpr uint64_t coset_generators_wasm_2 [8]
 
static constexpr uint64_t coset_generators_wasm_3 [8]
 
static constexpr char schema_name [] = "fr"
 
static constexpr bool has_high_2adicity = true
 
static constexpr size_t NUM_BN254_SCALARS = 1
 
static constexpr size_t MAX_BITS_PER_ENDOMORPHISM_SCALAR = 128
 
static constexpr size_t PUBLIC_INPUTS_SIZE = FR_PUBLIC_INPUTS_SIZE
 

Detailed Description

Definition at line 20 of file fr.hpp.

Member Data Documentation

◆ coset_generators_0

constexpr uint64_t bb::Bn254FrParams::coset_generators_0[8]
staticconstexpr
Initial value:
{
0x5eef048d8fffffe7ULL, 0xb8538a9dfffffe2ULL, 0x3057819e4fffffdbULL, 0xdcedb5ba9fffffd6ULL,
0x8983e9d6efffffd1ULL, 0x361a1df33fffffccULL, 0xe2b0520f8fffffc7ULL, 0x8f46862bdfffffc2ULL,
}

Definition at line 94 of file fr.hpp.

◆ coset_generators_1

constexpr uint64_t bb::Bn254FrParams::coset_generators_1[8]
staticconstexpr
Initial value:
{
0x12ee50ec1ce401d0ULL, 0x49eac781bc44cefaULL, 0x307f6d866832bb01ULL, 0x677be41c0793882aULL,
0x9e785ab1a6f45554ULL, 0xd574d1474655227eULL, 0xc7147dce5b5efa7ULL, 0x436dbe728516bcd1ULL,
}

Definition at line 98 of file fr.hpp.

◆ coset_generators_2

constexpr uint64_t bb::Bn254FrParams::coset_generators_2[8]
staticconstexpr
Initial value:
{
0x29312d5a5e5ee7ULL, 0x6697d49cd2d7a515ULL, 0x5c65ec9f484e3a89ULL, 0xc2d4900ec0c780b7ULL,
0x2943337e3940c6e5ULL, 0x8fb1d6edb1ba0d13ULL, 0xf6207a5d2a335342ULL, 0x5c8f1dcca2ac9970ULL,
}

Definition at line 102 of file fr.hpp.

◆ coset_generators_3

constexpr uint64_t bb::Bn254FrParams::coset_generators_3[8]
staticconstexpr
Initial value:
{
0x463456c802275bedULL, 0x543ece899c2f3b1cULL, 0x180a96573d3d9f8ULL, 0xf8b21270ddbb927ULL,
0x1d9598e8a7e39857ULL, 0x2ba010aa41eb7786ULL, 0x39aa886bdbf356b5ULL, 0x47b5002d75fb35e5ULL,
}

Definition at line 106 of file fr.hpp.

◆ coset_generators_wasm_0

constexpr uint64_t bb::Bn254FrParams::coset_generators_wasm_0[8]
staticconstexpr
Initial value:
= { 0xab46711cdffffcb2ULL, 0xdb1b52736ffffc09ULL,
0x0af033c9fffffb60ULL, 0xf6e31f8c9ffffab6ULL,
0x26b800e32ffffa0dULL, 0x568ce239bffff964ULL,
0x427fcdfc5ffff8baULL, 0x7254af52effff811ULL }

Definition at line 145 of file fr.hpp.

◆ coset_generators_wasm_1

constexpr uint64_t bb::Bn254FrParams::coset_generators_wasm_1[8]
staticconstexpr
Initial value:
= { 0x2476607dbd2dfff1ULL, 0x9a3208a561c2b00bULL,
0x0fedb0cd06576026ULL, 0x5d7570ac31329faeULL,
0xd33118d3d5c74fc9ULL, 0x48ecc0fb7a5bffe3ULL,
0x967480daa5373f6cULL, 0x0c30290249cbef86ULL }

Definition at line 149 of file fr.hpp.

◆ coset_generators_wasm_2

constexpr uint64_t bb::Bn254FrParams::coset_generators_wasm_2[8]
staticconstexpr
Initial value:
= { 0xe6b99ee0068dfc25ULL, 0x39bb9964882aa6a5ULL,
0x8cbd93e909c75126ULL, 0x276f48b709e2a349ULL,
0x7a71433b8b7f4dc9ULL, 0xcd733dc00d1bf84aULL,
0x6824f28e0d374a6dULL, 0xbb26ed128ed3f4eeULL }

Definition at line 153 of file fr.hpp.

◆ coset_generators_wasm_3

constexpr uint64_t bb::Bn254FrParams::coset_generators_wasm_3[8]
staticconstexpr
Initial value:
= { 0x1484c05bce00b620ULL, 0x224cf685243dfa96ULL,
0x30152cae7a7b3f0bULL, 0x0d791464ef86e357ULL,
0x1b414a8e45c427ccULL, 0x290980b79c016c41ULL,
0x066d686e110d108dULL, 0x14359e97674a5502ULL }

Definition at line 157 of file fr.hpp.

◆ cube_root_0

constexpr uint64_t bb::Bn254FrParams::cube_root_0 = 0x93e7cede4a0329b3UL
staticconstexpr

Definition at line 40 of file fr.hpp.

◆ cube_root_1

constexpr uint64_t bb::Bn254FrParams::cube_root_1 = 0x7d4fdca77a96c167UL
staticconstexpr

Definition at line 41 of file fr.hpp.

◆ cube_root_2

constexpr uint64_t bb::Bn254FrParams::cube_root_2 = 0x8be4ba08b19a750aUL
staticconstexpr

Definition at line 42 of file fr.hpp.

◆ cube_root_3

constexpr uint64_t bb::Bn254FrParams::cube_root_3 = 0x1cbd5653a5661c25UL
staticconstexpr

Definition at line 43 of file fr.hpp.

◆ cube_root_wasm_0

constexpr uint64_t bb::Bn254FrParams::cube_root_wasm_0 = 0x7334a1ce7065364dUL
staticconstexpr

Definition at line 132 of file fr.hpp.

◆ cube_root_wasm_1

constexpr uint64_t bb::Bn254FrParams::cube_root_wasm_1 = 0xae21578e4a14d22aUL
staticconstexpr

Definition at line 133 of file fr.hpp.

◆ cube_root_wasm_2

constexpr uint64_t bb::Bn254FrParams::cube_root_wasm_2 = 0xcea2148a96b51265UL
staticconstexpr

Definition at line 134 of file fr.hpp.

◆ cube_root_wasm_3

constexpr uint64_t bb::Bn254FrParams::cube_root_wasm_3 = 0x0038f7edf614a198UL
staticconstexpr

Definition at line 135 of file fr.hpp.

◆ endo_b2_lo

constexpr uint64_t bb::Bn254FrParams::endo_b2_lo = 0x89d3256894d213e3UL
staticconstexpr

Definition at line 61 of file fr.hpp.

◆ endo_b2_mid

constexpr uint64_t bb::Bn254FrParams::endo_b2_mid = 0UL
staticconstexpr

Definition at line 62 of file fr.hpp.

◆ endo_g1_hi

constexpr uint64_t bb::Bn254FrParams::endo_g1_hi = 0x0000000000000002UL
staticconstexpr

Definition at line 56 of file fr.hpp.

◆ endo_g1_lo

constexpr uint64_t bb::Bn254FrParams::endo_g1_lo = 0x7a7bd9d4391eb18dUL
staticconstexpr

Definition at line 54 of file fr.hpp.

◆ endo_g1_mid

constexpr uint64_t bb::Bn254FrParams::endo_g1_mid = 0x4ccef014a773d2cfUL
staticconstexpr

Definition at line 55 of file fr.hpp.

◆ endo_g2_lo

constexpr uint64_t bb::Bn254FrParams::endo_g2_lo = 0xd91d232ec7e0b3d7UL
staticconstexpr

Definition at line 57 of file fr.hpp.

◆ endo_g2_mid

constexpr uint64_t bb::Bn254FrParams::endo_g2_mid = 0x0000000000000002UL
staticconstexpr

Definition at line 58 of file fr.hpp.

◆ endo_minus_b1_lo

constexpr uint64_t bb::Bn254FrParams::endo_minus_b1_lo = 0x8211bbeb7d4f1128UL
staticconstexpr

Definition at line 59 of file fr.hpp.

◆ endo_minus_b1_mid

constexpr uint64_t bb::Bn254FrParams::endo_minus_b1_mid = 0x6f4d8248eeb859fcUL
staticconstexpr

Definition at line 60 of file fr.hpp.

◆ has_high_2adicity

constexpr bool bb::Bn254FrParams::has_high_2adicity = true
staticconstexpr

Definition at line 164 of file fr.hpp.

◆ MAX_BITS_PER_ENDOMORPHISM_SCALAR

constexpr size_t bb::Bn254FrParams::MAX_BITS_PER_ENDOMORPHISM_SCALAR = 128
staticconstexpr

Definition at line 168 of file fr.hpp.

◆ modulus_0

constexpr uint64_t bb::Bn254FrParams::modulus_0 = 0x43E1F593F0000001UL
staticconstexpr

Definition at line 28 of file fr.hpp.

◆ modulus_1

constexpr uint64_t bb::Bn254FrParams::modulus_1 = 0x2833E84879B97091UL
staticconstexpr

Definition at line 29 of file fr.hpp.

◆ modulus_2

constexpr uint64_t bb::Bn254FrParams::modulus_2 = 0xB85045B68181585DUL
staticconstexpr

Definition at line 30 of file fr.hpp.

◆ modulus_3

constexpr uint64_t bb::Bn254FrParams::modulus_3 = 0x30644E72E131A029UL
staticconstexpr

Definition at line 31 of file fr.hpp.

◆ modulus_wasm_0

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_0 = 0x10000001
staticconstexpr

Definition at line 113 of file fr.hpp.

◆ modulus_wasm_1

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_1 = 0x1f0fac9f
staticconstexpr

Definition at line 114 of file fr.hpp.

◆ modulus_wasm_2

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_2 = 0xe5c2450
staticconstexpr

Definition at line 115 of file fr.hpp.

◆ modulus_wasm_3

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_3 = 0x7d090f3
staticconstexpr

Definition at line 116 of file fr.hpp.

◆ modulus_wasm_4

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_4 = 0x1585d283
staticconstexpr

Definition at line 117 of file fr.hpp.

◆ modulus_wasm_5

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_5 = 0x2db40c0
staticconstexpr

Definition at line 118 of file fr.hpp.

◆ modulus_wasm_6

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_6 = 0xa6e141
staticconstexpr

Definition at line 119 of file fr.hpp.

◆ modulus_wasm_7

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_7 = 0xe5c2634
staticconstexpr

Definition at line 120 of file fr.hpp.

◆ modulus_wasm_8

constexpr uint64_t bb::Bn254FrParams::modulus_wasm_8 = 0x30644e
staticconstexpr

Definition at line 121 of file fr.hpp.

◆ NUM_BN254_SCALARS

constexpr size_t bb::Bn254FrParams::NUM_BN254_SCALARS = 1
staticconstexpr

Definition at line 167 of file fr.hpp.

◆ primitive_root_0

constexpr uint64_t bb::Bn254FrParams::primitive_root_0 = 0x636e735580d13d9cUL
staticconstexpr

Definition at line 47 of file fr.hpp.

◆ primitive_root_1

constexpr uint64_t bb::Bn254FrParams::primitive_root_1 = 0xa22bf3742445ffd6UL
staticconstexpr

Definition at line 48 of file fr.hpp.

◆ primitive_root_2

constexpr uint64_t bb::Bn254FrParams::primitive_root_2 = 0x56452ac01eb203d8UL
staticconstexpr

Definition at line 49 of file fr.hpp.

◆ primitive_root_3

constexpr uint64_t bb::Bn254FrParams::primitive_root_3 = 0x1860ef942963f9e7UL
staticconstexpr

Definition at line 50 of file fr.hpp.

◆ primitive_root_wasm_0

constexpr uint64_t bb::Bn254FrParams::primitive_root_wasm_0 = 0x2faf11711a27b370UL
staticconstexpr

Definition at line 139 of file fr.hpp.

◆ primitive_root_wasm_1

constexpr uint64_t bb::Bn254FrParams::primitive_root_wasm_1 = 0xc23fe9fced28f1b8UL
staticconstexpr

Definition at line 140 of file fr.hpp.

◆ primitive_root_wasm_2

constexpr uint64_t bb::Bn254FrParams::primitive_root_wasm_2 = 0x43a0fc9bbe2af541UL
staticconstexpr

Definition at line 141 of file fr.hpp.

◆ primitive_root_wasm_3

constexpr uint64_t bb::Bn254FrParams::primitive_root_wasm_3 = 0x05d90b5719653a4fUL
staticconstexpr

Definition at line 142 of file fr.hpp.

◆ PUBLIC_INPUTS_SIZE

constexpr size_t bb::Bn254FrParams::PUBLIC_INPUTS_SIZE = FR_PUBLIC_INPUTS_SIZE
staticconstexpr

Definition at line 171 of file fr.hpp.

◆ r_inv

constexpr uint64_t bb::Bn254FrParams::r_inv = 0xc2e1f593efffffffUL
staticconstexpr

Definition at line 68 of file fr.hpp.

◆ r_inv_0

constexpr uint64_t bb::Bn254FrParams::r_inv_0 = 0x2d3e8053e396ee4dUL
staticconstexpr

Definition at line 74 of file fr.hpp.

◆ r_inv_1

constexpr uint64_t bb::Bn254FrParams::r_inv_1 = 0xca478dbeab3c92cdUL
staticconstexpr

Definition at line 75 of file fr.hpp.

◆ r_inv_2

constexpr uint64_t bb::Bn254FrParams::r_inv_2 = 0xb2d8f06f77f52a93UL
staticconstexpr

Definition at line 76 of file fr.hpp.

◆ r_inv_3

constexpr uint64_t bb::Bn254FrParams::r_inv_3 = 0x24d6ba07f7aa8f04UL
staticconstexpr

Definition at line 77 of file fr.hpp.

◆ r_inv_wasm_0

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_0 = 0x18f05361
staticconstexpr

Definition at line 83 of file fr.hpp.

◆ r_inv_wasm_1

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_1 = 0x12bb1fe
staticconstexpr

Definition at line 84 of file fr.hpp.

◆ r_inv_wasm_2

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_2 = 0xf5d8135
staticconstexpr

Definition at line 85 of file fr.hpp.

◆ r_inv_wasm_3

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_3 = 0x1e6275f6
staticconstexpr

Definition at line 86 of file fr.hpp.

◆ r_inv_wasm_4

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_4 = 0x7e7a880
staticconstexpr

Definition at line 87 of file fr.hpp.

◆ r_inv_wasm_5

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_5 = 0x10c6bf1f
staticconstexpr

Definition at line 88 of file fr.hpp.

◆ r_inv_wasm_6

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_6 = 0x11f74a6c
staticconstexpr

Definition at line 89 of file fr.hpp.

◆ r_inv_wasm_7

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_7 = 0x6fdaecb
staticconstexpr

Definition at line 90 of file fr.hpp.

◆ r_inv_wasm_8

constexpr uint64_t bb::Bn254FrParams::r_inv_wasm_8 = 0x183227
staticconstexpr

Definition at line 91 of file fr.hpp.

◆ r_squared_0

constexpr uint64_t bb::Bn254FrParams::r_squared_0 = 0x1BB8E645AE216DA7UL
staticconstexpr

Definition at line 34 of file fr.hpp.

◆ r_squared_1

constexpr uint64_t bb::Bn254FrParams::r_squared_1 = 0x53FE3AB1E35C59E3UL
staticconstexpr

Definition at line 35 of file fr.hpp.

◆ r_squared_2

constexpr uint64_t bb::Bn254FrParams::r_squared_2 = 0x8C49833D53BB8085UL
staticconstexpr

Definition at line 36 of file fr.hpp.

◆ r_squared_3

constexpr uint64_t bb::Bn254FrParams::r_squared_3 = 0x216D0B17F4E44A5UL
staticconstexpr

Definition at line 37 of file fr.hpp.

◆ r_squared_wasm_0

constexpr uint64_t bb::Bn254FrParams::r_squared_wasm_0 = 0x38c2e14b45b69bd4UL
staticconstexpr

Definition at line 125 of file fr.hpp.

◆ r_squared_wasm_1

constexpr uint64_t bb::Bn254FrParams::r_squared_wasm_1 = 0x0ffedb1885883377UL
staticconstexpr

Definition at line 126 of file fr.hpp.

◆ r_squared_wasm_2

constexpr uint64_t bb::Bn254FrParams::r_squared_wasm_2 = 0x7840f9f0abc6e54dUL
staticconstexpr

Definition at line 127 of file fr.hpp.

◆ r_squared_wasm_3

constexpr uint64_t bb::Bn254FrParams::r_squared_wasm_3 = 0x0a054a3e848b0f05UL
staticconstexpr

Definition at line 128 of file fr.hpp.

◆ schema_name

constexpr char bb::Bn254FrParams::schema_name[] = "fr"
staticconstexpr

Definition at line 163 of file fr.hpp.


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