Explains how to encrypt using CODE-Cipher.

This is a universal encryption feature that you can use. It encrypts with an algorithm that meets the CODE travel rule requirements.

Request

NameRequiredDescription
allianceNameRequiredThis is the code for the Travel Rule protocol. You can enter CODE as the default value.
dataRequiredAny data you want to encrypt
remotePublicKeyRequiredCounter VASP's public key
{
    "allianceName": "CODE",
    "data": "{\"hi\": \"hello\"}",
    "remotePublicKey": "8DJomhrvr0zD11+m3nwG3ZeO9OsSY8uLHdA7WgoaX0g="
}

Response

NameRequiredDescription
signatureRequiredGenerated Signature
nonceRequiredGenerated Nonce
dateTimeRequiredCurrent datetime for request
bodyRequiredEncrypted string
{
  "body": "CQZl5C7Pjx4osceIbLSQ3rGeJ8XdghN99nJHPs1ob964Fq0Thw5asAIJHctE+ElR+2JirluJhA==",
  "signature": "EQH6i+vraeJApDrl0kNFT5uLg6VxDVApq5oaNkbuqL/1JzTB9IcvyLKSDBgQC7xfxwRb1Pvp7XxPsjKEfA0kDg==",
  "nonce": 1504804560,
  "dateTime": "2023-06-21T05:26:02Z"
}

Example

Language