@@ -57,10 +57,13 @@ use {
57
57
transfer_hook:: TransferHook ,
58
58
BaseStateWithExtensions , ExtensionType , StateWithExtensionsOwned ,
59
59
} ,
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 ,
64
67
} ,
65
68
state:: { Account , AccountState , Mint } ,
66
69
} ,
@@ -1623,6 +1626,17 @@ async fn command_transfer(
1623
1626
)
1624
1627
. unwrap ( ) ;
1625
1628
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
+
1626
1640
// setup proofs
1627
1641
let create_range_proof_context_signer = & [ & range_proof_context_state_account] ;
1628
1642
let create_equality_proof_context_signer = & [ & equality_proof_context_state_account] ;
@@ -1670,6 +1684,8 @@ async fn command_transfer(
1670
1684
Some ( & ciphertext_validity_proof_context_proof_account) ,
1671
1685
Some ( & range_proof_context_proof_account) ,
1672
1686
transfer_balance,
1687
+ Some ( & transfer_amount_auditor_ciphertext_lo) ,
1688
+ Some ( & transfer_amount_auditor_ciphertext_hi) ,
1673
1689
Some ( transfer_account_info) ,
1674
1690
& args. sender_elgamal_keypair ,
1675
1691
& args. sender_aes_key ,
0 commit comments