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

Commit e04c2fc

Browse files
committed
placeholder_circuit_test_3 changed #180
1 parent 9dc6995 commit e04c2fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/nil/crypto3/zk/snark/systems/plonk/placeholder/public_input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace nil {
110110

111111
for(std::size_t i = 0; i < public_input_gate.size(); i++){
112112
const auto &var = public_input_gate[i];
113-
auto key = std::tuple(var.index, var.rotation, var.type);
113+
auto key = std::tuple(var.index, 0, var.type);
114114
auto value = columns_at_y[key] - public_input[i];
115115
value *= math::polynomial_shift(common_data.lagrange_0, var.rotation, common_data.basic_domain->m).evaluate(challenge);
116116
result *= alpha;

test/systems/plonk/placeholder/circuits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ namespace nil {
478478
test_circuit.lookup_gates.push_back(lookup_gate);
479479

480480
plonk_variable<assignment_type> pi0(0, 0, false, plonk_variable<assignment_type>::column_type::witness);
481-
plonk_variable<assignment_type> pi1(1, 0, false, plonk_variable<assignment_type>::column_type::witness);
481+
plonk_variable<assignment_type> pi1(1, 2, false, plonk_variable<assignment_type>::column_type::witness);
482482
test_circuit.public_input_gate.push_back(pi0);
483483
test_circuit.public_input_gate.push_back(pi1);
484484

0 commit comments

Comments
 (0)