Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_emit_notehash.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_EMIT_NOTEHASH_NOTEHASH_TREE_WRITE";
18 static constexpr std::string_view RELATION_NAME = "emit_notehash";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 9;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_write_note_hash;
21 static constexpr Column DST_SELECTOR = Column::note_hash_tree_check_write;
22 static constexpr Column COUNTS = Column::lookup_emit_notehash_notehash_tree_write_counts;
23 static constexpr Column INVERSES = Column::lookup_emit_notehash_notehash_tree_write_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_register_0_,
26 ColumnAndShifts::execution_prev_note_hash_tree_size,
27 ColumnAndShifts::execution_prev_note_hash_tree_root,
28 ColumnAndShifts::execution_sel_write_note_hash,
29 ColumnAndShifts::execution_contract_address,
30 ColumnAndShifts::execution_sel_write_note_hash,
31 ColumnAndShifts::execution_prev_num_note_hashes_emitted,
32 ColumnAndShifts::execution_discard,
33 ColumnAndShifts::execution_note_hash_tree_root
34 };
35 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
36 ColumnAndShifts::note_hash_tree_check_note_hash, ColumnAndShifts::note_hash_tree_check_leaf_index,
37 ColumnAndShifts::note_hash_tree_check_prev_root, ColumnAndShifts::note_hash_tree_check_should_silo,
38 ColumnAndShifts::note_hash_tree_check_address, ColumnAndShifts::note_hash_tree_check_should_unique,
39 ColumnAndShifts::note_hash_tree_check_note_hash_index, ColumnAndShifts::note_hash_tree_check_discard,
40 ColumnAndShifts::note_hash_tree_check_next_root
41 };
42};
43
46template <typename FF_>
49
50} // 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