Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_contract_instance_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_CONTRACT_INSTANCE_RETRIEVAL_DEPLOYMENT_NULLIFIER_READ";
18 static constexpr std::string_view RELATION_NAME = "contract_instance_retrieval";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::contract_instance_retrieval_sel;
21 static constexpr Column DST_SELECTOR = Column::nullifier_check_sel;
22 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_deployment_nullifier_read_counts;
23 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_deployment_nullifier_read_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::contract_instance_retrieval_exists,
26 ColumnAndShifts::contract_instance_retrieval_address,
27 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_root,
28 ColumnAndShifts::contract_instance_retrieval_deployer_protocol_contract_address,
29 ColumnAndShifts::contract_instance_retrieval_sel
30 };
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
32 ColumnAndShifts::nullifier_check_exists,
33 ColumnAndShifts::nullifier_check_nullifier,
34 ColumnAndShifts::nullifier_check_root,
35 ColumnAndShifts::nullifier_check_address,
36 ColumnAndShifts::nullifier_check_should_silo
37 };
38};
39
42template <typename FF_>
45
47
49 static constexpr std::string_view NAME = "LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_ADDRESS_DERIVATION";
50 static constexpr std::string_view RELATION_NAME = "contract_instance_retrieval";
51 static constexpr size_t LOOKUP_TUPLE_SIZE = 13;
52 static constexpr Column SRC_SELECTOR = Column::contract_instance_retrieval_exists;
53 static constexpr Column DST_SELECTOR = Column::address_derivation_sel;
54 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_address_derivation_counts;
55 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_address_derivation_inv;
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
57 ColumnAndShifts::contract_instance_retrieval_address,
58 ColumnAndShifts::contract_instance_retrieval_salt,
59 ColumnAndShifts::contract_instance_retrieval_deployer_addr,
60 ColumnAndShifts::contract_instance_retrieval_original_class_id,
61 ColumnAndShifts::contract_instance_retrieval_init_hash,
62 ColumnAndShifts::contract_instance_retrieval_nullifier_key_x,
63 ColumnAndShifts::contract_instance_retrieval_nullifier_key_y,
64 ColumnAndShifts::contract_instance_retrieval_incoming_viewing_key_x,
65 ColumnAndShifts::contract_instance_retrieval_incoming_viewing_key_y,
66 ColumnAndShifts::contract_instance_retrieval_outgoing_viewing_key_x,
67 ColumnAndShifts::contract_instance_retrieval_outgoing_viewing_key_y,
68 ColumnAndShifts::contract_instance_retrieval_tagging_key_x,
69 ColumnAndShifts::contract_instance_retrieval_tagging_key_y
70 };
71 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
72 ColumnAndShifts::address_derivation_address,
73 ColumnAndShifts::address_derivation_salt,
74 ColumnAndShifts::address_derivation_deployer_addr,
75 ColumnAndShifts::address_derivation_class_id,
76 ColumnAndShifts::address_derivation_init_hash,
77 ColumnAndShifts::address_derivation_nullifier_key_x,
78 ColumnAndShifts::address_derivation_nullifier_key_y,
79 ColumnAndShifts::address_derivation_incoming_viewing_key_x,
80 ColumnAndShifts::address_derivation_incoming_viewing_key_y,
81 ColumnAndShifts::address_derivation_outgoing_viewing_key_x,
82 ColumnAndShifts::address_derivation_outgoing_viewing_key_y,
83 ColumnAndShifts::address_derivation_tagging_key_x,
84 ColumnAndShifts::address_derivation_tagging_key_y
85 };
86};
87
90template <typename FF_>
93
95
97 static constexpr std::string_view NAME = "LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_UPDATE_CHECK";
98 static constexpr std::string_view RELATION_NAME = "contract_instance_retrieval";
99 static constexpr size_t LOOKUP_TUPLE_SIZE = 4;
100 static constexpr Column SRC_SELECTOR = Column::contract_instance_retrieval_exists;
101 static constexpr Column DST_SELECTOR = Column::update_check_sel;
102 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_update_check_counts;
103 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_update_check_inv;
104 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
105 ColumnAndShifts::contract_instance_retrieval_address,
106 ColumnAndShifts::contract_instance_retrieval_current_class_id,
107 ColumnAndShifts::contract_instance_retrieval_original_class_id,
108 ColumnAndShifts::contract_instance_retrieval_public_data_tree_root
109 };
110 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
111 ColumnAndShifts::update_check_address,
112 ColumnAndShifts::update_check_current_class_id,
113 ColumnAndShifts::update_check_original_class_id,
114 ColumnAndShifts::update_check_public_data_tree_root
115 };
116};
117
120template <typename FF_>
123
124} // namespace bb::avm2
This file contains the template for the generic lookup that can be specialized to enforce various loo...
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 > SRC_COLUMNS