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

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 >
 

Functions

constexpr function_ptr_table make_function_pointer_table ()
 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)
 
template grumpkin::g1::affine_element table::generate_generator_offset< table::BITS_PER_LO_SCALAR > (const grumpkin::g1::affine_element &input)
 
template grumpkin::g1::affine_element table::generate_generator_offset< table::BITS_PER_HI_SCALAR > (const grumpkin::g1::affine_element &input)
 
template table::fixed_base_scalar_mul_tables table::generate_tables< table::BITS_PER_LO_SCALAR > (const table::affine_element &input)
 
template table::fixed_base_scalar_mul_tables table::generate_tables< table::BITS_PER_HI_SCALAR > (const table::affine_element &input)
 
template MultiTable table::get_fixed_base_table< 0, table::BITS_PER_LO_SCALAR > (MultiTableId)
 
template MultiTable table::get_fixed_base_table< 1, table::BITS_PER_HI_SCALAR > (MultiTableId)
 
template MultiTable table::get_fixed_base_table< 2, table::BITS_PER_LO_SCALAR > (MultiTableId)
 
template MultiTable table::get_fixed_base_table< 3, table::BITS_PER_HI_SCALAR > (MultiTableId)
 

Typedef Documentation

◆ function_ptr

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.

◆ function_ptr_table

Function Documentation

◆ make_function_pointer_table()

constexpr function_ptr_table bb::plookup::fixed_base::make_function_pointer_table ( )
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)

Returns
constexpr function_ptr_table

Definition at line 171 of file fixed_base.cpp.

◆ table::generate_generator_offset< table::BITS_PER_HI_SCALAR >()

◆ table::generate_generator_offset< table::BITS_PER_LO_SCALAR >()

◆ table::generate_tables< table::BITS_PER_HI_SCALAR >()

◆ table::generate_tables< table::BITS_PER_LO_SCALAR >()

◆ table::get_fixed_base_table< 0, table::BITS_PER_LO_SCALAR >()

◆ table::get_fixed_base_table< 1, table::BITS_PER_HI_SCALAR >()

◆ table::get_fixed_base_table< 2, table::BITS_PER_LO_SCALAR >()

◆ table::get_fixed_base_table< 3, table::BITS_PER_HI_SCALAR >()