Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_bc_retrieval.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
17 static constexpr std::string_view NAME = "LOOKUP_BC_RETRIEVAL_CONTRACT_INSTANCE_RETRIEVAL";
18 static constexpr std::string_view RELATION_NAME = "bc_retrieval";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::bc_retrieval_sel;
21 static constexpr Column DST_SELECTOR = Column::contract_instance_retrieval_sel;
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
30 };
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
37 };
38};
39
42template <typename FF_>
45
47
49 static constexpr std::string_view NAME = "LOOKUP_BC_RETRIEVAL_CLASS_ID_DERIVATION";
50 static constexpr std::string_view RELATION_NAME = "bc_retrieval";
51 static constexpr size_t LOOKUP_TUPLE_SIZE = 4;
52 static constexpr Column SRC_SELECTOR = Column::bc_retrieval_should_retrieve;
53 static constexpr Column DST_SELECTOR = Column::class_id_derivation_sel;
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
61 };
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
67 };
68};
69
72template <typename FF_>
75
77
79 static constexpr std::string_view NAME = "LOOKUP_BC_RETRIEVAL_IS_NEW_CLASS_CHECK";
80 static constexpr std::string_view RELATION_NAME = "bc_retrieval";
81 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
82 static constexpr Column SRC_SELECTOR = Column::bc_retrieval_instance_exists;
83 static constexpr Column DST_SELECTOR = Column::retrieved_bytecodes_tree_check_sel;
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_current_class_id,
88 ColumnAndShifts::bc_retrieval_is_new_class,
89 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_root
90 };
91 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
92 ColumnAndShifts::retrieved_bytecodes_tree_check_class_id,
93 ColumnAndShifts::retrieved_bytecodes_tree_check_leaf_not_exists,
94 ColumnAndShifts::retrieved_bytecodes_tree_check_root
95 };
96};
97
100template <typename FF_>
103
105
107 static constexpr std::string_view NAME = "LOOKUP_BC_RETRIEVAL_RETRIEVED_BYTECODES_INSERTION";
108 static constexpr std::string_view RELATION_NAME = "bc_retrieval";
109 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
110 static constexpr Column SRC_SELECTOR = Column::bc_retrieval_should_retrieve;
111 static constexpr Column DST_SELECTOR = Column::retrieved_bytecodes_tree_check_sel;
112 static constexpr Column COUNTS = Column::lookup_bc_retrieval_retrieved_bytecodes_insertion_counts;
113 static constexpr Column INVERSES = Column::lookup_bc_retrieval_retrieved_bytecodes_insertion_inv;
114 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
115 ColumnAndShifts::bc_retrieval_current_class_id,
116 ColumnAndShifts::bc_retrieval_should_retrieve,
117 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_root,
118 ColumnAndShifts::bc_retrieval_prev_retrieved_bytecodes_tree_size,
119 ColumnAndShifts::bc_retrieval_next_retrieved_bytecodes_tree_root,
120 ColumnAndShifts::bc_retrieval_next_retrieved_bytecodes_tree_size
121 };
122 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
123 ColumnAndShifts::retrieved_bytecodes_tree_check_class_id,
124 ColumnAndShifts::retrieved_bytecodes_tree_check_write,
125 ColumnAndShifts::retrieved_bytecodes_tree_check_root,
126 ColumnAndShifts::retrieved_bytecodes_tree_check_tree_size_before_write,
127 ColumnAndShifts::retrieved_bytecodes_tree_check_write_root,
128 ColumnAndShifts::retrieved_bytecodes_tree_check_tree_size_after_write
129 };
130};
131
134template <typename FF_>
137
138} // namespace bb::avm2
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
Settings to be passed ot GenericLookupRelationImpl.