Skip to main content

Generate a new distributed key

POST 

//v1/node/dks

Generate a new distributed key

Request

Body

required

Request parameters

    peerIdentities string[]required

    Names or hex encoded public keys of trusted peers to run DKG on.

    threshold int32required

    Possible values: >= 1

    Should be =< len(PeerPublicIdentities)

    timeoutMS int32required

    Possible values: >= 1

    Timeout in milliseconds.

Responses

DK shares info

Schema
    address stringrequired

    New generated shared address.

    peerIdentities string[]required

    Identities of the nodes sharing the key. (Hex)

    peerIndex int32required

    Possible values: >= 1

    publicKey stringrequired

    Used public key. (Hex)

    publicKeyShares string[]required

    Public key shares for all the peers. (Hex)

    threshold int32required

    Possible values: >= 1

Authorization: Authorization

name: Authorizationtype: apiKeydescription: JWT Tokenin: header
curl -L -X POST '/v1/node/dks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"peerIdentities": [
"peerIdentities",
"peerIdentities"
],
"timeoutMS": 1,
"threshold": 1
}'
Request Collapse all
Base URL
Auth
Body required
{
  "peerIdentities": [
    "peerIdentities",
    "peerIdentities"
  ],
  "timeoutMS": 1,
  "threshold": 1
}
ResponseClear

Click the Send API Request button above and see the response here!