BSV blockchainBSV blockchain

verifyHmac

POST/verifyHmac

Verifies HMAC

Body application/json

seekPermissionboolean
datainteger[]
hmacinteger[]
protocolIDany[]
keyIDstring
privilegedReasonstring
counterpartystring
privilegedboolean

Response

The verification result

validboolean

Invalid input

Internal server error

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