Skip to content

Commit

Permalink
fix(snark-wrapper): Revert "improvement of parameters" (#24)
Browse files Browse the repository at this point in the history
Reverts #13

Said PR requires new VKs, so it should be processed as a part of
upgrade.
  • Loading branch information
popzxc authored Sep 5, 2024
1 parent f82725f commit cce1da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rescue-poseidon/src/poseidon2/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<E: Engine, const RATE: usize, const WIDTH: usize> Default for Poseidon2Para
let diag_internal_matrix = poseidon2_internal_matrix::<E, WIDTH>();

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();
}
Expand Down

0 comments on commit cce1da3

Please sign in to comment.