8#include "../columns.hpp"
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";
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
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
42template <
typename FF_>
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";
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
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
72template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr Column COUNTS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr Column SRC_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr Column DST_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column INVERSES
static constexpr Column COUNTS