HTTPWalletJSON
post/encrypt

Request

  • Base URL
    http://localhost:3321
  • Auth
    none declared

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
  ]
}

Changes

    • breaking

      the request property's minItems was increased to 2

    • info

      added subschema #1 subschema #2 to the request property 'prefixItems' list

    • breaking

      removed subschema #1 subschema #2 from the request property 'prefixItems' list