i’m following the scenario of exchanges as on exchange you need to send a deposit message in order to get your balance on exchange account, i sent a transaction with a unique deposit message and now i want to decrypt the message to see the unique deposit message i sent but i recieve the payload in encrypted form. How can i decode the message and see what was it?
You can decode it in nanowallet.
You should not send encrypted message in deposit transaction. Message should be always unencrypted. Encrypted messages are not supported by exchanges.
i’m running the full node of nem wallet, i’m using testnet to get balance, i send some nem with decrypted message, but i receive responce like this
"message": {
"payload": "7468697320697320706f73746d616e207472616e73616374696f6e",
"type": 1
}
How can i read that what was the message?
To decrypt you need use your and sender keys so it requires some crypto work.
Nanowallet, Nemlibrary, java libs (https://github.com/NEMPH/nem-apps-lib) have this implemented already. You can look into code or use it.
More libraries available here: nem.io/developers