Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_class_id_derivation.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_CLASS_ID_DERIVATION_CLASS_ID_POSEIDON2_0";
18 static constexpr std::string_view RELATION_NAME = "class_id_derivation";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::class_id_derivation_sel;
21 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_start;
22 static constexpr Column COUNTS = Column::lookup_class_id_derivation_class_id_poseidon2_0_counts;
23 static constexpr Column INVERSES = Column::lookup_class_id_derivation_class_id_poseidon2_0_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::class_id_derivation_gen_index_contract_leaf,
26 ColumnAndShifts::class_id_derivation_artifact_hash,
27 ColumnAndShifts::class_id_derivation_private_function_root,
28 ColumnAndShifts::class_id_derivation_class_id,
29 ColumnAndShifts::class_id_derivation_const_two
30 };
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
32 ColumnAndShifts::poseidon2_hash_input_0,
33 ColumnAndShifts::poseidon2_hash_input_1,
34 ColumnAndShifts::poseidon2_hash_input_2,
35 ColumnAndShifts::poseidon2_hash_output,
36 ColumnAndShifts::poseidon2_hash_num_perm_rounds_rem
37 };
38};
39
42template <typename FF_>
45
47
49 static constexpr std::string_view NAME = "LOOKUP_CLASS_ID_DERIVATION_CLASS_ID_POSEIDON2_1";
50 static constexpr std::string_view RELATION_NAME = "class_id_derivation";
51 static constexpr size_t LOOKUP_TUPLE_SIZE = 4;
52 static constexpr Column SRC_SELECTOR = Column::class_id_derivation_sel;
53 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_end;
54 static constexpr Column COUNTS = Column::lookup_class_id_derivation_class_id_poseidon2_1_counts;
55 static constexpr Column INVERSES = Column::lookup_class_id_derivation_class_id_poseidon2_1_inv;
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
57 ColumnAndShifts::class_id_derivation_public_bytecode_commitment,
58 ColumnAndShifts::precomputed_zero,
59 ColumnAndShifts::precomputed_zero,
60 ColumnAndShifts::class_id_derivation_class_id
61 };
62 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
63 ColumnAndShifts::poseidon2_hash_input_0,
64 ColumnAndShifts::poseidon2_hash_input_1,
65 ColumnAndShifts::poseidon2_hash_input_2,
66 ColumnAndShifts::poseidon2_hash_output
67 };
68};
69
72template <typename FF_>
75
76} // 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 > DST_COLUMNS
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 > SRC_COLUMNS