post https://your-server-host.com/api/v1/code/encrypt
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
Name | Required | Description |
---|---|---|
allianceName | Required | This is the code for the Travel Rule protocol. You can enter CODE as the default value. |
data | Required | Any data you want to encrypt |
remotePublicKey | Required | Counter VASP's public key |
{
"allianceName": "CODE",
"data": "{\"hi\": \"hello\"}",
"remotePublicKey": "8DJomhrvr0zD11+m3nwG3ZeO9OsSY8uLHdA7WgoaX0g="
}
Response
Name | Required | Description |
---|---|---|
signature | Required | Generated Signature |
nonce | Required | Generated Nonce |
dateTime | Required | Current datetime for request |
body | Required | Encrypted string |
{
"body": "CQZl5C7Pjx4osceIbLSQ3rGeJ8XdghN99nJHPs1ob964Fq0Thw5asAIJHctE+ElR+2JirluJhA==",
"signature": "EQH6i+vraeJApDrl0kNFT5uLg6VxDVApq5oaNkbuqL/1JzTB9IcvyLKSDBgQC7xfxwRb1Pvp7XxPsjKEfA0kDg==",
"nonce": 1504804560,
"dateTime": "2023-06-21T05:26:02Z"
}