Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_tx.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 = "PERM_TX_BALANCE_UPDATE";
18 static constexpr std::string_view RELATION_NAME = "tx";
19 static constexpr size_t COLUMNS_PER_SET = 9;
20 static constexpr Column SRC_SELECTOR = Column::tx_is_collect_fee;
21 static constexpr Column DST_SELECTOR = Column::public_data_check_protocol_write;
22 static constexpr Column INVERSES = Column::perm_tx_balance_update_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::tx_fee_payer_new_balance,
25 ColumnAndShifts::tx_fee_juice_contract_address,
26 ColumnAndShifts::tx_fee_juice_balance_slot,
27 ColumnAndShifts::tx_discard,
28 ColumnAndShifts::tx_prev_public_data_tree_root,
29 ColumnAndShifts::tx_next_public_data_tree_root,
30 ColumnAndShifts::tx_prev_public_data_tree_size,
31 ColumnAndShifts::tx_next_public_data_tree_size,
32 ColumnAndShifts::tx_uint32_max
33 };
34 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
35 ColumnAndShifts::public_data_check_value,
36 ColumnAndShifts::public_data_check_address,
37 ColumnAndShifts::public_data_check_slot,
38 ColumnAndShifts::public_data_check_discard,
39 ColumnAndShifts::public_data_check_root,
40 ColumnAndShifts::public_data_check_write_root,
41 ColumnAndShifts::public_data_check_tree_size_before_write,
42 ColumnAndShifts::public_data_check_tree_size_after_write,
43 ColumnAndShifts::public_data_check_clk
44 };
45};
46
48template <typename FF_>
50
51} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
static constexpr std::string_view NAME
Definition perms_tx.hpp:17
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
Definition perms_tx.hpp:34
static constexpr std::string_view RELATION_NAME
Definition perms_tx.hpp:18
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
Definition perms_tx.hpp:23
static constexpr size_t COLUMNS_PER_SET
Definition perms_tx.hpp:19