Explains how to decrypt using CODE-Cipher.

This decryption function can be used universally. It decrypts with an algorithm that meets the requirements of CODE travel rule.

remotePublicKey is the value of the header's X-Code-Req-PubKey.

Request

NameRequiredDescription
allianceNameRequiredThis is the code for the Travel Rule protocol. You can enter CODE as the default value.
dataRequiredAny data you want to decrypt
remotePublicKeyRequiredCounter VASP's public key
{
    "allianceName": "CODE",
    "data": "jf6V5hL6VxjYD6+RdMm7NIRKCrFAn4HQ5ZumHgBS7ywcczAB0jK7/hMKHQBFm1RECbKOYGXroA8h+cSvMUABof+dIzqt3intiS9qfXe2bYfq9fdpicrcyhZOHnJT3tOz3HLM1SuxXSFNHrcmrIRE4KL80uV3gRcH7Z6gtbgFhlNDzzL/",
    "remotePublicKey": "8DJomhrvr0zD11+m3nwG3ZeO9OsSY8uLHdA7WgoaX0g="
}

Response

NameRequiredDescription
bodyStringRequiredDecrypted string
bodyRequiredDecrypted ivms101 object
{
  "body": {
    "ivms101": {
      "Beneficiary": {
        "beneficiaryPersons": [],
        "accountNumber": [
          "3432fwsf3q4qweqwef"
        ]
      }
    }
  },
  "bodyString": "{\"ivms101\":{\"Beneficiary\":{\"beneficiaryPersons\":[],\"accountNumber\":[\"3432fwsf3q4qweqwef\"]}}}"
}

Example

Language