Barretenberg
The ZK-SNARK library at the core of Aztec
|
A table of ECC operations. More...
#include <ecc_ops_table.hpp>
Public Member Functions | |
size_t | size () const |
size_t | num_subtables () const |
auto & | get () const |
void | push (const OpFormat &op) |
void | create_new_subtable (size_t size_hint=0) |
const OpFormat & | operator[] (size_t index) const |
std::vector< OpFormat > | get_reconstructed () const |
void | merge (MergeSettings settings=MergeSettings::PREPEND) |
Private Types | |
using | Subtable = std::vector< OpFormat > |
Private Attributes | |
std::deque< Subtable > | table |
Subtable | current_subtable |
A table of ECC operations.
The table is constructed via concatenation of subtables of ECC operations. The table concatentation protocol (Merge protocol) requires that the concatenation be achieved via PRE-pending successive tables. To avoid the need for expensive memory reallocations associated with physically prepending, the subtables are stored as a std::deque that can be traversed to reconstruct the columns of the aggregate tables as needed (e.g. in corresponding polynomials).
OpFormat | Format of the ECC operations stored in the table |
Definition at line 115 of file ecc_ops_table.hpp.
|
private |
Definition at line 116 of file ecc_ops_table.hpp.
|
inline |
Definition at line 143 of file ecc_ops_table.hpp.
|
inline |
Definition at line 134 of file ecc_ops_table.hpp.
|
inline |
Definition at line 166 of file ecc_ops_table.hpp.
|
inline |
Definition at line 181 of file ecc_ops_table.hpp.
|
inline |
Definition at line 132 of file ecc_ops_table.hpp.
|
inline |
Definition at line 150 of file ecc_ops_table.hpp.
Definition at line 136 of file ecc_ops_table.hpp.
|
inline |
Definition at line 120 of file ecc_ops_table.hpp.
|
private |
Definition at line 118 of file ecc_ops_table.hpp.
|
private |
Definition at line 117 of file ecc_ops_table.hpp.