Generate a new distributed key
POST/v1/node/dks
Generate a new distributed key
Request
- application/json
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
- 200
- 401
DK shares info
- application/json
- Schema
- Example (from schema)
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
{
"publicKeyShares": [
"publicKeyShares",
"publicKeyShares"
],
"address": "address",
"peerIdentities": [
"peerIdentities",
"peerIdentities"
],
"threshold": 1,
"publicKey": "publicKey",
"peerIndex": 1
}
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
Loading...