Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_keccak_memory.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_KECCAK_MEMORY_SLICE_TO_MEM";
18 static constexpr std::string_view RELATION_NAME = "keccak_memory";
19 static constexpr size_t COLUMNS_PER_SET = 6;
20 static constexpr Column SRC_SELECTOR = Column::keccak_memory_sel;
21 static constexpr Column DST_SELECTOR = Column::memory_sel_keccak;
22 static constexpr Column INVERSES = Column::perm_keccak_memory_slice_to_mem_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::keccak_memory_clk, ColumnAndShifts::keccak_memory_space_id,
25 ColumnAndShifts::keccak_memory_addr, ColumnAndShifts::keccak_memory_val00,
26 ColumnAndShifts::keccak_memory_tag, ColumnAndShifts::keccak_memory_rw
27 };
28 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
29 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
30 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
31 };
32};
33
35template <typename FF_>
38
39} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS