diff --git a/gotham-client/Cargo.toml b/gotham-client/Cargo.toml index 65f79c6..703ec3c 100644 --- a/gotham-client/Cargo.toml +++ b/gotham-client/Cargo.toml @@ -42,7 +42,7 @@ git = "https://github.com/KZen-networks/multi-party-ecdsa" [dependencies.curv] git = "https://github.com/KZen-networks/curv" -features = ["curvesecp256k1"] +features = ["ec_secp256k1"] [patch.crates-io] rust-gmp = { version = "0.5.0", features = ["serde_support"], git = "https://github.com/KZen-networks/rust-gmp" } diff --git a/gotham-client/src/ecdsa/keygen.rs b/gotham-client/src/ecdsa/keygen.rs index f86ecba..db89858 100644 --- a/gotham-client/src/ecdsa/keygen.rs +++ b/gotham-client/src/ecdsa/keygen.rs @@ -11,7 +11,7 @@ use reqwest; use serde_json; use time::PreciseTime; -use curv::cryptographic_primitives::twoparty::dh_key_exchange::*; +use curv::cryptographic_primitives::twoparty::dh_key_exchange_variant_with_pok_comm::*; use kms::chain_code::two_party as chain_code; use kms::ecdsa::two_party::*; use multi_party_ecdsa::protocols::two_party_ecdsa::lindell_2017::*; diff --git a/gotham-server/Cargo.toml b/gotham-server/Cargo.toml index 816d01d..1be000e 100644 --- a/gotham-server/Cargo.toml +++ b/gotham-server/Cargo.toml @@ -37,7 +37,7 @@ git = "https://github.com/KZen-networks/multi-party-ecdsa" [dependencies.curv] git = "https://github.com/KZen-networks/curv" -features = ["curvesecp256k1"] +features = ["ec_secp256k1"] [patch.crates-io] rust-gmp = { version = "0.5.0", features = ["serde_support"], git = "https://github.com/KZen-networks/rust-gmp" } diff --git a/gotham-server/src/routes/ecdsa.rs b/gotham-server/src/routes/ecdsa.rs index c16c92d..aaf6656 100644 --- a/gotham-server/src/routes/ecdsa.rs +++ b/gotham-server/src/routes/ecdsa.rs @@ -8,9 +8,9 @@ // version 3 of the License, or (at your option) any later version. // -use curv::cryptographic_primitives::proofs::dlog_zk_protocol::*; +use curv::cryptographic_primitives::proofs::sigma_dlog::*; use curv::cryptographic_primitives::twoparty::coin_flip_optimal_rounds; -use curv::cryptographic_primitives::twoparty::dh_key_exchange::*; +use curv::cryptographic_primitives::twoparty::dh_key_exchange_variant_with_pok_comm::*; use curv::{BigInt, GE}; use kms::chain_code::two_party as chain_code; use kms::ecdsa::two_party::*;