This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
token/confidential-transfer Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change 5
5
} ,
6
6
solana_zk_sdk:: {
7
7
encryption:: {
8
- auth_encryption:: { AeCiphertext , AeKey } ,
9
8
elgamal:: { ElGamalCiphertext , ElGamalKeypair , ElGamalPubkey } ,
10
9
pedersen:: Pedersen ,
11
10
} ,
@@ -28,15 +27,13 @@ pub struct MintProofData {
28
27
pub ciphertext_validity_proof_data_with_ciphertext :
29
28
CiphertextValidityProofWithAuditorCiphertext ,
30
29
pub range_proof_data : BatchedRangeProofU128Data ,
31
- pub new_decryptable_supply : AeCiphertext ,
32
30
}
33
31
34
32
pub fn mint_split_proof_data (
35
33
current_supply_ciphertext : & ElGamalCiphertext ,
36
34
mint_amount : u64 ,
37
35
current_supply : u64 ,
38
36
supply_elgamal_keypair : & ElGamalKeypair ,
39
- supply_aes_key : & AeKey ,
40
37
destination_elgamal_pubkey : & ElGamalPubkey ,
41
38
auditor_elgamal_pubkey : Option < & ElGamalPubkey > ,
42
39
) -> Result < MintProofData , TokenProofGenerationError > {
@@ -161,6 +158,5 @@ pub fn mint_split_proof_data(
161
158
equality_proof_data,
162
159
ciphertext_validity_proof_data_with_ciphertext,
163
160
range_proof_data,
164
- new_decryptable_supply : supply_aes_key. encrypt ( new_supply) ,
165
161
} )
166
162
}
Original file line number Diff line number Diff line change @@ -222,21 +222,18 @@ fn test_mint_validity(mint_amount: u64, supply: u64) {
222
222
let auditor_pubkey = auditor_keypair. pubkey ( ) ;
223
223
224
224
let supply_keypair = ElGamalKeypair :: new_rand ( ) ;
225
- let supply_aes_key = AeKey :: new_rand ( ) ;
226
225
227
226
let supply_ciphertext = supply_keypair. pubkey ( ) . encrypt ( supply) ;
228
227
229
228
let MintProofData {
230
229
equality_proof_data,
231
230
ciphertext_validity_proof_data_with_ciphertext,
232
231
range_proof_data,
233
- new_decryptable_supply : _,
234
232
} = mint_split_proof_data (
235
233
& supply_ciphertext,
236
234
mint_amount,
237
235
supply,
238
236
& supply_keypair,
239
- & supply_aes_key,
240
237
destination_pubkey,
241
238
Some ( auditor_pubkey) ,
242
239
)
You can’t perform that action at this time.
0 commit comments