How to decrypt the transaction payload when confid

2020-04-16 17:07发布

问题:

The transactions/<transaction_id> API returns a single transaction. But when confidentiality is turned on, the transaction payload is encrypted

How can I decrypt this transaction payload when confidentiality is turned on?

回答1:

You will only be able to do so if you have the key pair of who sent the transaction (that's why it is confidential).

If you are the user that sent the transaction then you can retrieve the ECert and TCert using this. With the certificate you can decrypt the transaction's payload.