8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_NOTEHASH_EXISTS_NOTE_HASH_LEAF_INDEX_IN_RANGE";
22 static constexpr Column COUNTS = Column::lookup_notehash_exists_note_hash_leaf_index_in_range_counts;
23 static constexpr Column INVERSES = Column::lookup_notehash_exists_note_hash_leaf_index_in_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::execution_note_hash_tree_leaf_count,
26 ColumnAndShifts::execution_register_1_,
27 ColumnAndShifts::execution_note_hash_leaf_in_range
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
30 ColumnAndShifts::gt_input_b,
31 ColumnAndShifts::gt_res };
36template <
typename FF_>
43 static constexpr std::string_view
NAME =
"LOOKUP_NOTEHASH_EXISTS_NOTE_HASH_READ";
48 static constexpr Column COUNTS = Column::lookup_notehash_exists_note_hash_read_counts;
49 static constexpr Column INVERSES = Column::lookup_notehash_exists_note_hash_read_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
51 ColumnAndShifts::precomputed_zero,
52 ColumnAndShifts::execution_register_0_,
53 ColumnAndShifts::execution_register_1_,
54 ColumnAndShifts::execution_prev_note_hash_tree_root,
55 ColumnAndShifts::execution_register_2_
57 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
58 ColumnAndShifts::note_hash_tree_check_write,
59 ColumnAndShifts::note_hash_tree_check_note_hash,
60 ColumnAndShifts::note_hash_tree_check_leaf_index,
61 ColumnAndShifts::note_hash_tree_check_prev_root,
62 ColumnAndShifts::note_hash_tree_check_exists
67template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr Column INVERSES
static constexpr std::string_view NAME
static constexpr Column DST_SELECTOR
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column SRC_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr Column INVERSES
static constexpr Column COUNTS