Skip to content

Commit

Permalink
Add StateMachine implementation for gg20 keygen/signing (ZenGo-X#121)
Browse files Browse the repository at this point in the history
* gg20_keygen

* Prettify imports

* Fix secp256k1 curve

* Add gg20 signing state machine

* Fix doc example

Co-authored-by: Omer Shlomovits <[email protected]>
  • Loading branch information
Denis Varlakov and omershlo authored Jul 18, 2021
1 parent c00f532 commit 29465dc
Show file tree
Hide file tree
Showing 9 changed files with 2,485 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ serde = { version = "1.0", features = ["derive"] }
zeroize = "1"
libsecp256k1 = "0.3.2"
curv = { package = "curv-kzen", version = "0.7", default-features = false }
round-based = { version = "0.1.4", features = [] }
thiserror = "1.0.23"

[dependencies.centipede]
git = "https://github.com/KZen-networks/centipede"
Expand Down Expand Up @@ -67,6 +69,9 @@ uuid = { version = "0.8", features = ["v4"] }
serde_json = "1.0"
rand = "0.7"

thiserror = "1.0.23"
round-based = { version = "0.1.4", features = ["dev"] }

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

Expand Down
1 change: 1 addition & 0 deletions src/protocols/multi_party_ecdsa/gg_2020/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
pub mod blame;
pub mod orchestrate;
pub mod party_i;
pub mod state_machine;
#[cfg(test)]
mod test;

Expand Down
7 changes: 3 additions & 4 deletions src/protocols/multi_party_ecdsa/gg_2020/orchestrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,9 @@ mod tests {
threshold: threshold_test,
})
.is_ok(),
format!(
" Test failed for Threshold {} Share Count {}",
threshold_test, share_count_test
)
" Test failed for Threshold {} Share Count {}",
threshold_test,
share_count_test
);
}
}
Expand Down
Loading

0 comments on commit 29465dc

Please sign in to comment.