post https://your-server-host.com/api/v1/code/decrypt
Explains how to decrypt using CodeVASP-Cipher.
This decryption function can be used universally. It decrypts with an algorithm that meets the requirements of CodeVASP travel rule.
remotePublicKey is the value of the header's X-Code-Req-PubKey.
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 decrypt |
| remotePublicKey | Required | Counter VASP's public key |
{
"allianceName": "CODE",
"data": "jf6V5hL6VxjYD6+RdMm7NIRKCrFAn4HQ5ZumHgBS7ywcczAB0jK7/hMKHQBFm1RECbKOYGXroA8h+cSvMUABof+dIzqt3intiS9qfXe2bYfq9fdpicrcyhZOHnJT3tOz3HLM1SuxXSFNHrcmrIRE4KL80uV3gRcH7Z6gtbgFhlNDzzL/",
"remotePublicKey": "8DJomhrvr0zD11+m3nwG3ZeO9OsSY8uLHdA7WgoaX0g="
}Response
| Name | Required | Description |
|---|---|---|
| bodyString | Required | Decrypted string |
| body | Required | Decrypted ivms101 object |
{
"body": {
"ivms101": {
"Beneficiary": {
"beneficiaryPersons": [],
"accountNumber": [
"3432fwsf3q4qweqwef"
]
}
}
},
"bodyString": "{\"ivms101\":{\"Beneficiary\":{\"beneficiaryPersons\":[],\"accountNumber\":[\"3432fwsf3q4qweqwef\"]}}}"
}