Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

12 changes: 6 additions & 6 deletions src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Mutex<Box<dyn Db>>>,
claim: Claims,
Expand All @@ -27,7 +27,7 @@ pub async fn wrap_keygen_first(
Gotham::first(state, claim).await
}

#[post("/ecdsa/keygen/<id>/second", format = "json", data = "<dlog_proof>")]
#[post("/ecdsa/keygen_v2/<id>/second", format = "json", data = "<dlog_proof>")]
pub async fn wrap_keygen_second(
state: &State<Mutex<Box<dyn Db>>>,
claim: Claims,
Expand All @@ -40,7 +40,7 @@ pub async fn wrap_keygen_second(
}

#[post(
"/ecdsa/keygen/<id>/third",
"/ecdsa/keygen_v2/<id>/third",
format = "json",
data = "<party_2_pdl_first_message>"
)]
Expand All @@ -56,7 +56,7 @@ pub async fn wrap_keygen_third(
}

#[post(
"/ecdsa/keygen/<id>/fourth",
"/ecdsa/keygen_v2/<id>/fourth",
format = "json",
data = "<party_two_pdl_second_message>"
)]
Expand All @@ -71,7 +71,7 @@ pub async fn wrap_keygen_fourth(
Gotham::fourth(state, claim, id, party_two_pdl_second_message).await
}

#[post("/ecdsa/keygen/<id>/chaincode/first", format = "json")]
#[post("/ecdsa/keygen_v2/<id>/chaincode/first", format = "json")]
pub async fn wrap_chain_code_first_message(
state: &State<Mutex<Box<dyn Db>>>,
claim: Claims,
Expand All @@ -83,7 +83,7 @@ pub async fn wrap_chain_code_first_message(
}

#[post(
"/ecdsa/keygen/<id>/chaincode/second",
"/ecdsa/keygen_v2/<id>/chaincode/second",
format = "json",
data = "<cc_party_two_first_message_d_log_proof>"
)]
Expand Down