Barretenberg
The ZK-SNARK library at the core of Aztec
|
Classes | |
class | table |
Generates plookup tables required to perform fixed-base scalar multiplication over a fixed number of points. More... | |
Typedefs | |
using | function_ptr = std::array< bb::fr, 2 >(*)(const std::array< uint64_t, 2 >) |
using | function_ptr_table = std::array< std::array< function_ptr, table::MAX_NUM_TABLES_IN_MULTITABLE >, table::NUM_FIXED_BASE_MULTI_TABLES > |
using bb::plookup::fixed_base::function_ptr = typedef std::array<bb::fr, 2> (*)(const std::array<uint64_t, 2>) |
Definition at line 161 of file fixed_base.cpp.
using bb::plookup::fixed_base::function_ptr_table = typedef std::array<std::array<function_ptr, table::MAX_NUM_TABLES_IN_MULTITABLE>, table::NUM_FIXED_BASE_MULTI_TABLES> |
Definition at line 162 of file fixed_base.cpp.
|
constexpr |
create a compile-time static 2D array of all our required get_basic_fixed_base_table_values
function pointers, so that we can specify the function pointer required for this method call using runtime variables multitable_index
, table_index
. (downstream code becomes a lot simpler if table_index
is not compile time, particularly the init code in plookup_tables.cpp
)
Definition at line 171 of file fixed_base.cpp.
template grumpkin::g1::affine_element bb::plookup::fixed_base::table::generate_generator_offset< table::BITS_PER_HI_SCALAR > | ( | const grumpkin::g1::affine_element & | input | ) |
template grumpkin::g1::affine_element bb::plookup::fixed_base::table::generate_generator_offset< table::BITS_PER_LO_SCALAR > | ( | const grumpkin::g1::affine_element & | input | ) |
template table::fixed_base_scalar_mul_tables bb::plookup::fixed_base::table::generate_tables< table::BITS_PER_HI_SCALAR > | ( | const table::affine_element & | input | ) |
template table::fixed_base_scalar_mul_tables bb::plookup::fixed_base::table::generate_tables< table::BITS_PER_LO_SCALAR > | ( | const table::affine_element & | input | ) |
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 0, table::BITS_PER_LO_SCALAR > | ( | MultiTableId | ) |
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 1, table::BITS_PER_HI_SCALAR > | ( | MultiTableId | ) |
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 2, table::BITS_PER_LO_SCALAR > | ( | MultiTableId | ) |