From a399b681fbb78c390336844112a16cc86d969800 Mon Sep 17 00:00:00 2001 From: Iraklis Leontiadis <120665504+leontiadZen@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:59:43 +0200 Subject: [PATCH 1/2] init --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1daad0c..cb880b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,4 +45,4 @@ 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", branch="serde-type-name" } +two-party-ecdsa = { git = "https://github.com/ZenGo-X/two-party-ecdsa.git", branch="party1-msg1-rand-range" } From 22d4458ad6acbfc1ce9732d1db1bbf6713d798a6 Mon Sep 17 00:00:00 2001 From: Iraklis Leontiadis <120665504+leontiadZen@users.noreply.github.com> Date: Wed, 17 Jan 2024 17:01:27 +0200 Subject: [PATCH 2/2] new api v2 for compatibility --- src/routes.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 = "" )]