Function spl_token_2022::extension::confidential_transfer::ciphertext_extraction::transfer_amount_source_ciphertext
source · pub fn transfer_amount_source_ciphertext(
transfer_amount_ciphertext: &TransferAmountCiphertext
) -> ElGamalCiphertext
Expand description
Extract the transfer amount ciphertext encrypted under the source ElGamal public key.
A transfer amount ciphertext consists of the following 32-byte components that are serialized in order:
- The
commitment
component that encodes the transfer amount. - The
decryption handle
component with respect to the source public key. - The
decryption handle
component with respect to the destination public key. - The
decryption handle
component with respect to the auditor public key.
An ElGamal ciphertext for the source consists of the commitment
component
and the decryption handle
component with respect to the source.