Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

47 Code Quality PiFac #417

Merged
merged 15 commits into from
Jul 6, 2023
3 changes: 1 addition & 2 deletions src/auxinfo/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ impl Output {

#[cfg(test)]
mod tests {
use crate::{paillier::DecryptionKey, utils::testing::init_testing};

use super::*;
use crate::{paillier::DecryptionKey, utils::testing::init_testing};

#[test]
fn from_into_parts_works() {
Expand Down
8 changes: 4 additions & 4 deletions src/auxinfo/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
participant::InnerProtocolParticipant,
ring_pedersen::VerifiedRingPedersen,
zkp::{
pifac::{PiFacInput, PiFacProof, PiFacSecret},
pifac::{CommonInput, PiFacProof, ProverSecret},
pimod::{PiModInput, PiModProof, PiModSecret},
Proof, ProofContext,
},
Expand Down Expand Up @@ -77,8 +77,8 @@ impl AuxInfoProof {
)?;
Self::append_pifac_transcript(&mut transcript, context, sid, rho)?;
let pifac = PiFacProof::prove(
&PiFacInput::new(verifier_params, N),
&PiFacSecret::new(p, q),
&CommonInput::new(verifier_params, N),
&ProverSecret::new(p, q),
context,
&mut transcript,
rng,
Expand Down Expand Up @@ -107,7 +107,7 @@ impl AuxInfoProof {
.verify(&PiModInput::new(N), context, &mut transcript)?;
Self::append_pifac_transcript(&mut transcript, context, sid, rho)?;
self.pifac.verify(
&PiFacInput::new(verifier_params, N),
&CommonInput::new(verifier_params, N),
context,
&mut transcript,
)?;
Expand Down
Loading