Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
plookup_tables.cpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Complete, auditors: [Luke, Raju], commit: 4a956ceb179c2fe855e4f1fd78f2594e7fc3f5ea}
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6//
7// === CODE ROLE: Builder-agnostic native computation ===
8// This file performs pure computation without modifying any circuit builder. All functions here
9// operate on native field elements (bb::fr) and return computed values. No witnesses or gates are created.
10//
11// Key functions:
12// - get_lookup_accumulators(): Slices inputs, computes table values, builds accumulator arrays.
13// This is the core native lookup logic. Returns ReadData<bb::fr> with computed values.
14// - get_multitable(): Returns a MultiTable by ID (lazy initialization of all tables)
15// - create_basic_table(): Factory function for BasicTable creation by ID
16//
17// The output of get_lookup_accumulators() is passed to ultra_circuit_builder::create_gates_from_plookup_accumulators()
18// which actually creates the lookup gates in the circuit.
19// =====================
20
21#include "plookup_tables.hpp"
30
36namespace bb::plookup {
37
38using namespace bb;
39
40namespace {
42{
43 // C++11 guarantees thread-safe initialization of static local variables
59 tables[MultiTableId::UINT8_XOR] = uint_tables::get_uint_xor_table<8>(MultiTableId::UINT8_XOR);
60 tables[MultiTableId::UINT16_XOR] = uint_tables::get_uint_xor_table<16>(MultiTableId::UINT16_XOR);
61 tables[MultiTableId::UINT32_XOR] = uint_tables::get_uint_xor_table<32>(MultiTableId::UINT32_XOR);
62 tables[MultiTableId::UINT64_XOR] = uint_tables::get_uint_xor_table<64>(MultiTableId::UINT64_XOR);
63 tables[MultiTableId::UINT8_AND] = uint_tables::get_uint_and_table<8>(MultiTableId::UINT8_AND);
64 tables[MultiTableId::UINT16_AND] = uint_tables::get_uint_and_table<16>(MultiTableId::UINT16_AND);
65 tables[MultiTableId::UINT32_AND] = uint_tables::get_uint_and_table<32>(MultiTableId::UINT32_AND);
66 tables[MultiTableId::UINT64_AND] = uint_tables::get_uint_and_table<64>(MultiTableId::UINT64_AND);
103 fixed_base::table::get_fixed_base_table<0, 128>(MultiTableId::FIXED_BASE_LEFT_LO);
105 fixed_base::table::get_fixed_base_table<1, 126>(MultiTableId::FIXED_BASE_LEFT_HI);
107 fixed_base::table::get_fixed_base_table<2, 128>(MultiTableId::FIXED_BASE_RIGHT_LO);
109 fixed_base::table::get_fixed_base_table<3, 126>(MultiTableId::FIXED_BASE_RIGHT_HI);
110
111 bb::constexpr_for<0, 25, 1>([&]<size_t i>() {
112 tables[static_cast<size_t>(MultiTableId::KECCAK_NORMALIZE_AND_ROTATE) + i] =
114 });
116 return tables;
117 }();
118 return MULTI_TABLES;
119}
120} // namespace
131{
132 return get_multi_tables()[id];
133}
134
153 const fr& key_a,
154 const fr& key_b,
155 const bool is_2_to_1_lookup)
156{
157 // return multi-table, populating global array of all multi-tables if need be
158 const auto& multi_table = get_multitable(id);
159 const size_t num_lookups = multi_table.basic_table_ids.size();
160
161 ReadData<bb::fr> lookup;
162 const auto key_a_slices = numeric::slice_input_using_variable_bases(key_a, multi_table.slice_sizes);
163 const auto key_b_slices = numeric::slice_input_using_variable_bases(key_b, multi_table.slice_sizes);
164
165 std::vector<fr> column_1_raw_values;
166 std::vector<fr> column_2_raw_values;
167 std::vector<fr> column_3_raw_values;
168
169 for (size_t i = 0; i < num_lookups; ++i) {
170 // compute the value(s) corresponding to the key(s) using the i-th basic table query function
171 const auto values = multi_table.get_table_values[i]({ key_a_slices[i], key_b_slices[i] });
172 // store all query data in raw columns and key entry
173 column_1_raw_values.emplace_back(key_a_slices[i]);
174 column_2_raw_values.emplace_back(is_2_to_1_lookup ? key_b_slices[i] : values[0]);
175 column_3_raw_values.emplace_back(is_2_to_1_lookup ? values[0] : values[1]);
176
177 // Store the lookup entries for use in constructing the sorted table/lookup polynomials later on
178 const BasicTable::LookupEntry lookup_entry{ { key_a_slices[i], key_b_slices[i] }, values };
179 lookup.lookup_entries.emplace_back(lookup_entry);
180 }
181
182 lookup[C1].resize(num_lookups);
183 lookup[C2].resize(num_lookups);
184 lookup[C3].resize(num_lookups);
185
225 lookup[C1][num_lookups - 1] = column_1_raw_values[num_lookups - 1];
226 lookup[C2][num_lookups - 1] = column_2_raw_values[num_lookups - 1];
227 lookup[C3][num_lookups - 1] = column_3_raw_values[num_lookups - 1];
228
229 for (size_t i = num_lookups - 1; i > 0; --i) {
230 lookup[C1][i - 1] = column_1_raw_values[i - 1] + lookup[C1][i] * multi_table.column_1_step_sizes[i];
231 lookup[C2][i - 1] = column_2_raw_values[i - 1] + lookup[C2][i] * multi_table.column_2_step_sizes[i];
232 lookup[C3][i - 1] = column_3_raw_values[i - 1] + lookup[C3][i] * multi_table.column_3_step_sizes[i];
233 }
234 return lookup;
235}
236
238{
239 // we have >50 basic fixed base tables so we match with some logic instead of a switch statement
240 auto id_var = static_cast<size_t>(id);
241 if (id_var >= static_cast<size_t>(FIXED_BASE_0_0) && id_var < static_cast<size_t>(FIXED_BASE_1_0)) {
242 return fixed_base::table::generate_basic_fixed_base_table<0>(
243 id, index, id_var - static_cast<size_t>(FIXED_BASE_0_0));
244 }
245 if (id_var >= static_cast<size_t>(FIXED_BASE_1_0) && id_var < static_cast<size_t>(FIXED_BASE_2_0)) {
246 return fixed_base::table::generate_basic_fixed_base_table<1>(
247 id, index, id_var - static_cast<size_t>(FIXED_BASE_1_0));
248 }
249 if (id_var >= static_cast<size_t>(FIXED_BASE_2_0) && id_var < static_cast<size_t>(FIXED_BASE_3_0)) {
250 return fixed_base::table::generate_basic_fixed_base_table<2>(
251 id, index, id_var - static_cast<size_t>(FIXED_BASE_2_0));
252 }
253 if (id_var >= static_cast<size_t>(FIXED_BASE_3_0) && id_var < static_cast<size_t>(HONK_DUMMY_BASIC1)) {
254 return fixed_base::table::generate_basic_fixed_base_table<3>(
255 id, index, id_var - static_cast<size_t>(FIXED_BASE_3_0));
256 }
257 switch (id) {
258 case AES_SPARSE_MAP: {
259 return sparse_tables::generate_sparse_table_with_rotation<9, 8, 0>(AES_SPARSE_MAP, index);
260 }
261 case AES_SBOX_MAP: {
263 }
266 }
269 }
271 return sparse_tables::generate_sparse_table_with_rotation<16, 3, 0>(SHA256_WITNESS_SLICE_3, index);
272 }
274 return sparse_tables::generate_sparse_table_with_rotation<16, 7, 4>(SHA256_WITNESS_SLICE_7_ROTATE_4, index);
275 }
277 return sparse_tables::generate_sparse_table_with_rotation<16, 8, 7>(SHA256_WITNESS_SLICE_8_ROTATE_7, index);
278 }
280 return sparse_tables::generate_sparse_table_with_rotation<16, 14, 1>(SHA256_WITNESS_SLICE_14_ROTATE_1, index);
281 }
282 case SHA256_CH_NORMALIZE: {
284 }
287 }
288 case SHA256_BASE28: {
289 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 0>(SHA256_BASE28, index);
290 }
292 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 6>(SHA256_BASE28_ROTATE6, index);
293 }
295 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 3>(SHA256_BASE28_ROTATE3, index);
296 }
297 case SHA256_BASE16: {
298 return sparse_tables::generate_sparse_table_with_rotation<16, 11, 0>(SHA256_BASE16, index);
299 }
301 return sparse_tables::generate_sparse_table_with_rotation<16, 11, 2>(SHA256_BASE16_ROTATE2, index);
302 }
304 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/6, /*num_rotated_output_bits=*/0>(
306 }
308 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/4, /*num_rotated_output_bits=*/0>(
310 }
312 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/2, /*num_rotated_output_bits=*/0>(
314 }
316 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/6, /*num_rotated_output_bits=*/0>(
318 }
320 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/4, /*num_rotated_output_bits=*/0>(
322 }
324 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/2, /*num_rotated_output_bits=*/0>(
326 }
327 case SECP256K1_XLO_BASIC: {
329 }
330 case SECP256K1_XHI_BASIC: {
332 }
333 case SECP256K1_YLO_BASIC: {
335 }
336 case SECP256K1_YHI_BASIC: {
338 }
341 index);
342 }
346 }
350 }
354 }
355 case BLAKE_XOR_ROTATE0: {
356 return blake2s_tables::generate_xor_rotate_table<6, 0>(BLAKE_XOR_ROTATE0, index);
357 }
359 return blake2s_tables::generate_xor_rotate_table<5, 0, true>(BLAKE_XOR_ROTATE0_SLICE5_MOD4, index);
360 }
361 case BLAKE_XOR_ROTATE2: {
362 return blake2s_tables::generate_xor_rotate_table<6, 2>(BLAKE_XOR_ROTATE2, index);
363 }
364 case BLAKE_XOR_ROTATE1: {
365 return blake2s_tables::generate_xor_rotate_table<6, 1>(BLAKE_XOR_ROTATE1, index);
366 }
367 case BLAKE_XOR_ROTATE4: {
368 return blake2s_tables::generate_xor_rotate_table<6, 4>(BLAKE_XOR_ROTATE4, index);
369 }
370 case HONK_DUMMY_BASIC1: {
371 return dummy_tables::generate_honk_dummy_table<HONK_DUMMY_BASIC1>(HONK_DUMMY_BASIC1, index);
372 }
373 case HONK_DUMMY_BASIC2: {
374 return dummy_tables::generate_honk_dummy_table<HONK_DUMMY_BASIC2>(HONK_DUMMY_BASIC2, index);
375 }
376 case KECCAK_INPUT: {
378 }
379 case KECCAK_THETA: {
381 }
382 case KECCAK_CHI: {
384 }
385 case KECCAK_OUTPUT: {
387 }
388 case KECCAK_RHO_1: {
390 }
391 case KECCAK_RHO_2: {
393 }
394 case KECCAK_RHO_3: {
396 }
397 case KECCAK_RHO_4: {
399 }
400 case KECCAK_RHO_5: {
402 }
403 case KECCAK_RHO_6: {
405 }
406 case KECCAK_RHO_7: {
408 }
409 case KECCAK_RHO_8: {
411 }
412 default: {
413 throw_or_abort("table id does not exist");
414 return sparse_tables::generate_sparse_table_with_rotation<9, 8, 0>(AES_SPARSE_MAP, index);
415 }
416 }
417}
418} // namespace bb::plookup
Container for lookup accumulator values and table reads.
Definition types.hpp:357
std::vector< BasicTable::LookupEntry > lookup_entries
Definition types.hpp:363
static MultiTable get_yhi_table(const MultiTableId id, const BasicTableId basic_id)
static MultiTable get_xyprime_endo_table(const MultiTableId id, const BasicTableId basic_id)
static BasicTable generate_xlo_table(BasicTableId id, const size_t table_index)
static BasicTable generate_xyprime_endo_table(BasicTableId id, const size_t table_index)
static BasicTable generate_yhi_table(BasicTableId id, const size_t table_index)
static BasicTable generate_xlo_endo_table(BasicTableId id, const size_t table_index)
static BasicTable generate_ylo_table(BasicTableId id, const size_t table_index)
static BasicTable generate_xhi_table(BasicTableId id, const size_t table_index)
static MultiTable get_xlo_endo_table(const MultiTableId id, const BasicTableId basic_id)
static MultiTable get_xyprime_table(const MultiTableId id, const BasicTableId basic_id)
static MultiTable get_xhi_endo_table(const MultiTableId id, const BasicTableId basic_id)
static BasicTable generate_xyprime_table(BasicTableId id, const size_t table_index)
static BasicTable generate_xhi_endo_table(BasicTableId id, const size_t table_index)
static MultiTable get_xhi_table(const MultiTableId id, const BasicTableId basic_id)
static MultiTable get_xlo_table(const MultiTableId id, const BasicTableId basic_id)
static MultiTable get_ylo_table(const MultiTableId id, const BasicTableId basic_id)
static BasicTable generate_chi_renormalization_table(BasicTableId id, const size_t table_index)
Generate the CHI plookup table.
static MultiTable get_chi_output_table(const MultiTableId id=KECCAK_CHI_OUTPUT)
Create the CHI MultiTable used by plookup to generate a sequence of lookups.
static MultiTable get_keccak_input_table(const MultiTableId id=KECCAK_FORMAT_INPUT)
Create the KeccakInput MultiTable used by plookup to generate a sequence of lookups.
static BasicTable generate_keccak_input_table(BasicTableId id, const size_t table_index)
Generate plookup table that maps a TABLE_BITS-slice of a base-2 integer into a base-11 representation...
static MultiTable get_keccak_output_table(const MultiTableId id=KECCAK_FORMAT_OUTPUT)
Create the KeccakOutput MultiTable used by plookup to generate a sequence of lookups.
static BasicTable generate_keccak_output_table(BasicTableId id, const size_t table_index)
Generate plookup table that maps a TABLE_BITS-slice of a base-11 integer into a base-2 integer.
static MultiTable get_rho_output_table(const MultiTableId id=KECCAK_NORMALIZE_AND_ROTATE)
Create the Rho MultiTable used by plookup to generate a sequence of lookups.
static BasicTable generate_rho_renormalization_table(BasicTableId id, const size_t table_index)
Generate plookup table that normalizes a TABLE_BITS-slice of a base-11 integer and extracts the msb.
static MultiTable get_theta_output_table(const MultiTableId id=KECCAK_THETA_OUTPUT)
Create the THETA MultiTable used by plookup to generate a sequence of lookups.
static BasicTable generate_theta_renormalization_table(BasicTableId id, const size_t table_index)
Generate plookup table that normalizes a TABLE_BITS-slice of a base-11 integer.
This file contains functions for the dummy tables that we use in UltraHonk to make table,...
std::vector< uint64_t > slice_input_using_variable_bases(const uint256_t &input, const std::vector< uint64_t > &bases)
MultiTable get_aes_input_table(const MultiTableId id=AES_INPUT)
Definition aes128.hpp:116
BasicTable generate_aes_sparse_normalization_table(BasicTableId id, const size_t table_index)
Definition aes128.hpp:57
MultiTable get_aes_normalization_table(const MultiTableId id=AES_NORMALIZE)
Definition aes128.hpp:92
BasicTable generate_aes_sbox_table(BasicTableId id, const size_t table_index)
Definition aes128.hpp:140
MultiTable get_aes_sbox_table(const MultiTableId id=AES_SBOX)
Definition aes128.hpp:166
MultiTable get_blake2s_xor_rotate_8_table(const MultiTableId id=BLAKE_XOR_ROTATE_8)
Definition blake2s.hpp:152
MultiTable get_blake2s_xor_rotate_7_table(const MultiTableId id=BLAKE_XOR_ROTATE_7)
Definition blake2s.hpp:187
MultiTable get_blake2s_xor_rotate_16_table(const MultiTableId id=BLAKE_XOR_ROTATE_16)
Definition blake2s.hpp:117
MultiTable get_blake2s_xor_table(const MultiTableId id=BLAKE_XOR)
Definition blake2s.hpp:94
MultiTable get_honk_dummy_multitable()
Create a multitable for filling UltraHonk polynomials with non-zero values.
Definition dummy.hpp:83
MultiTable get_witness_extension_input_table(const MultiTableId id=SHA256_WITNESS_INPUT)
Constructs a MultiTable for decomposing a 32-bit word for message schedule extension.
Definition sha256.hpp:445
MultiTable get_majority_input_table(const MultiTableId id=SHA256_MAJ_INPUT)
Constructs a MultiTable for decomposing a into sparse form and computing rotation components for Σ₀(a...
Definition sha256.hpp:604
BasicTable generate_choose_normalization_table(BasicTableId id, const size_t table_index)
Generates a BasicTable for normalizing choose sparse digits.
Definition sha256.hpp:295
MultiTable get_witness_extension_output_table(const MultiTableId id=SHA256_WITNESS_OUTPUT)
Constructs a MultiTable for normalizing witness extension sparse results back to normal form.
Definition sha256.hpp:321
BasicTable generate_majority_normalization_table(BasicTableId id, const size_t table_index)
Generates a BasicTable for normalizing majority sparse digits.
Definition sha256.hpp:309
MultiTable get_choose_output_table(const MultiTableId id=SHA256_CH_OUTPUT)
Constructs a MultiTable for normalizing choose sparse results back to normal form.
Definition sha256.hpp:344
MultiTable get_choose_input_table(const MultiTableId id=SHA256_CH_INPUT)
Constructs a MultiTable for decomposing e into sparse form and computing rotation components for Σ₁(e...
Definition sha256.hpp:526
MultiTable get_majority_output_table(const MultiTableId id=SHA256_MAJ_OUTPUT)
Constructs a MultiTable for normalizing majority sparse results back to normal form.
Definition sha256.hpp:366
BasicTable generate_witness_extension_normalization_table(BasicTableId id, const size_t table_index)
Generates a BasicTable for normalizing witness extension sparse digits.
Definition sha256.hpp:281
BasicTable generate_xor_rotate_table(BasicTableId id, const size_t table_index)
Definition uint.hpp:22
BasicTable generate_and_rotate_table(BasicTableId id, const size_t table_index)
Definition uint.hpp:54
@ BLAKE_XOR_ROTATE0
Definition types.hpp:64
@ BLAKE_XOR_ROTATE0_SLICE5_MOD4
Definition types.hpp:65
@ KECCAK_THETA
Definition types.hpp:76
@ SHA256_WITNESS_SLICE_8_ROTATE_7
Definition types.hpp:41
@ KECCAK_INPUT
Definition types.hpp:75
@ KECCAK_RHO_5
Definition types.hpp:84
@ UINT_AND_SLICE_6_ROTATE_0
Definition types.hpp:53
@ SECP256K1_XYPRIME_ENDO_BASIC
Definition types.hpp:63
@ UINT_AND_SLICE_4_ROTATE_0
Definition types.hpp:55
@ UINT_XOR_SLICE_4_ROTATE_0
Definition types.hpp:52
@ KECCAK_RHO_4
Definition types.hpp:83
@ AES_SBOX_MAP
Definition types.hpp:36
@ KECCAK_RHO_6
Definition types.hpp:85
@ SHA256_BASE28
Definition types.hpp:45
@ SHA256_BASE16_ROTATE2
Definition types.hpp:49
@ AES_SPARSE_MAP
Definition types.hpp:35
@ SECP256K1_YLO_BASIC
Definition types.hpp:58
@ SHA256_CH_NORMALIZE
Definition types.hpp:43
@ UINT_XOR_SLICE_6_ROTATE_0
Definition types.hpp:50
@ FIXED_BASE_3_0
Definition types.hpp:72
@ SHA256_WITNESS_SLICE_3
Definition types.hpp:39
@ SHA256_MAJ_NORMALIZE
Definition types.hpp:44
@ AES_SPARSE_NORMALIZE
Definition types.hpp:37
@ SHA256_BASE28_ROTATE6
Definition types.hpp:46
@ UINT_AND_SLICE_2_ROTATE_0
Definition types.hpp:54
@ SECP256K1_XYPRIME_BASIC
Definition types.hpp:60
@ HONK_DUMMY_BASIC2
Definition types.hpp:74
@ SECP256K1_XLO_ENDO_BASIC
Definition types.hpp:61
@ SECP256K1_XLO_BASIC
Definition types.hpp:56
@ FIXED_BASE_0_0
Definition types.hpp:69
@ KECCAK_RHO_7
Definition types.hpp:86
@ SHA256_BASE16
Definition types.hpp:48
@ KECCAK_RHO_1
Definition types.hpp:80
@ KECCAK_OUTPUT
Definition types.hpp:79
@ SECP256K1_XHI_ENDO_BASIC
Definition types.hpp:62
@ BLAKE_XOR_ROTATE1
Definition types.hpp:66
@ KECCAK_RHO_8
Definition types.hpp:87
@ SHA256_WITNESS_SLICE_7_ROTATE_4
Definition types.hpp:40
@ SECP256K1_YHI_BASIC
Definition types.hpp:59
@ FIXED_BASE_2_0
Definition types.hpp:71
@ FIXED_BASE_1_0
Definition types.hpp:70
@ SHA256_WITNESS_NORMALIZE
Definition types.hpp:38
@ SHA256_WITNESS_SLICE_14_ROTATE_1
Definition types.hpp:42
@ SECP256K1_XHI_BASIC
Definition types.hpp:57
@ KECCAK_RHO_3
Definition types.hpp:82
@ UINT_XOR_SLICE_2_ROTATE_0
Definition types.hpp:51
@ BLAKE_XOR_ROTATE2
Definition types.hpp:67
@ BLAKE_XOR_ROTATE4
Definition types.hpp:68
@ HONK_DUMMY_BASIC1
Definition types.hpp:73
@ KECCAK_RHO_2
Definition types.hpp:81
@ SHA256_BASE28_ROTATE3
Definition types.hpp:47
ReadData< bb::fr > get_lookup_accumulators(const MultiTableId id, const fr &key_a, const fr &key_b, const bool is_2_to_1_lookup)
Given a table ID and the key(s) for a key-value lookup, return the lookup accumulators.
@ KECCAK_FORMAT_INPUT
Definition types.hpp:128
@ SECP256K1_XLO
Definition types.hpp:113
@ BLAKE_XOR_ROTATE_16
Definition types.hpp:122
@ AES_NORMALIZE
Definition types.hpp:98
@ KECCAK_FORMAT_OUTPUT
Definition types.hpp:129
@ SECP256K1_XYPRIME
Definition types.hpp:117
@ SECP256K1_XYPRIME_ENDO
Definition types.hpp:120
@ HONK_DUMMY_MULTI
Definition types.hpp:125
@ SECP256K1_XLO_ENDO
Definition types.hpp:118
@ FIXED_BASE_RIGHT_HI
Definition types.hpp:104
@ FIXED_BASE_LEFT_LO
Definition types.hpp:101
@ KECCAK_NORMALIZE_AND_ROTATE
Definition types.hpp:130
@ SHA256_WITNESS_INPUT
Definition types.hpp:96
@ SHA256_CH_INPUT
Definition types.hpp:92
@ SHA256_MAJ_OUTPUT
Definition types.hpp:95
@ KECCAK_CHI_OUTPUT
Definition types.hpp:127
@ SHA256_CH_OUTPUT
Definition types.hpp:93
@ FIXED_BASE_LEFT_HI
Definition types.hpp:102
@ BLAKE_XOR_ROTATE_7
Definition types.hpp:124
@ SECP256K1_XHI_ENDO
Definition types.hpp:119
@ SHA256_WITNESS_OUTPUT
Definition types.hpp:97
@ SECP256K1_XHI
Definition types.hpp:114
@ SECP256K1_YLO
Definition types.hpp:115
@ SHA256_MAJ_INPUT
Definition types.hpp:94
@ BLAKE_XOR_ROTATE_8
Definition types.hpp:123
@ KECCAK_THETA_OUTPUT
Definition types.hpp:126
@ SECP256K1_YHI
Definition types.hpp:116
@ FIXED_BASE_RIGHT_LO
Definition types.hpp:103
BasicTable create_basic_table(const BasicTableId id, const size_t index)
const MultiTable & get_multitable(const MultiTableId id)
Return the multitable with the provided ID; construct all MultiTables if not constructed already.
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Plookup tables for SHA-256 using sparse form representation.
Definition types.hpp:286
A basic table from which we can perform lookups (for example, an xor table)
Definition types.hpp:285
Container for managing multiple BasicTables plus the data needed to combine basic table outputs (e....
Definition types.hpp:147
void throw_or_abort(std::string const &err)