Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aggregator/src/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(crate) use barycentric::{
};
pub(crate) use batch_data::BatchDataConfig;
pub(crate) use blob_data::BlobDataConfig;
pub(crate) use decoder::DecoderConfig;
pub(crate) use decoder::{DecoderConfig, DecoderConfigArgs};
pub(crate) use rlc::RlcConfig;

pub use circuit::AggregationCircuit;
Expand Down
20 changes: 14 additions & 6 deletions aggregator/src/aggregation/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ use snark_verifier::{
};
use zkevm_circuits::{
keccak_circuit::{KeccakCircuitConfig, KeccakCircuitConfigArgs},
table::{KeccakTable, PowOfRandTable, RangeTable, U8Table},
table::{BitwiseOpTable, KeccakTable, Pow2Table, PowOfRandTable, RangeTable, U8Table},
util::{Challenges, SubCircuitConfig},
};

use crate::{
constants::{BITS, LIMBS},
param::ConfigParams,
BarycentricEvaluationConfig, BatchDataConfig, BlobDataConfig, DecoderConfig, RlcConfig,
BarycentricEvaluationConfig, BatchDataConfig, BlobDataConfig, DecoderConfig, DecoderConfigArgs,
RlcConfig,
};

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -126,15 +127,21 @@ impl AggregationConfig {

// Zstd decoder.
let pow_rand_table = PowOfRandTable::construct(meta, &challenges_expr);
let pow2_table = Pow2Table::construct(meta);
let range8 = RangeTable::construct(meta);
let range16 = RangeTable::construct(meta);
let bitwise_op_table = BitwiseOpTable::construct(meta);
let decoder_config = DecoderConfig::configure(
meta,
&challenges_expr,
pow_rand_table,
u8_table,
range8,
range16,
DecoderConfigArgs {
pow_rand_table,
pow2_table,
u8_table,
range8,
range16,
bitwise_op_table,
},
);

// Instance column stores public input column
Expand All @@ -145,6 +152,7 @@ impl AggregationConfig {
meta.enable_equality(instance);

println!("meta degree = {:?}", meta.degree());
debug_assert!(meta.degree() <= 9);

Self {
base_field_config,
Expand Down
Loading