Create Keyshare
POST/v1/server-keyshare
Create Keyshare
The create_keyshare endpoint allows clients to submit a new key share record to the server. After creating a keyshare, user should encrypt it and post using this endpoint, so it can be fetched later being recorded in server but never accessed by anyone, only who encrypted it. It accepts a JSON payload containing the user ID, encrypted key share, optional encryption initialization vector (IV), optional server authentication tag, and the distributed key generation (DKG) ID. This operation inserts the provided key share details into the database. Successful creation returns a 201 status code, indicating that the key share has been successfully created. Errors such as missing user ID in the request body result in a 400 status code, while internal server errors yield a 500 status code.
Request
- application/json
Body
required
Responses
- 201
- 400
- 500
Keyshare created
Request body missing user id
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string