Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::plookup::Secp256r1FixedBaseParams Struct Reference

Layout parameters for the secp256r1 fixed-base plookup decomposition. More...

#include <secp256r1_fixed_base_params.hpp>

Inheritance diagram for bb::plookup::Secp256r1FixedBaseParams:
bb::plookup::secp256r1_fixed_base::table

Static Public Member Functions

static constexpr size_t window_bits (size_t w)
 
static constexpr size_t table_size (size_t w)
 

Static Public Attributes

static constexpr size_t NUM_WINDOWS_LO = 20
 
static constexpr size_t NUM_WINDOWS_HI = 18
 
static constexpr size_t NUM_WINDOWS = NUM_WINDOWS_LO + NUM_WINDOWS_HI
 
static constexpr size_t WINDOW_BITS = 7
 
static constexpr size_t WINDOW_BITS_LO_TAIL = 3
 
static constexpr size_t WINDOW_BITS_HI_TAIL = 1
 
static constexpr size_t TABLE_SIZE_BIG = 1ULL << WINDOW_BITS
 
static constexpr size_t TABLE_SIZE_LO_TAIL = 1ULL << WINDOW_BITS_LO_TAIL
 
static constexpr size_t TABLE_SIZE_HI_TAIL = 1ULL << WINDOW_BITS_HI_TAIL
 
static constexpr size_t NUM_AXES = 4
 
static constexpr size_t LO_TAIL_WINDOW = NUM_WINDOWS_LO - 1
 
static constexpr size_t HI_TAIL_WINDOW = NUM_WINDOWS - 1
 

Detailed Description

Layout parameters for the secp256r1 fixed-base plookup decomposition.

Pure numerics (window counts, bit widths, table sizes, tail positions, the bit-budget invariants, and the window_bits / table_size per-window helpers). Nothing here depends on the curve type or on BasicTableId, so this header can be included by types.hpp without pulling in secp256r1_fixed_base.hpp (which itself depends on types.hpp). table inherits from this struct so call sites continue to write table::NUM_WINDOWS, table::TABLE_SIZE_BIG, etc.

Definition at line 22 of file secp256r1_fixed_base_params.hpp.

Member Function Documentation

◆ table_size()

static constexpr size_t bb::plookup::Secp256r1FixedBaseParams::table_size ( size_t  w)
inlinestaticconstexpr

Definition at line 63 of file secp256r1_fixed_base_params.hpp.

◆ window_bits()

static constexpr size_t bb::plookup::Secp256r1FixedBaseParams::window_bits ( size_t  w)
inlinestaticconstexpr

Definition at line 53 of file secp256r1_fixed_base_params.hpp.

Member Data Documentation

◆ HI_TAIL_WINDOW

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::HI_TAIL_WINDOW = NUM_WINDOWS - 1
staticconstexpr

Definition at line 45 of file secp256r1_fixed_base_params.hpp.

◆ LO_TAIL_WINDOW

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::LO_TAIL_WINDOW = NUM_WINDOWS_LO - 1
staticconstexpr

Definition at line 44 of file secp256r1_fixed_base_params.hpp.

◆ NUM_AXES

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::NUM_AXES = 4
staticconstexpr

Definition at line 41 of file secp256r1_fixed_base_params.hpp.

◆ NUM_WINDOWS

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::NUM_WINDOWS = NUM_WINDOWS_LO + NUM_WINDOWS_HI
staticconstexpr

Definition at line 34 of file secp256r1_fixed_base_params.hpp.

◆ NUM_WINDOWS_HI

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::NUM_WINDOWS_HI = 18
staticconstexpr

Definition at line 33 of file secp256r1_fixed_base_params.hpp.

◆ NUM_WINDOWS_LO

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::NUM_WINDOWS_LO = 20
staticconstexpr

Definition at line 32 of file secp256r1_fixed_base_params.hpp.

◆ TABLE_SIZE_BIG

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::TABLE_SIZE_BIG = 1ULL << WINDOW_BITS
staticconstexpr

Definition at line 38 of file secp256r1_fixed_base_params.hpp.

◆ TABLE_SIZE_HI_TAIL

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::TABLE_SIZE_HI_TAIL = 1ULL << WINDOW_BITS_HI_TAIL
staticconstexpr

Definition at line 40 of file secp256r1_fixed_base_params.hpp.

◆ TABLE_SIZE_LO_TAIL

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::TABLE_SIZE_LO_TAIL = 1ULL << WINDOW_BITS_LO_TAIL
staticconstexpr

Definition at line 39 of file secp256r1_fixed_base_params.hpp.

◆ WINDOW_BITS

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::WINDOW_BITS = 7
staticconstexpr

Definition at line 35 of file secp256r1_fixed_base_params.hpp.

◆ WINDOW_BITS_HI_TAIL

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::WINDOW_BITS_HI_TAIL = 1
staticconstexpr

Definition at line 37 of file secp256r1_fixed_base_params.hpp.

◆ WINDOW_BITS_LO_TAIL

constexpr size_t bb::plookup::Secp256r1FixedBaseParams::WINDOW_BITS_LO_TAIL = 3
staticconstexpr

Definition at line 36 of file secp256r1_fixed_base_params.hpp.


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