8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_BC_RETRIEVAL_CONTRACT_INSTANCE_RETRIEVAL";
22 static constexpr Column COUNTS = Column::lookup_bc_retrieval_contract_instance_retrieval_counts;
23 static constexpr Column INVERSES = Column::lookup_bc_retrieval_contract_instance_retrieval_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::bc_retrieval_address,
26 ColumnAndShifts::bc_retrieval_current_class_id,
27 ColumnAndShifts::bc_retrieval_instance_exists,
28 ColumnAndShifts::bc_retrieval_public_data_tree_root,
29 ColumnAndShifts::bc_retrieval_nullifier_tree_root
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
32 ColumnAndShifts::contract_instance_retrieval_address,
33 ColumnAndShifts::contract_instance_retrieval_current_class_id,
34 ColumnAndShifts::contract_instance_retrieval_exists,
35 ColumnAndShifts::contract_instance_retrieval_public_data_tree_root,
36 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_root
42template <
typename FF_>
49 static constexpr std::string_view
NAME =
"LOOKUP_BC_RETRIEVAL_CLASS_ID_DERIVATION";
54 static constexpr Column COUNTS = Column::lookup_bc_retrieval_class_id_derivation_counts;
55 static constexpr Column INVERSES = Column::lookup_bc_retrieval_class_id_derivation_inv;
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
57 ColumnAndShifts::bc_retrieval_current_class_id,
58 ColumnAndShifts::bc_retrieval_artifact_hash,
59 ColumnAndShifts::bc_retrieval_private_functions_root,
60 ColumnAndShifts::bc_retrieval_bytecode_id
62 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
63 ColumnAndShifts::class_id_derivation_class_id,
64 ColumnAndShifts::class_id_derivation_artifact_hash,
65 ColumnAndShifts::class_id_derivation_private_functions_root,
66 ColumnAndShifts::class_id_derivation_public_bytecode_commitment
72template <
typename FF_>
79 static constexpr std::string_view
NAME =
"LOOKUP_BC_RETRIEVAL_IS_NEW_CLASS_CHECK";
84 static constexpr Column COUNTS = Column::lookup_bc_retrieval_is_new_class_check_counts;
85 static constexpr Column INVERSES = Column::lookup_bc_retrieval_is_new_class_check_inv;
86 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
87 ColumnAndShifts::bc_retrieval_is_new_class,
88 ColumnAndShifts::bc_retrieval_current_class_id,
89 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_root,
90 ColumnAndShifts::bc_retrieval_retrieved_bytecodes_tree_height,
91 ColumnAndShifts::precomputed_zero
93 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
94 ColumnAndShifts::indexed_tree_check_not_exists,
95 ColumnAndShifts::indexed_tree_check_value,
96 ColumnAndShifts::indexed_tree_check_root,
97 ColumnAndShifts::indexed_tree_check_tree_height,
98 ColumnAndShifts::indexed_tree_check_sel_silo
104template <
typename FF_>
111 static constexpr std::string_view
NAME =
"LOOKUP_BC_RETRIEVAL_RETRIEVED_BYTECODES_INSERTION";
116 static constexpr Column COUNTS = Column::lookup_bc_retrieval_retrieved_bytecodes_insertion_counts;
117 static constexpr Column INVERSES = Column::lookup_bc_retrieval_retrieved_bytecodes_insertion_inv;
118 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
119 ColumnAndShifts::bc_retrieval_current_class_id,
120 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_root,
121 ColumnAndShifts::bc_retrieval_next_retrieved_bytecodes_tree_root,
122 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_size,
123 ColumnAndShifts::bc_retrieval_next_retrieved_bytecodes_tree_size,
124 ColumnAndShifts::bc_retrieval_retrieved_bytecodes_tree_height,
125 ColumnAndShifts::precomputed_zero
127 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
128 ColumnAndShifts::indexed_tree_check_value,
129 ColumnAndShifts::indexed_tree_check_root,
130 ColumnAndShifts::indexed_tree_check_write_root,
131 ColumnAndShifts::indexed_tree_check_tree_size_before_write,
132 ColumnAndShifts::indexed_tree_check_tree_size_after_write,
133 ColumnAndShifts::indexed_tree_check_tree_height,
134 ColumnAndShifts::indexed_tree_check_sel_silo
140template <
typename FF_>
static constexpr Column SRC_SELECTOR
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column INVERSES
static constexpr std::string_view RELATION_NAME
static constexpr Column COUNTS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr Column COUNTS
static constexpr Column DST_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column SRC_SELECTOR
static constexpr Column COUNTS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr Column SRC_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column DST_SELECTOR
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr std::string_view NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column DST_SELECTOR
Settings to be passed ot GenericLookupRelationImpl.