Skip to main content
Version: 1.2.2

BIP340 - Perform MPC keygen

POST 

/bip340/keygen

Generate secret shares for the given number of parties and threshold, using the given key_id, as well as a public key. Keygen does not return anything to the caller. The secret share is generated and stored by the Vertex. The secret share can then be used to sign messages and perform other key operations using the same key_id.

Request

Header Parameters

    AUTHORIZATION stringrequired

    The AUTHORIZATION header must be set to the API Key of the user. The API Key is returned when a new user is created using the /admin/create-user endpoint.

Body

required

    key_id KeyIdrequired
    num_parties uint16required

    Possible values: >= 1

    others_keygen_ids string[]required

    relay_address

    object

    An Optional relay address to use only for this specific MPC operation. If not provided, the default relay address will be used. The relay address should be in the format of host:port.

    anyOf

    string

    room_uuid stringrequired
    threshold uint16required

    Possible values: >= 1

Responses

Loading...