@@ -57,10 +57,13 @@ use {
5757 transfer_hook:: TransferHook ,
5858 BaseStateWithExtensions , ExtensionType , StateWithExtensionsOwned ,
5959 } ,
60- solana_zk_sdk:: encryption:: {
61- auth_encryption:: AeKey ,
62- elgamal:: { self , ElGamalKeypair } ,
63- pod:: elgamal:: PodElGamalPubkey ,
60+ solana_zk_sdk:: {
61+ encryption:: {
62+ auth_encryption:: AeKey ,
63+ elgamal:: { self , ElGamalKeypair } ,
64+ pod:: elgamal:: PodElGamalPubkey ,
65+ } ,
66+ zk_elgamal_proof_program:: proof_data:: ZkProofData ,
6467 } ,
6568 state:: { Account , AccountState , Mint } ,
6669 } ,
@@ -1623,6 +1626,17 @@ async fn command_transfer(
16231626 )
16241627 . unwrap ( ) ;
16251628
1629+ let transfer_amount_auditor_ciphertext_lo = ciphertext_validity_proof_data
1630+ . context_data ( )
1631+ . grouped_ciphertext_lo
1632+ . try_extract_ciphertext ( 2 )
1633+ . unwrap ( ) ;
1634+ let transfer_amount_auditor_ciphertext_hi = ciphertext_validity_proof_data
1635+ . context_data ( )
1636+ . grouped_ciphertext_hi
1637+ . try_extract_ciphertext ( 2 )
1638+ . unwrap ( ) ;
1639+
16261640 // setup proofs
16271641 let create_range_proof_context_signer = & [ & range_proof_context_state_account] ;
16281642 let create_equality_proof_context_signer = & [ & equality_proof_context_state_account] ;
@@ -1670,6 +1684,8 @@ async fn command_transfer(
16701684 Some ( & ciphertext_validity_proof_context_proof_account) ,
16711685 Some ( & range_proof_context_proof_account) ,
16721686 transfer_balance,
1687+ Some ( & transfer_amount_auditor_ciphertext_lo) ,
1688+ Some ( & transfer_amount_auditor_ciphertext_hi) ,
16731689 Some ( transfer_account_info) ,
16741690 & args. sender_elgamal_keypair ,
16751691 & args. sender_aes_key ,
0 commit comments