From cce1da378761dd76271730ad154e6f5b8a7675bb Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Thu, 5 Sep 2024 18:11:08 +0400 Subject: [PATCH] fix(snark-wrapper): Revert "improvement of parameters" (#24) Reverts matter-labs/zksync-crypto#13 Said PR requires new VKs, so it should be processed as a part of upgrade. --- crates/rescue-poseidon/src/poseidon2/params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rescue-poseidon/src/poseidon2/params.rs b/crates/rescue-poseidon/src/poseidon2/params.rs index ed42549..a80f667 100644 --- a/crates/rescue-poseidon/src/poseidon2/params.rs +++ b/crates/rescue-poseidon/src/poseidon2/params.rs @@ -46,7 +46,7 @@ impl Default for Poseidon2Para let diag_internal_matrix = poseidon2_internal_matrix::(); let mut round_constants = params.round_constants().to_owned(); - for i in (full_rounds / 2)..(full_rounds / 2) + partial_rounds { + for i in 0..params.partial_rounds { for j in 1..WIDTH { round_constants[i][j] = E::Fr::zero(); }