diff --git a/Cargo.toml b/Cargo.toml index d86b62e..1a765ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,4 +45,5 @@ config = "0.13.3" uuid = { version = "0.7", features = ["v4"] } jsonwebtoken = "8" hex = "0.4" -two-party-ecdsa = { git = "https://github.com/ZenGo-X/two-party-ecdsa.git" } +two-party-ecdsa = { git = "https://github.com/ZenGo-X/two-party-ecdsa.git", branch="party1-msg1-rand-range" } + diff --git a/src/routes.rs b/src/routes.rs index 0595023..57d1d5b 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -17,7 +17,7 @@ use rocket::{post, get, http::Status, State}; use tokio::sync::Mutex; -#[post("/ecdsa/keygen/first", format = "json")] +#[post("/ecdsa/keygen_v2/first", format = "json")] pub async fn wrap_keygen_first( state: &State>>, claim: Claims, @@ -27,7 +27,7 @@ pub async fn wrap_keygen_first( Gotham::first(state, claim).await } -#[post("/ecdsa/keygen//second", format = "json", data = "")] +#[post("/ecdsa/keygen_v2//second", format = "json", data = "")] pub async fn wrap_keygen_second( state: &State>>, claim: Claims, @@ -40,7 +40,7 @@ pub async fn wrap_keygen_second( } #[post( -"/ecdsa/keygen//third", +"/ecdsa/keygen_v2//third", format = "json", data = "" )] @@ -56,7 +56,7 @@ pub async fn wrap_keygen_third( } #[post( -"/ecdsa/keygen//fourth", +"/ecdsa/keygen_v2//fourth", format = "json", data = "" )] @@ -71,7 +71,7 @@ pub async fn wrap_keygen_fourth( Gotham::fourth(state, claim, id, party_two_pdl_second_message).await } -#[post("/ecdsa/keygen//chaincode/first", format = "json")] +#[post("/ecdsa/keygen_v2//chaincode/first", format = "json")] pub async fn wrap_chain_code_first_message( state: &State>>, claim: Claims, @@ -83,7 +83,7 @@ pub async fn wrap_chain_code_first_message( } #[post( -"/ecdsa/keygen//chaincode/second", +"/ecdsa/keygen_v2//chaincode/second", format = "json", data = "" )]