Skip to content

Commit

Permalink
Update halo2_gadgets/src/poseidon/primitives/mds.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Han <[email protected]>
  • Loading branch information
alexander-camuto and han0110 authored Aug 25, 2023
1 parent af860b2 commit 15d8076
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion halo2_gadgets/src/poseidon/primitives/mds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pub(super) fn generate_mds<F: FromUniformBytes<64> + Ord, const T: usize>(
if m == j {
acc
} else {
let diff: F = x_j - *x_m;
// We can invert freely; by construction, the elements of xs are distinct.
acc * (x - x_m) * (x_j - x_m).invert().unwrap()
}
Expand Down

0 comments on commit 15d8076

Please sign in to comment.