Skip to content

Commit

Permalink
small fac test still does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
hridambasu committed Aug 4, 2023
1 parent 432b875 commit 905c583
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/zkp/pifac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,11 @@ mod tests {
#[allow(dead_code)]
fn test_modulus_cannot_have_small_factors() -> Result<()> {
let mut rng = init_testing();
let (not_p0, _) = prime_gen::get_prime_pair_from_pool_insecure(&mut rng).unwrap();
let regular_sized_q = prime_gen::try_get_prime_from_pool_insecure(&mut rng).unwrap();
let (not_p0, regular_sized_q) =
prime_gen::get_prime_pair_from_pool_insecure(&mut rng).unwrap();
//let small_p = BigNumber::from(7u64);
//let regular_sized_q = prime_gen::try_get_prime_from_pool_insecure(&mut
// rng).unwrap();
let setup_params = VerifiedRingPedersen::gen(&mut rng, &())?;

let small_fac_p = &not_p0 * &BigNumber::from(2u64);
Expand Down

0 comments on commit 905c583

Please sign in to comment.