Skip to content

Commit

Permalink
Remove rlc
Browse files Browse the repository at this point in the history
  • Loading branch information
darth-cy committed Sep 19, 2024
1 parent 9918fd7 commit 62e6100
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions aggregator/src/aggregation/rlc/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,22 @@ impl RlcConfig {
vec![cs1, cs2, cs3]
});

meta.lookup_any("rlc keccak lookup", |meta| {
let q = meta.query_selector(lookup_gate_selector);
let input_rlc = meta.query_advice(phase_2_column, Rotation::cur());
let output_rlc = meta.query_advice(phase_2_column, Rotation::next());
let data_len = meta.query_advice(phase_2_column, Rotation(2));
// compression_debug
// meta.lookup_any("rlc keccak lookup", |meta| {
// let q = meta.query_selector(lookup_gate_selector);
// let input_rlc = meta.query_advice(phase_2_column, Rotation::cur());
// let output_rlc = meta.query_advice(phase_2_column, Rotation::next());
// let data_len = meta.query_advice(phase_2_column, Rotation(2));

let input_exprs = vec![1.expr(), 1.expr(), input_rlc, data_len, output_rlc];
let table_exprs = keccak_table.table_exprs(meta);
// let input_exprs = vec![1.expr(), 1.expr(), input_rlc, data_len, output_rlc];
// let table_exprs = keccak_table.table_exprs(meta);

input_exprs
.into_iter()
.zip_eq(table_exprs)
.map(|(input, table)| (q.clone() * input, table))
.collect::<Vec<_>>()
});
// input_exprs
// .into_iter()
// .zip_eq(table_exprs)
// .map(|(input, table)| (q.clone() * input, table))
// .collect::<Vec<_>>()
// });

Self {
#[cfg(test)]
Expand Down

0 comments on commit 62e6100

Please sign in to comment.