diff --git a/plonky2/src/plonk/config.rs b/plonky2/src/plonk/config.rs index 04df1ba70c..2391ef6cef 100644 --- a/plonky2/src/plonk/config.rs +++ b/plonky2/src/plonk/config.rs @@ -43,7 +43,7 @@ pub trait Hasher: Sized + Copy + Debug + Eq + PartialEq { fn hash_pad(input: &[F]) -> Self::Hash { let mut padded_input = input.to_vec(); padded_input.push(F::ONE); - while (padded_input.len() + 1) % Self::Permutation::WIDTH != 0 { + while (padded_input.len() + 1) % Self::Permutation::RATE != 0 { padded_input.push(F::ZERO); } padded_input.push(F::ONE);