Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_emit_nullifier.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_NULLIFIER_WRITE_NULLIFIER";
18 static constexpr std::string_view RELATION_NAME = "emit_nullifier";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 9;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_write_nullifier;
21 static constexpr Column DST_SELECTOR = Column::nullifier_check_write;
22 static constexpr Column COUNTS = Column::lookup_emit_nullifier_write_nullifier_counts;
23 static constexpr Column INVERSES = Column::lookup_emit_nullifier_write_nullifier_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_register_0_,
26 ColumnAndShifts::execution_prev_nullifier_tree_root,
27 ColumnAndShifts::execution_sel_opcode_error,
28 ColumnAndShifts::execution_nullifier_tree_root,
29 ColumnAndShifts::execution_prev_nullifier_tree_size,
30 ColumnAndShifts::execution_discard,
31 ColumnAndShifts::execution_prev_num_nullifiers_emitted,
32 ColumnAndShifts::execution_sel_write_nullifier,
33 ColumnAndShifts::execution_contract_address
34 };
35 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
36 ColumnAndShifts::nullifier_check_nullifier,
37 ColumnAndShifts::nullifier_check_root,
38 ColumnAndShifts::nullifier_check_exists,
39 ColumnAndShifts::nullifier_check_write_root,
40 ColumnAndShifts::nullifier_check_tree_size_before_write,
41 ColumnAndShifts::nullifier_check_discard,
42 ColumnAndShifts::nullifier_check_nullifier_index,
43 ColumnAndShifts::nullifier_check_should_silo,
44 ColumnAndShifts::nullifier_check_address
45 };
46};
47
49template <typename FF_>
52
53} // 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