Recover the amount of a confidential transfer as the mint's auditor: decode the
confidential-transfer instruction from the confirmed transaction (made directly, or by a program
through a cross-program call) and decrypt the auditor ciphertext (lo/hi halves) with the
auditor's ElGamal secret key. A transaction that failed transferred nothing, so it is refused
with TRANSACTION_FAILED rather than read.
A transaction can hold more than one confidential transfer. With mint, the first one of that
mint is read; without it, the first one of any mint, in instruction order (each instruction
followed by the calls it made). An amount the key cannot decrypt (it was encrypted to another
auditor key) is DECRYPTION_FAILED. For every transfer of a mint, see
listConfidentialActivity.
Recover the amount of a confidential transfer as the mint's auditor: decode the confidential-transfer instruction from the confirmed transaction (made directly, or by a program through a cross-program call) and decrypt the auditor ciphertext (lo/hi halves) with the auditor's ElGamal secret key. A transaction that failed transferred nothing, so it is refused with TRANSACTION_FAILED rather than read.
A transaction can hold more than one confidential transfer. With
mint, the first one of that mint is read; without it, the first one of any mint, in instruction order (each instruction followed by the calls it made). An amount the key cannot decrypt (it was encrypted to another auditor key) is DECRYPTION_FAILED. For every transfer of a mint, see listConfidentialActivity.