Skip to content

Commit 3b24635

Browse files
committed
poseidon AIR: explicit number of constraints, instead of hardcoded 94
1 parent 99df527 commit 3b24635

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/lean_vm/src/tables/poseidon

crates/lean_vm/src/tables/poseidon/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ impl<const BUS: bool> Air for Poseidon16Precompile<BUS> {
307307
0
308308
}
309309
fn n_constraints(&self) -> usize {
310-
2 * BUS as usize + 94
310+
const PRELUDE_CONSTRAINTS: usize = 10;
311+
2 * BUS as usize + PRELUDE_CONSTRAINTS + POSEIDON1_HALF_FULL_ROUNDS * WIDTH + PARTIAL_ROUNDS
311312
}
312313
fn eval<AB: AirBuilder>(&self, builder: &mut AB, extra_data: &Self::ExtraData) {
313314
let cols: Poseidon1Cols16<AB::IF> = {

0 commit comments

Comments
 (0)