Skip to content

Commit a81bc0b

Browse files
committed
v0.2.5
1 parent 7e42ac1 commit a81bc0b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multi-party-ecdsa"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2018"
55
authors = [
66
@@ -79,6 +79,7 @@ crate-type = ["lib"]
7979
[[bench]]
8080
name = "cclst"
8181
path = "benches/two_party_ecdsa/cclst_2019/keygen.rs"
82+
required-features = ["cclst"]
8283
harness = false
8384

8485
[[bench]]

src/protocols/multi_party_ecdsa/gg_2018/party_i.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,19 @@ impl Keys {
211211
&self,
212212
params: &Parameters,
213213
decom_vec: &[KeyGenDecommitMessage1],
214-
com_vec: &[KeyGenBroadcastMessage1],
214+
bc1_vec: &[KeyGenBroadcastMessage1],
215215
) -> Result<(VerifiableSS, Vec<FE>, usize), Error> {
216216
// test length:
217217
assert_eq!(decom_vec.len() as u16, params.share_count);
218-
assert_eq!(com_vec.len() as u16, params.share_count);
218+
assert_eq!(bc1_vec.len() as u16, params.share_count);
219219
// test paillier correct key and test decommitments
220-
let correct_key_correct_decom_all = (0..com_vec.len())
220+
let correct_key_correct_decom_all = (0..bc1_vec.len())
221221
.map(|i| {
222222
HashCommitment::create_commitment_with_user_defined_randomness(
223223
&decom_vec[i].y_i.bytes_compressed_to_big_int(),
224224
&decom_vec[i].blind_factor,
225-
) == com_vec[i].com
226-
&& com_vec[i].correct_key_proof.verify(&com_vec[i].e).is_ok()
225+
) == bc1_vec[i].com
226+
&& bc1_vec[i].correct_key_proof.verify(&bc1_vec[i].e).is_ok()
227227
})
228228
.all(|x| x);
229229

@@ -478,6 +478,7 @@ impl SignKeys {
478478
if test_b_vec_and_com {
479479
Ok({
480480
let gamma_sum = tail.fold(head.g_gamma_i, |acc, x| acc + x.g_gamma_i);
481+
// R
481482
gamma_sum * delta_inv
482483
})
483484
} else {

src/protocols/two_party_ecdsa/lindell_2017/party_one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl PaillierKeyPair {
405405
party_one_private: Party1Private,
406406
pdl_decommit: PDLdecommit,
407407
alpha: BigInt,
408-
) -> Result<(PDLSecondMessage), ()> {
408+
) -> Result<PDLSecondMessage, ()> {
409409
let a = pdl_party_two_second_message.decommit.a.clone();
410410
let b = pdl_party_two_second_message.decommit.b.clone();
411411
let blindness = pdl_party_two_second_message.decommit.blindness.clone();

0 commit comments

Comments
 (0)