Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_sstore.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_SSTORE_STORAGE_WRITE";
18 static constexpr std::string_view RELATION_NAME = "sstore";
19 static constexpr size_t COLUMNS_PER_SET = 9;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_write_public_data;
21 static constexpr Column DST_SELECTOR = Column::public_data_check_non_protocol_write;
22 static constexpr Column INVERSES = Column::perm_sstore_storage_write_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::execution_register_0_,
25 ColumnAndShifts::execution_contract_address,
26 ColumnAndShifts::execution_register_1_,
27 ColumnAndShifts::execution_discard,
28 ColumnAndShifts::execution_prev_public_data_tree_root,
29 ColumnAndShifts::execution_public_data_tree_root,
30 ColumnAndShifts::execution_prev_public_data_tree_size,
31 ColumnAndShifts::execution_public_data_tree_size,
32 ColumnAndShifts::precomputed_clk
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 RELATION_NAME
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS