Skip to content

Commit

Permalink
#95 rw minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
ETatuzova authored and akokoshn committed Nov 1, 2024
1 parent 0780f3f commit 50796e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ namespace nil {

std::cout << "Satisfiability check. Check" << std::endl;
for (const auto& i : used_gates) {
std::cout << "Check gate " << i << std::endl;
//std::cout << "Check gate " << i << std::endl;
crypto3::zk::snark::plonk_column<BlueprintFieldType> selector =
assignments.crypto3::zk::snark::
template plonk_assignment_table<BlueprintFieldType>::selector(
gates[i].selector_index);
for (std::size_t j = 0; j < gates[i].constraints.size(); j++) {
std::cout << gates[i].constraints[j] << std::endl;
}
//for (std::size_t j = 0; j < gates[i].constraints.size(); j++) {
// std::cout << gates[i].constraints[j] << std::endl;
//}

for (const auto& selector_row : selector_rows) {
// std::cout << "selector row " << selector_row << ": ";
Expand Down
4 changes: 2 additions & 2 deletions crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/rw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace nil {
static constexpr std::size_t chunks_amount = 30;

static nil::crypto3::zk::snark::plonk_table_description<FieldType> get_table_description(std::size_t max_rw_size, std::size_t max_mpt_size){
nil::crypto3::zk::snark::plonk_table_description<FieldType> desc(rw_table_type::get_witness_amount() + 50, 0, 2, 4);
nil::crypto3::zk::snark::plonk_table_description<FieldType> desc(rw_table_type::get_witness_amount() + 50, 0, 2, 6);
desc.usable_rows_amount = max_rw_size + max_mpt_size;
return desc;
}
Expand Down Expand Up @@ -180,7 +180,7 @@ namespace nil {
} else {
std::cout << "Build circuit" << std::endl;
}
for( std::size_t i = 0; i < max_rw_size - 1; i++){
for( std::size_t i = 0; i < max_rw_size; i++){
if( i % 50 == 0) std::cout << "Circuit for " << i << " rows is constructed" << std::endl;
std::size_t cur_column = rw_table_type::get_witness_amount();
TYPE op_bit_composition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace nil {
} else {
std::cout << "RW circuit" << std::endl;
}
for( std::size_t i = 0; i < max_rw_size-1; i++ ){
for( std::size_t i = 0; i < max_rw_size; i++ ){
allocate(op[i], 0, i);
allocate(id[i], 1, i);
allocate(address[i], 2, i);
Expand Down

0 comments on commit 50796e2

Please sign in to comment.