Skip to content

Commit c87dfa0

Browse files
committed
v0.2.0
1 parent c0dd99f commit c87dfa0

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kms"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = [
55
"Omer <omer@kzencorp.com>",
66
"Gary <gary@kzencorp.com>"
@@ -17,28 +17,28 @@ serde_derive = "1.0"
1717

1818
[dependencies.paillier]
1919
git = "https://github.com/KZen-networks/rust-paillier"
20-
tag = "v0.3.0"
20+
tag = "v0.3.3"
2121

2222
[dependencies.zk-paillier]
2323
git = "https://github.com/KZen-networks/zk-paillier"
24-
tag = "v0.2.0"
24+
tag = "v0.2.4"
2525

2626
[dependencies.multi-party-schnorr]
2727
git = "https://github.com/KZen-networks/multi-party-schnorr"
28-
tag = "v0.3.0"
28+
tag = "v0.3.1"
2929

3030
[dependencies.curv]
3131
git = "https://github.com/KZen-networks/curv"
3232
features = ["ec_secp256k1"]
33-
tag = "v0.2.0"
33+
tag = "v0.2.2"
3434

3535
[dependencies.multi-party-ecdsa]
3636
git = "https://github.com/KZen-networks/multi-party-ecdsa"
37-
tag = "v0.1.0"
37+
tag = "v0.2.5"
3838

3939
[dependencies.centipede]
4040
git = "https://github.com/KZen-networks/centipede"
41-
tag = "v0.2.0"
41+
tag = "v0.2.1"
4242

4343
[patch.crates-io]
4444
rust-gmp = { version = "0.5.0", features = ["serde_support"], git = "https://github.com/KZen-networks/rust-gmp" }

src/ecdsa/two_party/party1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl MasterKey1 {
215215
party_one_private: party_one::Party1Private,
216216
pdl_decommit: party_one::PDLdecommit,
217217
alpha: BigInt,
218-
) -> Result<(party_one::PDLSecondMessage), ()> {
218+
) -> Result<party_one::PDLSecondMessage, ()> {
219219
party_one::PaillierKeyPair::pdl_second_stage(
220220
pdl_party_two_first_message,
221221
pdl_party_two_second_message,
@@ -309,7 +309,7 @@ impl MasterKey1 {
309309
rotate_party_two_second_message: &Party2PDLSecondMsg,
310310
pdl_decommit: party_one::PDLdecommit,
311311
alpha: BigInt,
312-
) -> Result<((party_one::PDLSecondMessage, MasterKey1)), ()> {
312+
) -> Result<(party_one::PDLSecondMessage, MasterKey1), ()> {
313313
let rotate_party_one_third_message = party_one::PaillierKeyPair::pdl_second_stage(
314314
rotate_party_two_first_message,
315315
rotate_party_two_second_message,

src/ecdsa/two_party/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mod tests {
7070
// encryption
7171
let (segments, encryptions_secret_party1) = party_one_master_key
7272
.private
73-
.to_encrypted_segment(&segment_size, 32, &Y, &G);
73+
.to_encrypted_segment(segment_size, 32, &Y, &G);
7474
// proof and verify test:
7575

7676
let proof = Proof::prove(&segments, &encryptions_secret_party1, &G, &Y, &segment_size);
@@ -106,12 +106,12 @@ mod tests {
106106
let (_, encryptions_secret_party1) =
107107
party_one_master_key
108108
.private
109-
.to_encrypted_segment(&segment_size, 32, &Y, &G);
109+
.to_encrypted_segment(segment_size, 32, &Y, &G);
110110
// encryption
111111
let (_, encryptions_secret_party2) =
112112
party_two_master_key
113113
.private
114-
.to_encrypted_segment(&segment_size, 32, &Y, &G);
114+
.to_encrypted_segment(segment_size, 32, &Y, &G);
115115

116116
// first case: party one is dead, party two wants to recover the full key.
117117
// In practice party two will recover party_one_master_key and from that point will run both logic parties locally

src/rotation/two_party/party2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct Rotation2 {}
1919
impl Rotation2 {
2020
pub fn key_rotate_first_message(
2121
party1_first_message: &coin_flip_optimal_rounds::Party1FirstMessage,
22-
) -> (coin_flip_optimal_rounds::Party2FirstMessage) {
22+
) -> coin_flip_optimal_rounds::Party2FirstMessage {
2323
coin_flip_optimal_rounds::Party2FirstMessage::share(&party1_first_message.proof)
2424
}
2525

src/schnorr/two_party/party1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl KeyGen {
224224
received_message1: &KeyGenParty2Message1,
225225
received_message2: &KeyGenParty2Message2,
226226
e: &FE,
227-
) -> Result<(GE), Errors> {
227+
) -> Result<GE, Errors> {
228228
let sig2 = Signature::set_signature(&received_message1.ix_pub[1], &received_message2.y2);
229229
let result = verify(&received_message1.ix_pub[0], &sig2, e);
230230
if result.is_ok() {

src/schnorr/two_party/party2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl KeyGen {
231231
received_message1: &KeyGenParty1Message1,
232232
received_message2: &KeyGenParty1Message2,
233233
e: &FE,
234-
) -> Result<(GE), Errors> {
234+
) -> Result<GE, Errors> {
235235
let sig1 = Signature::set_signature(&received_message1.ix_pub[1], &received_message2.y1);
236236
let result = verify(&received_message1.ix_pub[0], &sig1, e);
237237
if result.is_ok() {

0 commit comments

Comments
 (0)