Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_calldata_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_CALLDATA_HASHING_CD_HASH";
18 static constexpr std::string_view RELATION_NAME = "calldata_hashing";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
20 static constexpr Column SRC_SELECTOR = Column::cd_hashing_sel;
21 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_sel;
22 static constexpr Column COUNTS = Column::lookup_calldata_hashing_cd_hash_counts;
23 static constexpr Column INVERSES = Column::lookup_calldata_hashing_cd_hash_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::cd_hashing_input_0_, ColumnAndShifts::cd_hashing_input_1_, ColumnAndShifts::cd_hashing_input_2_
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::poseidon2_hash_input_0,
29 ColumnAndShifts::poseidon2_hash_input_1,
30 ColumnAndShifts::poseidon2_hash_input_2
31 };
32};
33
35template <typename FF_>
37
39
41 static constexpr std::string_view NAME = "LOOKUP_CALLDATA_HASHING_CD_HASH_END";
42 static constexpr std::string_view RELATION_NAME = "calldata_hashing";
43 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
44 static constexpr Column SRC_SELECTOR = Column::cd_hashing_latch;
45 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_sel;
46 static constexpr Column COUNTS = Column::lookup_calldata_hashing_cd_hash_end_counts;
47 static constexpr Column INVERSES = Column::lookup_calldata_hashing_cd_hash_end_inv;
48 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
49 ColumnAndShifts::cd_hashing_output_hash
50 };
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
52 ColumnAndShifts::poseidon2_hash_output
53 };
54};
55
57template <typename FF_>
60
61} // 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 > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS