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 = 4;
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_temp_constant_for_lookup,
26 ColumnAndShifts::class_id_derivation_artifact_hash,
27 ColumnAndShifts::class_id_derivation_private_function_root,
28 ColumnAndShifts::class_id_derivation_class_id
29 };
30 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
31 ColumnAndShifts::poseidon2_hash_input_0,
32 ColumnAndShifts::poseidon2_hash_input_1,
33 ColumnAndShifts::poseidon2_hash_input_2,
34 ColumnAndShifts::poseidon2_hash_output
35 };
36};
37
40template <typename FF_>
43
45
47 static constexpr std::string_view NAME = "LOOKUP_CLASS_ID_DERIVATION_CLASS_ID_POSEIDON2_1";
48 static constexpr std::string_view RELATION_NAME = "class_id_derivation";
49 static constexpr size_t LOOKUP_TUPLE_SIZE = 4;
50 static constexpr Column SRC_SELECTOR = Column::class_id_derivation_sel;
51 static constexpr Column DST_SELECTOR = Column::poseidon2_hash_end;
52 static constexpr Column COUNTS = Column::lookup_class_id_derivation_class_id_poseidon2_1_counts;
53 static constexpr Column INVERSES = Column::lookup_class_id_derivation_class_id_poseidon2_1_inv;
54 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
55 ColumnAndShifts::class_id_derivation_public_bytecode_commitment,
56 ColumnAndShifts::precomputed_zero,
57 ColumnAndShifts::precomputed_zero,
58 ColumnAndShifts::class_id_derivation_class_id
59 };
60 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
61 ColumnAndShifts::poseidon2_hash_input_0,
62 ColumnAndShifts::poseidon2_hash_input_1,
63 ColumnAndShifts::poseidon2_hash_input_2,
64 ColumnAndShifts::poseidon2_hash_output
65 };
66};
67
70template <typename FF_>
73
74} // 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