Skip to content

Commit

Permalink
Minor tweak (argumentcomputer#225)
Browse files Browse the repository at this point in the history
* Minor tweak

* Minor tweak

* Revert "Minor tweak"

This reverts commit f416f838316d51b4275db53a95238c427e5d3f21.

* Formatted with rustfmt

* Linted with Clippy
  • Loading branch information
zk-Lee authored Sep 11, 2023
1 parent bd56514 commit 200b47e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/provider/ipa_pc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ where
fn setup(
ck: &<<G as Group>::CE as CommitmentEngineTrait<G>>::CommitmentKey,
) -> (Self::ProverKey, Self::VerifierKey) {
let pk = ProverKey {
ck_s: G::CE::setup(b"ipa", 1),
};
let ck_c = G::CE::setup(b"ipa", 1);

let pk = ProverKey { ck_s: ck_c.clone() };
let vk = VerifierKey {
ck_v: ck.clone(),
ck_s: G::CE::setup(b"ipa", 1),
ck_s: ck_c,
};

(pk, vk)
Expand Down Expand Up @@ -362,7 +361,7 @@ where
let mut s = vec![G::Scalar::ZERO; n];
s[0] = {
let mut v = G::Scalar::ONE;
for r_inverse_i in &r_inverse {
for r_inverse_i in r_inverse {
v *= r_inverse_i;
}
v
Expand Down

0 comments on commit 200b47e

Please sign in to comment.