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

Commit 60d7a4b

Browse files
authored
Move basic field config after RLC and Keccak config in aggregation-circuit config. (#688)
1 parent 1ed6efd commit 60d7a4b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

aggregator/src/aggregation/config.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@ impl AggregationConfig {
5252
"For now we fix limb_bits = {BITS}, otherwise change code",
5353
);
5454

55-
// base field configuration for aggregation circuit
56-
let base_field_config = FpConfig::configure(
57-
meta,
58-
params.strategy.clone(),
59-
&params.num_advice,
60-
&params.num_lookup_advice,
61-
params.num_fixed,
62-
params.lookup_bits,
63-
BITS,
64-
LIMBS,
65-
modulus::<Fq>(),
66-
0,
67-
params.degree as usize,
68-
);
69-
7055
// RLC configuration
7156
let rlc_config = RlcConfig::configure(meta, challenges);
7257

@@ -83,6 +68,21 @@ impl AggregationConfig {
8368
KeccakCircuitConfig::new(meta, keccak_circuit_config_args)
8469
};
8570

71+
// base field configuration for aggregation circuit
72+
let base_field_config = FpConfig::configure(
73+
meta,
74+
params.strategy.clone(),
75+
&params.num_advice,
76+
&params.num_lookup_advice,
77+
params.num_fixed,
78+
params.lookup_bits,
79+
BITS,
80+
LIMBS,
81+
modulus::<Fq>(),
82+
0,
83+
params.degree as usize,
84+
);
85+
8686
// The current code base is hardcoded for KeccakCircuit configured
8787
// with 300 rows and 87 columns per hash call.
8888
let columns = keccak_circuit_config.cell_manager.columns();

0 commit comments

Comments
 (0)