BSV blockchainBSV blockchain

encrypt

POST/encrypt

Encrypts data

Body application/json

seekPermissionboolean
plaintextinteger[]
protocolIDany[]
keyIDstring
privilegedReasonstring
counterpartystring
privilegedboolean

Response

The encrypted data

ciphertextinteger[]

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/encrypt" \
  -H "Content-Type: application/json" \
  -d '{
  "seekPermission": true,
  "plaintext": [
    0
  ],
  "protocolID": [
    null
  ],
  "keyID": "string",
  "privilegedReason": "string",
  "counterparty": "string",
  "privileged": false
}'
Response
{
  "ciphertext": [
    0
  ]
}