Skip to main content

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

Body

required
    dkg_id uuidrequired
    encrypted_keyshare binaryrequired
    encryption_iv binarynullable
    server_auth_tag binarynullable
    user_id uuidnullable

Responses

Keyshare created

Loading...