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_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
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
40template <
typename FF_>
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";
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
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
70template <
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