Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 85edb97

Browse files
authored
Removed duplicate binary and table. (#290)
1 parent cad1702 commit 85edb97

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

include/nil/blueprint/components/algebra/fields/plonk/non_native/lookup_logic_ops.hpp

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,9 @@ namespace nil {
5050

5151
template<typename BlueprintFieldType, typename ArithmetizationParams>
5252
class lookup_logic_and<crypto3::zk::snark::plonk_constraint_system<BlueprintFieldType, ArithmetizationParams>>
53-
: public boolean_lookup_op_component<crypto3::zk::snark::plonk_constraint_system< BlueprintFieldType, ArithmetizationParams>>
54-
{
55-
using lookup_table_definition = typename nil::crypto3::zk::snark::lookup_table_definition<BlueprintFieldType>;
56-
57-
class binary_and_table_type : public lookup_table_definition{
58-
public:
59-
binary_and_table_type(): lookup_table_definition("binary_and_table"){
60-
this->subtables["full"] = {{0,1,2}, 0, 3};
61-
}
62-
virtual void generate(){
63-
this->_table = {
64-
{0, 0, 1, 1},
65-
{0, 1, 0, 1},
66-
{0, 0, 0, 1}
67-
};
68-
}
69-
virtual std::size_t get_columns_number(){ return 3; }
70-
virtual std::size_t get_rows_number(){ return 4; }
71-
};
53+
: public boolean_lookup_op_component<crypto3::zk::snark::plonk_constraint_system< BlueprintFieldType, ArithmetizationParams>> {
7254

7355
using value_type = typename BlueprintFieldType::value_type;
74-
75-
protected:
76-
std::shared_ptr<lookup_table_definition> binary_and_table;
7756
public:
7857
using component_type =
7958
boolean_lookup_op_component<crypto3::zk::snark::plonk_constraint_system<BlueprintFieldType, ArithmetizationParams>>;

0 commit comments

Comments
 (0)