- URL:
/my/callback/roundOne
- Method:
POST
- Description: Initiates round one of the process.
- Request Body:
{ "id": "number", "secret": "number" }
- Response Body:
{ "round1_state": [], "round1_msg": [], "secret": "string" }
- URL:
/my/callback/roundOne/addMessages
- Method:
POST
- Description: Adds messages to round one of the process.
- Request Body:
{ "id": "number", "messages": [[]], "round1State": [] }
- Response Body:
{ "round1_state": [] }
- URL:
/my/callback/roundTwo/initiate
- Method:
POST
- Description: Initiates round two of the process.
- Request Body:
{ "round1State": [] }
- Response Body:
{ "round2_state": [], "shares": [] }
- URL:
/my/callback/roundTwo/addShares
- Method:
POST
- Description: Adds shares to round two of the process.
- Request Body:
{ "round2State": [], "shares": [[]], "id": "number" }
- Response Body:
{ "round2_state": [] }
- URL:
/my/callback/roundTwo/end
- Method:
POST
- Description: Ends round two of the process.
- Request Body:
{ "round2State": [] }
- Response Body:
{ "share": [], "pk": "string", "t_pk": "string" }
- URL:
/my/callback/reconstruct
- Method:
POST
- Description: Reconstructs shares.
- Request Body:
{ "shares": [[]] }
- Response Body:
{ "recontructed_share": "string" }
These are the functions used in mySevices
Arguments:
identitfier: u16
The identifier which uniquely identifies the participantsecret: u64
The secret for all people to sign
Returns:
Round1Result
:round1_state: Vec<u8>
round1_msg: Vec<u8>
Arguments:
round1_state: Vec<u8>
round1_messages: Vec<Vec<u8>>
identifier: u16
Returns:
Round1FinalState
:round1_state: Vec<u8>
Arguments:
round1_state: Vec<u8>
Returns:
Round2Result
:round2_state: Vec<u8>
shares: Vec<u8>
Arguments:
round2_state: Vec<u8>
all_shares: Vec<Vec<u8>>
identifier: u16
Returns:
Round2FinalState
:round2_state: Vec<u8>
Arguments:
round2_state: Vec<u8>
Returns:
EndRound2Result
:share: Vec<u8>
pk: String
t_pk: String
Arguments:
final_share: Vec<Vec<u8>>
round1_final_states: Vec<Vec<u8>>
Returns:
()