Skip to content

Commit

Permalink
Bytecode circuit constraints added #364 (#375)
Browse files Browse the repository at this point in the history
Co-authored-by: e.tatuzova <[email protected]>
  • Loading branch information
Iluvmagick and ETatuzova committed Jun 6, 2024
1 parent 7736a60 commit c0658c3
Show file tree
Hide file tree
Showing 5 changed files with 621 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/nil/blueprint/blueprint/plonk/circuit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ namespace nil {
LOOKUP_GATE_ADDER_MACRO(lookup_selector_map, _lookup_gates);
}

// Sometimes existing gate is already on existing selector
// and we are sure that lookup and usual part are always together
virtual std::size_t add_lookup_gate(std::size_t selector_id, const std::vector<lookup_constraint_type> &args) {
this->_lookup_gates.push_back({selector_id, args});
return selector_id;
}

virtual const typename ArithmetizationType::lookup_table_type &lookup_table(std::size_t table_id) const {
return ArithmetizationType::lookup_table(table_id);
}
Expand Down
Loading

0 comments on commit c0658c3

Please sign in to comment.