Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_notehash_exists.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_NOTEHASH_EXISTS_NOTE_HASH_LEAF_INDEX_IN_RANGE";
18 static constexpr std::string_view RELATION_NAME = "notehash_exists";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_execute_notehash_exists;
21 static constexpr Column DST_SELECTOR = Column::gt_sel;
22 static constexpr Column COUNTS = Column::lookup_notehash_exists_note_hash_leaf_index_in_range_counts;
23 static constexpr Column INVERSES = Column::lookup_notehash_exists_note_hash_leaf_index_in_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_note_hash_tree_leaf_count,
26 ColumnAndShifts::execution_register_1_,
27 ColumnAndShifts::execution_note_hash_leaf_in_range
28 };
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::gt_input_a,
30 ColumnAndShifts::gt_input_b,
31 ColumnAndShifts::gt_res };
32};
33
36template <typename FF_>
39
41
43 static constexpr std::string_view NAME = "LOOKUP_NOTEHASH_EXISTS_NOTE_HASH_READ";
44 static constexpr std::string_view RELATION_NAME = "notehash_exists";
45 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
46 static constexpr Column SRC_SELECTOR = Column::execution_note_hash_leaf_in_range;
47 static constexpr Column DST_SELECTOR = Column::note_hash_tree_check_sel;
48 static constexpr Column COUNTS = Column::lookup_notehash_exists_note_hash_read_counts;
49 static constexpr Column INVERSES = Column::lookup_notehash_exists_note_hash_read_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
51 ColumnAndShifts::precomputed_zero,
52 ColumnAndShifts::execution_register_0_,
53 ColumnAndShifts::execution_register_1_,
54 ColumnAndShifts::execution_prev_note_hash_tree_root,
55 ColumnAndShifts::execution_register_2_
56 };
57 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
58 ColumnAndShifts::note_hash_tree_check_write,
59 ColumnAndShifts::note_hash_tree_check_note_hash,
60 ColumnAndShifts::note_hash_tree_check_leaf_index,
61 ColumnAndShifts::note_hash_tree_check_prev_root,
62 ColumnAndShifts::note_hash_tree_check_exists
63 };
64};
65
67template <typename FF_>
70
71} // 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 > 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