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

Changes

Changed in 2 of the 19 revisions of this API.21

  • b3194b48543311See the full diff
    • the protocolID request property's minItems was increased to 2

      request-property-min-items-increased

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

      request-property-prefix-items-added

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

      request-property-prefix-items-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog