diff --git a/src/zkp/pimod.rs b/src/zkp/pimod.rs index be9a5ede..895dcbf5 100644 --- a/src/zkp/pimod.rs +++ b/src/zkp/pimod.rs @@ -783,7 +783,7 @@ mod tests { let (mut bad_proof, input) = random_pimod_proof(&mut rng); let new_challenge = random_positive_bn(&mut rng, &k256_order()); if let Some(first_element) = bad_proof.elements.get_mut(0) { - first_element.challenge_secret_link = new_challenge; + first_element.challenge = new_challenge; } else { panic!("No element found"); }