v1

latestOpenAPI 3.1.02026-07-17283353.4 KB
HTTPWalletJSON

Encrypts data

post/encrypt

Request body

seekPermissionboolean
plaintextinteger[]
keyIDstring
privilegedReasonstring
counterpartystring
privilegedboolean

Example request

{
  "plaintext": [
    115,
    101,
    99,
    114,
    101,
    116,
    115
  ],
  "protocolID": [
    0,
    "todo token"
  ],
  "keyID": "1",
  "privilegedReason": "extra secure",
  "counterparty": "self"
}

Response

The encrypted data

ciphertextinteger[]

Example response

{
  "ciphertext": [
    47,
    102,
    55,
    54,
    51,
    52,
    42,
    38,
    9
  ]
}