1
1
#[ cfg( not( target_os = "solana" ) ) ]
2
- use solana_zk_sdk :: encryption :: pod :: elgamal :: PodElGamalPubkey ;
2
+ use crate :: proof :: { process_proof_location , ProofLocation } ;
3
3
#[ cfg( not( target_os = "solana" ) ) ]
4
4
use solana_zk_sdk:: encryption:: { auth_encryption:: AeCiphertext , elgamal:: ElGamalPubkey } ;
5
5
#[ cfg( not( target_os = "solana" ) ) ]
@@ -10,31 +10,26 @@ use solana_zk_sdk::zk_elgamal_proof_program::{
10
10
CiphertextCiphertextEqualityProofData , CiphertextCommitmentEqualityProofData ,
11
11
} ,
12
12
} ;
13
- #[ cfg( not( target_os = "solana" ) ) ]
14
- use {
15
- crate :: extension:: confidential_transfer:: DecryptableBalance ,
16
- bytemuck:: { Pod , Zeroable } ,
17
- num_enum:: { IntoPrimitive , TryFromPrimitive } ,
18
- solana_program:: pubkey:: Pubkey ,
19
- solana_zk_sdk:: encryption:: pod:: auth_encryption:: PodAeCiphertext ,
20
- spl_pod:: optional_keys:: OptionalNonZeroElGamalPubkey ,
21
- } ;
22
13
#[ cfg( feature = "serde-traits" ) ]
23
14
use {
24
15
crate :: serialization:: aeciphertext_fromstr,
25
16
serde:: { Deserialize , Serialize } ,
26
17
} ;
27
- #[ cfg( not( target_os = "solana" ) ) ]
28
18
use {
29
19
crate :: {
30
20
check_program_account,
21
+ extension:: confidential_transfer:: DecryptableBalance ,
31
22
instruction:: { encode_instruction, TokenInstruction } ,
32
- proof:: { process_proof_location, ProofLocation } ,
33
23
} ,
24
+ bytemuck:: { Pod , Zeroable } ,
25
+ num_enum:: { IntoPrimitive , TryFromPrimitive } ,
34
26
solana_program:: {
35
27
instruction:: { AccountMeta , Instruction } ,
36
28
program_error:: ProgramError ,
29
+ pubkey:: Pubkey ,
37
30
} ,
31
+ solana_zk_sdk:: encryption:: pod:: { auth_encryption:: PodAeCiphertext , elgamal:: PodElGamalPubkey } ,
32
+ spl_pod:: optional_keys:: OptionalNonZeroElGamalPubkey ,
38
33
} ;
39
34
40
35
/// Confidential Transfer extension instructions
@@ -281,7 +276,6 @@ pub struct BurnInstructionData {
281
276
}
282
277
283
278
/// Create a `InitializeMint` instruction
284
- #[ cfg( not( target_os = "solana" ) ) ]
285
279
pub fn initialize_mint (
286
280
token_program_id : & Pubkey ,
287
281
mint : & Pubkey ,
@@ -304,7 +298,6 @@ pub fn initialize_mint(
304
298
}
305
299
306
300
/// Create a `UpdateMint` instruction
307
- #[ cfg( not( target_os = "solana" ) ) ]
308
301
pub fn update_authority (
309
302
token_program_id : & Pubkey ,
310
303
mint : & Pubkey ,
0 commit comments