Skip to content

Commit

Permalink
fix degree pow of rand table in agg circuit (#1335)
Browse files Browse the repository at this point in the history
* fix degree pow of rand table in agg circuit

* change some log level from info to debug
  • Loading branch information
lispc authored Jun 11, 2024
1 parent 4c4d117 commit fedf661
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions aggregator/src/aggregation/circuit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{blob::BatchData, witgen::MultiBlockProcessResult};
use crate::{blob::BatchData, witgen::MultiBlockProcessResult, LOG_DEGREE};
use ark_std::{end_timer, start_timer};
use halo2_base::{Context, ContextParams};
use halo2_proofs::{
Expand Down Expand Up @@ -489,7 +489,7 @@ impl<const N_SNARKS: usize> Circuit<Fr> for AggregationCircuit<N_SNARKS> {
address_table_arr,
sequence_exec_info_arr,
&challenges,
20, // TODO: configure k for aggregation circuit instead of hard-coded here.
LOG_DEGREE, // TODO: configure k for aggregation circuit instead of hard-coded here.
)?;

layouter.assign_region(
Expand Down
10 changes: 5 additions & 5 deletions aggregator/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl<const N_SNARKS: usize> ExtractedHashCells<N_SNARKS> {
.zip_eq(self.output_rlcs.iter())
.enumerate()
{
log::info!(
log::debug!(
"{}-th rlc {:?} {:?}",
i,
input_rlcs.value(),
Expand Down Expand Up @@ -714,11 +714,11 @@ pub(crate) fn conditional_constraints<const N_SNARKS: usize>(
&mut offset,
)?;

log::info!(
log::debug!(
"batch data hash rlc recomputed: {:?}",
batch_data_hash_rlc.value()
);
log::info!(
log::debug!(
"batch data hash rlc from table: {:?}",
assigned_hash_cells.output_rlcs[N_SNARKS + 1].value()
);
Expand Down Expand Up @@ -769,11 +769,11 @@ pub(crate) fn conditional_constraints<const N_SNARKS: usize>(
assigned_hash_cells.input_rlcs[N_SNARKS + 1].cell(),
)?;

log::info!(
log::debug!(
"batch data hash rlc reconstructed: {:?}",
batch_data_hash_reconstructed_rlc.value()
);
log::info!(
log::debug!(
"batch data hash rlc from table: {:?}",
assigned_hash_cells.input_rlcs[N_SNARKS + 1].value()
);
Expand Down
2 changes: 2 additions & 0 deletions zkevm-circuits/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3135,6 +3135,8 @@ impl PowOfRandTable {
)?;
}

log::debug!("assign pow of rand with rows {} done", max_rows);

Ok(())
},
)
Expand Down

0 comments on commit fedf661

Please sign in to comment.