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: dd03c4a23ab067274b4964cacb36d1545f73fb14}
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 // All MultiTable vectors must be consistently sized
162 BB_ASSERT_EQ(multi_table.column_1_coefficients.size(), num_lookups, "MultiTable coefficient/table count mismatch");
163 BB_ASSERT_EQ(multi_table.get_table_values.size(), num_lookups, "MultiTable get_table_values/table count mismatch");
164 BB_ASSERT_EQ(multi_table.slice_sizes.size(), num_lookups, "MultiTable slice_sizes/table count mismatch");
165
166 ReadData<bb::fr> lookup;
167 const auto key_a_slices = numeric::slice_input_using_variable_bases(key_a, multi_table.slice_sizes);
168 const auto key_b_slices = numeric::slice_input_using_variable_bases(key_b, multi_table.slice_sizes);
169
170 std::vector<fr> column_1_raw_values;
171 std::vector<fr> column_2_raw_values;
172 std::vector<fr> column_3_raw_values;
173
174 for (size_t i = 0; i < num_lookups; ++i) {
175 // compute the value(s) corresponding to the key(s) using the i-th basic table query function
176 const auto values = multi_table.get_table_values[i]({ key_a_slices[i], key_b_slices[i] });
177 // store all query data in raw columns and key entry
178 column_1_raw_values.emplace_back(key_a_slices[i]);
179 column_2_raw_values.emplace_back(is_2_to_1_lookup ? key_b_slices[i] : values[0]);
180 column_3_raw_values.emplace_back(is_2_to_1_lookup ? values[0] : values[1]);
181
182 // Store the lookup entries for use in constructing the sorted table/lookup polynomials later on
183 const BasicTable::LookupEntry lookup_entry{ { key_a_slices[i], key_b_slices[i] }, values };
184 lookup.lookup_entries.emplace_back(lookup_entry);
185 }
186
187 lookup[C1].resize(num_lookups);
188 lookup[C2].resize(num_lookups);
189 lookup[C3].resize(num_lookups);
190
230 lookup[C1][num_lookups - 1] = column_1_raw_values[num_lookups - 1];
231 lookup[C2][num_lookups - 1] = column_2_raw_values[num_lookups - 1];
232 lookup[C3][num_lookups - 1] = column_3_raw_values[num_lookups - 1];
233
234 for (size_t i = num_lookups - 1; i > 0; --i) {
235 lookup[C1][i - 1] = column_1_raw_values[i - 1] + lookup[C1][i] * multi_table.column_1_step_sizes[i];
236 lookup[C2][i - 1] = column_2_raw_values[i - 1] + lookup[C2][i] * multi_table.column_2_step_sizes[i];
237 lookup[C3][i - 1] = column_3_raw_values[i - 1] + lookup[C3][i] * multi_table.column_3_step_sizes[i];
238 }
239 return lookup;
240}
241
243{
244 // we have >50 basic fixed base tables so we match with some logic instead of a switch statement
245 auto id_var = static_cast<size_t>(id);
246 if (id_var >= static_cast<size_t>(FIXED_BASE_0_0) && id_var < static_cast<size_t>(FIXED_BASE_1_0)) {
247 return fixed_base::table::generate_basic_fixed_base_table<0>(
248 id, index, id_var - static_cast<size_t>(FIXED_BASE_0_0));
249 }
250 if (id_var >= static_cast<size_t>(FIXED_BASE_1_0) && id_var < static_cast<size_t>(FIXED_BASE_2_0)) {
251 return fixed_base::table::generate_basic_fixed_base_table<1>(
252 id, index, id_var - static_cast<size_t>(FIXED_BASE_1_0));
253 }
254 if (id_var >= static_cast<size_t>(FIXED_BASE_2_0) && id_var < static_cast<size_t>(FIXED_BASE_3_0)) {
255 return fixed_base::table::generate_basic_fixed_base_table<2>(
256 id, index, id_var - static_cast<size_t>(FIXED_BASE_2_0));
257 }
258 if (id_var >= static_cast<size_t>(FIXED_BASE_3_0) && id_var < static_cast<size_t>(HONK_DUMMY_BASIC1)) {
259 return fixed_base::table::generate_basic_fixed_base_table<3>(
260 id, index, id_var - static_cast<size_t>(FIXED_BASE_3_0));
261 }
262 switch (id) {
263 case AES_SPARSE_MAP: {
264 return sparse_tables::generate_sparse_table_with_rotation<9, 8, 0>(AES_SPARSE_MAP, index);
265 }
266 case AES_SBOX_MAP: {
268 }
271 }
274 }
276 return sparse_tables::generate_sparse_table_with_rotation<16, 3, 0>(SHA256_WITNESS_SLICE_3, index);
277 }
279 return sparse_tables::generate_sparse_table_with_rotation<16, 7, 4>(SHA256_WITNESS_SLICE_7_ROTATE_4, index);
280 }
282 return sparse_tables::generate_sparse_table_with_rotation<16, 8, 7>(SHA256_WITNESS_SLICE_8_ROTATE_7, index);
283 }
285 return sparse_tables::generate_sparse_table_with_rotation<16, 14, 1>(SHA256_WITNESS_SLICE_14_ROTATE_1, index);
286 }
287 case SHA256_CH_NORMALIZE: {
289 }
292 }
293 case SHA256_BASE28: {
294 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 0>(SHA256_BASE28, index);
295 }
297 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 6>(SHA256_BASE28_ROTATE6, index);
298 }
300 return sparse_tables::generate_sparse_table_with_rotation<28, 11, 3>(SHA256_BASE28_ROTATE3, index);
301 }
302 case SHA256_BASE16: {
303 return sparse_tables::generate_sparse_table_with_rotation<16, 11, 0>(SHA256_BASE16, index);
304 }
306 return sparse_tables::generate_sparse_table_with_rotation<16, 11, 2>(SHA256_BASE16_ROTATE2, index);
307 }
309 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/6, /*num_rotated_output_bits=*/0>(
311 }
313 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/4, /*num_rotated_output_bits=*/0>(
315 }
317 return uint_tables::generate_xor_rotate_table</*bits_per_slice=*/2, /*num_rotated_output_bits=*/0>(
319 }
321 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/6, /*num_rotated_output_bits=*/0>(
323 }
325 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/4, /*num_rotated_output_bits=*/0>(
327 }
329 return uint_tables::generate_and_rotate_table</*bits_per_slice=*/2, /*num_rotated_output_bits=*/0>(
331 }
332 case SECP256K1_XLO_BASIC: {
334 }
335 case SECP256K1_XHI_BASIC: {
337 }
338 case SECP256K1_YLO_BASIC: {
340 }
341 case SECP256K1_YHI_BASIC: {
343 }
346 index);
347 }
351 }
355 }
359 }
360 case BLAKE_XOR_ROTATE0: {
361 return blake2s_tables::generate_xor_rotate_table<6, 0>(BLAKE_XOR_ROTATE0, index);
362 }
364 return blake2s_tables::generate_xor_rotate_table<5, 0, true>(BLAKE_XOR_ROTATE0_SLICE5_MOD4, index);
365 }
366 case BLAKE_XOR_ROTATE2: {
367 return blake2s_tables::generate_xor_rotate_table<6, 2>(BLAKE_XOR_ROTATE2, index);
368 }
369 case BLAKE_XOR_ROTATE1: {
370 return blake2s_tables::generate_xor_rotate_table<6, 1>(BLAKE_XOR_ROTATE1, index);
371 }
372 case BLAKE_XOR_ROTATE4: {
373 return blake2s_tables::generate_xor_rotate_table<6, 4>(BLAKE_XOR_ROTATE4, index);
374 }
375 case HONK_DUMMY_BASIC1: {
376 return dummy_tables::generate_honk_dummy_table<HONK_DUMMY_BASIC1>(HONK_DUMMY_BASIC1, index);
377 }
378 case HONK_DUMMY_BASIC2: {
379 return dummy_tables::generate_honk_dummy_table<HONK_DUMMY_BASIC2>(HONK_DUMMY_BASIC2, index);
380 }
381 case KECCAK_INPUT: {
383 }
384 case KECCAK_THETA: {
386 }
387 case KECCAK_CHI: {
389 }
390 case KECCAK_OUTPUT: {
392 }
393 case KECCAK_RHO_1: {
395 }
396 case KECCAK_RHO_2: {
398 }
399 case KECCAK_RHO_3: {
401 }
402 case KECCAK_RHO_4: {
404 }
405 case KECCAK_RHO_5: {
407 }
408 case KECCAK_RHO_6: {
410 }
411 case KECCAK_RHO_7: {
413 }
414 case KECCAK_RHO_8: {
416 }
417 default: {
418 throw_or_abort("table id does not exist");
419 return sparse_tables::generate_sparse_table_with_rotation<9, 8, 0>(AES_SPARSE_MAP, index);
420 }
421 }
422}
423} // namespace bb::plookup
#define BB_ASSERT_EQ(actual, expected,...)
Definition assert.hpp:83
Container for lookup accumulator values and table reads.
Definition types.hpp:360
std::vector< BasicTable::LookupEntry > lookup_entries
Definition types.hpp:366
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)
Decompose a uint256_t using a different base for each digit position (least-significant first)....
MultiTable get_aes_input_table(const MultiTableId id=AES_INPUT)
Creates a MultiTable for converting a 128-bit AES input block into 16 sparse-form bytes.
Definition aes128.hpp:165
BasicTable generate_aes_sparse_normalization_table(BasicTableId id, const size_t table_index)
Generates a BasicTable for normalizing 4 sparse digits back to valid sparse form.
Definition aes128.hpp:60
MultiTable get_aes_normalization_table(const MultiTableId id=AES_NORMALIZE)
Creates a MultiTable for normalizing 8 sparse digits back to binary digits.
Definition aes128.hpp:116
BasicTable generate_aes_sbox_table(BasicTableId id, const size_t table_index)
Generates a plookup table for AES S-box substitution with precomputed MixColumns values.
Definition aes128.hpp:241
MultiTable get_aes_sbox_table(const MultiTableId id=AES_SBOX)
Definition aes128.hpp:267
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:84
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:131
@ SECP256K1_XLO
Definition types.hpp:116
@ BLAKE_XOR_ROTATE_16
Definition types.hpp:125
@ AES_NORMALIZE
Definition types.hpp:101
@ KECCAK_FORMAT_OUTPUT
Definition types.hpp:132
@ SECP256K1_XYPRIME
Definition types.hpp:120
@ SECP256K1_XYPRIME_ENDO
Definition types.hpp:123
@ HONK_DUMMY_MULTI
Definition types.hpp:128
@ SECP256K1_XLO_ENDO
Definition types.hpp:121
@ FIXED_BASE_RIGHT_HI
Definition types.hpp:107
@ FIXED_BASE_LEFT_LO
Definition types.hpp:104
@ KECCAK_NORMALIZE_AND_ROTATE
Definition types.hpp:133
@ SHA256_WITNESS_INPUT
Definition types.hpp:99
@ SHA256_CH_INPUT
Definition types.hpp:95
@ SHA256_MAJ_OUTPUT
Definition types.hpp:98
@ KECCAK_CHI_OUTPUT
Definition types.hpp:130
@ SHA256_CH_OUTPUT
Definition types.hpp:96
@ FIXED_BASE_LEFT_HI
Definition types.hpp:105
@ BLAKE_XOR_ROTATE_7
Definition types.hpp:127
@ SECP256K1_XHI_ENDO
Definition types.hpp:122
@ SHA256_WITNESS_OUTPUT
Definition types.hpp:100
@ SECP256K1_XHI
Definition types.hpp:117
@ SECP256K1_YLO
Definition types.hpp:118
@ SHA256_MAJ_INPUT
Definition types.hpp:97
@ BLAKE_XOR_ROTATE_8
Definition types.hpp:126
@ KECCAK_THETA_OUTPUT
Definition types.hpp:129
@ SECP256K1_YHI
Definition types.hpp:119
@ FIXED_BASE_RIGHT_LO
Definition types.hpp:106
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:289
A basic table from which we can perform lookups (for example, an xor table)
Definition types.hpp:288
Container for managing multiple BasicTables plus the data needed to combine basic table outputs (e....
Definition types.hpp:150
void throw_or_abort(std::string const &err)