Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_bc_hashing.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_BC_HASHING_POSEIDON2_HASH";
18 static constexpr std::string_view RELATION_NAME = "bc_hashing";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 8;
20 static constexpr Column SRC_SELECTOR = Column::bc_hashing_sel;
21 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_sel;
22 static constexpr Column COUNTS = Column::lookup_bc_hashing_poseidon2_hash_counts;
23 static constexpr Column INVERSES = Column::lookup_bc_hashing_poseidon2_hash_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::bc_hashing_start, ColumnAndShifts::bc_hashing_end,
26 ColumnAndShifts::bc_hashing_packed_fields_0, ColumnAndShifts::bc_hashing_packed_fields_1,
27 ColumnAndShifts::bc_hashing_packed_fields_2, ColumnAndShifts::bc_hashing_input_len,
28 ColumnAndShifts::bc_hashing_rounds_rem, ColumnAndShifts::bc_hashing_bytecode_id
29 };
30 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
31 ColumnAndShifts::poseidon2_hash_start,
32 ColumnAndShifts::poseidon2_hash_end,
33 ColumnAndShifts::poseidon2_hash_input_0,
34 ColumnAndShifts::poseidon2_hash_input_1,
35 ColumnAndShifts::poseidon2_hash_input_2,
36 ColumnAndShifts::poseidon2_hash_input_len,
37 ColumnAndShifts::poseidon2_hash_num_perm_rounds_rem,
38 ColumnAndShifts::poseidon2_hash_output
39 };
40};
41
43template <typename FF_>
45
46} // namespace bb::avm2
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
Settings to be passed ot GenericLookupRelationImpl.