Skip to content

Commit

Permalink
Update rug and paillier-zk
Browse files Browse the repository at this point in the history
  • Loading branch information
maurges committed Sep 7, 2023
1 parent 3fe9e6a commit 68a6e16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target

.helix/
.rstags
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cggmp21/src/zk/ring_pedersen_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use digest::{typenum::U32, Digest};
use paillier_zk::{
fast_paillier::utils,
rug::{self, Complete, Integer},
IntegerExt,
};
use rand_core::{RngCore, SeedableRng};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -107,7 +106,7 @@ where
for (z_ref, e) in zs.iter_mut().zip(&challenge.es) {
if *e {
*z_ref += lambda;
*z_ref = z_ref.modulo(phi);
z_ref.modulo_mut(phi);
}
}
Ok(Proof { commitment, zs })
Expand Down

0 comments on commit 68a6e16

Please sign in to comment.