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

Commit 87cae11

Browse files
committed
flag1 = num_valid_snarks < 5
1 parent 17fa320 commit 87cae11

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

aggregator/src/aggregation/rlc/gates.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl RlcConfig {
1616
region.assign_fixed(|| "const zero", self.fixed, 0, || Value::known(Fr::zero()))?;
1717
region.assign_fixed(|| "const one", self.fixed, 1, || Value::known(Fr::one()))?;
1818
region.assign_fixed(|| "const two", self.fixed, 2, || Value::known(Fr::from(2)))?;
19-
region.assign_fixed(|| "const four", self.fixed, 3, || Value::known(Fr::from(4)))?;
19+
region.assign_fixed(|| "const five", self.fixed, 3, || Value::known(Fr::from(5)))?;
2020
region.assign_fixed(|| "const nine", self.fixed, 4, || Value::known(Fr::from(9)))?;
2121
region.assign_fixed(
2222
|| "const thirty two",
@@ -67,7 +67,7 @@ impl RlcConfig {
6767
}
6868

6969
#[inline]
70-
pub(crate) fn four_cell(&self, region_index: RegionIndex) -> Cell {
70+
pub(crate) fn five_cell(&self, region_index: RegionIndex) -> Cell {
7171
Cell {
7272
region_index,
7373
row_offset: 3,

aggregator/src/core.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,11 @@ pub(crate) fn conditional_constraints(
459459
// 5,6,7,8 | 32 | 0, 1, 0
460460
// 9,10 | 64 | 0, 0, 1
461461

462-
let four = {
463-
let four = rlc_config.load_private(&mut region, &Fr::from(4), &mut offset)?;
464-
let four_cell = rlc_config.four_cell(four.cell().region_index);
465-
region.constrain_equal(four_cell, four.cell())?;
466-
four
462+
let five = {
463+
let five = rlc_config.load_private(&mut region, &Fr::from(5), &mut offset)?;
464+
let five_cell = rlc_config.five_cell(five.cell().region_index);
465+
region.constrain_equal(five_cell, five.cell())?;
466+
five
467467
};
468468
let nine = {
469469
let nine = rlc_config.load_private(&mut region, &Fr::from(9), &mut offset)?;
@@ -474,7 +474,7 @@ pub(crate) fn conditional_constraints(
474474
let flag1 = rlc_config.is_smaller_than(
475475
&mut region,
476476
&num_valid_snarks,
477-
&four,
477+
&five,
478478
&mut offset,
479479
)?;
480480
let not_flag1 = rlc_config.not(&mut region, &flag1, &mut offset)?;

0 commit comments

Comments
 (0)