13
13
instruction:: { encode_instruction, TokenInstruction } ,
14
14
proof:: { ProofData , ProofLocation } ,
15
15
} ,
16
- bytemuck:: Zeroable , // `Pod` comes from zk_token_proof_instruction
16
+ bytemuck:: Zeroable ,
17
17
num_enum:: { IntoPrimitive , TryFromPrimitive } ,
18
18
solana_program:: {
19
19
instruction:: { AccountMeta , Instruction } ,
@@ -75,18 +75,18 @@ pub enum ConfidentialTransferInstruction {
75
75
/// `DisableNonConfidentialCredits` instructions to disable.
76
76
///
77
77
/// In order for this instruction to be successfully processed, it must be
78
- /// accompanied by the `VerifyPubkeyValidityProof ` instruction of the
79
- /// `zk_token_proof ` program in the same transaction or the address of a
78
+ /// accompanied by the `VerifyPubkeyValidity ` instruction of the
79
+ /// `zk_elgamal_proof ` program in the same transaction or the address of a
80
80
/// context state account for the proof must be provided.
81
81
///
82
82
/// Accounts expected by this instruction:
83
83
///
84
84
/// * Single owner/delegate
85
85
/// 0. `[writeable]` The SPL Token account.
86
86
/// 1. `[]` The corresponding SPL Token mint.
87
- /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidityProof ` is included
87
+ /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity ` is included
88
88
/// in the same transaction or context state account if
89
- /// `VerifyPubkeyValidityProof ` is pre-verified into a context state
89
+ /// `VerifyPubkeyValidity ` is pre-verified into a context state
90
90
/// account.
91
91
/// 3. `[]` (Optional) Record account if the accompanying proof is to be
92
92
/// read from a record account.
@@ -95,9 +95,9 @@ pub enum ConfidentialTransferInstruction {
95
95
/// * Multisignature owner/delegate
96
96
/// 0. `[writeable]` The SPL Token account.
97
97
/// 1. `[]` The corresponding SPL Token mint.
98
- /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidityProof ` is included
98
+ /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity ` is included
99
99
/// in the same transaction or context state account if
100
- /// `VerifyPubkeyValidityProof ` is pre-verified into a context state
100
+ /// `VerifyPubkeyValidity ` is pre-verified into a context state
101
101
/// account.
102
102
/// 3. `[]` (Optional) Record account if the accompanying proof is to be
103
103
/// read from a record account.
@@ -143,25 +143,25 @@ pub enum ConfidentialTransferInstruction {
143
143
/// token account.
144
144
///
145
145
/// In order for this instruction to be successfully processed, it must be
146
- /// accompanied by the `VerifyZeroBalanceProof ` instruction of the
147
- /// `zk_token_proof ` program in the same transaction or the address of a
146
+ /// accompanied by the `VerifyZeroCiphertext ` instruction of the
147
+ /// `zk_elgamal_proof ` program in the same transaction or the address of a
148
148
/// context state account for the proof must be provided.
149
149
///
150
150
/// * Single owner/delegate
151
151
/// 0. `[writable]` The SPL Token account.
152
- /// 1. `[]` Instructions sysvar if `VerifyZeroBalanceProof ` is included in
152
+ /// 1. `[]` Instructions sysvar if `VerifyZeroCiphertext ` is included in
153
153
/// the same transaction or context state account if
154
- /// `VerifyZeroBalanceProof ` is pre-verified into a context state
154
+ /// `VerifyZeroCiphertext ` is pre-verified into a context state
155
155
/// account.
156
156
/// 2. `[]` (Optional) Record account if the accompanying proof is to be
157
157
/// read from a record account.
158
158
/// 3. `[signer]` The single account owner.
159
159
///
160
160
/// * Multisignature owner/delegate
161
161
/// 0. `[writable]` The SPL Token account.
162
- /// 1. `[]` Instructions sysvar if `VerifyZeroBalanceProof ` is included in
162
+ /// 1. `[]` Instructions sysvar if `VerifyZeroCiphertext ` is included in
163
163
/// the same transaction or context state account if
164
- /// `VerifyZeroBalanceProof ` is pre-verified into a context state
164
+ /// `VerifyZeroCiphertext ` is pre-verified into a context state
165
165
/// account.
166
166
/// 2. `[]` (Optional) Record account if the accompanying proof is to be
167
167
/// read from a record account.
@@ -251,10 +251,10 @@ pub enum ConfidentialTransferInstruction {
251
251
/// Transfer tokens confidentially.
252
252
///
253
253
/// In order for this instruction to be successfully processed, it must be
254
- /// accompanied by the following list of `zk_token_proof ` program
254
+ /// accompanied by the following list of `zk_elgamal_proof ` program
255
255
/// instructions:
256
- /// - `VerifyCiphertextCommitmentEqualityProof `
257
- /// - `VerifyBatchedGroupedCiphertext3HandlesValidityProof `
256
+ /// - `VerifyCiphertextCommitmentEquality `
257
+ /// - `VerifyBatchedGroupedCiphertext3HandlesValidity `
258
258
/// - `VerifyBatchedRangeProofU128`
259
259
/// These instructions can be accompanied in the same transaction or can be
260
260
/// pre-verified into a context state account, in which case, only their
@@ -267,7 +267,7 @@ pub enum ConfidentialTransferInstruction {
267
267
/// 2. `[]` The token mint.
268
268
/// 3. `[writable]` The destination SPL Token account.
269
269
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
270
- /// `zk_token_proof ` instructions are included in the same transaction.
270
+ /// `zk_elgamal_proof ` instructions are included in the same transaction.
271
271
/// 5. `[]` (Optional) Equality proof record account or context state
272
272
/// account.
273
273
/// 6. `[]` (Optional) Ciphertext validity proof record account or context
@@ -281,7 +281,7 @@ pub enum ConfidentialTransferInstruction {
281
281
/// 2. `[]` The token mint.
282
282
/// 3. `[writable]` The destination SPL Token account.
283
283
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
284
- /// `zk_token_proof ` instructions are included in the same transaction.
284
+ /// `zk_elgamal_proof ` instructions are included in the same transaction.
285
285
/// 5. `[]` (Optional) Equality proof record account or context state
286
286
/// account.
287
287
/// 6. `[]` (Optional) Ciphertext validity proof record account or context
@@ -412,13 +412,13 @@ pub enum ConfidentialTransferInstruction {
412
412
/// Transfer tokens confidentially with fee.
413
413
///
414
414
/// In order for this instruction to be successfully processed, it must be
415
- /// accompanied by the following list of `zk_token_proof ` program
415
+ /// accompanied by the following list of `zk_elgamal_proof ` program
416
416
/// instructions:
417
- /// - `VerifyCiphertextCommitmentEqualityProof `
418
- /// - `VerifyBatchedGroupedCiphertext3HandlesValidityProof ` (transfer amount
417
+ /// - `VerifyCiphertextCommitmentEquality `
418
+ /// - `VerifyBatchedGroupedCiphertext3HandlesValidity ` (transfer amount
419
419
/// ciphertext)
420
- /// - `FeeSigmaProof `
421
- /// - `VerifyBatchedGroupedCiphertext2HandlesValidityProof ` (fee ciphertext)
420
+ /// - `VerifyPercentageWithFee `
421
+ /// - `VerifyBatchedGroupedCiphertext2HandlesValidity ` (fee ciphertext)
422
422
/// - `VerifyBatchedRangeProofU256`
423
423
/// These instructions can be accompanied in the same transaction or can be
424
424
/// pre-verified into a context state account, in which case, only their
@@ -433,7 +433,7 @@ pub enum ConfidentialTransferInstruction {
433
433
/// 2. `[]` The token mint.
434
434
/// 3. `[writable]` The destination SPL Token account.
435
435
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
436
- /// `zk_token_proof ` instructions are included in the same transaction.
436
+ /// `zk_elgamal_proof ` instructions are included in the same transaction.
437
437
/// 5. `[]` (Optional) Equality proof record account or context state
438
438
/// account.
439
439
/// 6. `[]` (Optional) Transfer amount ciphertext validity proof record
@@ -451,7 +451,7 @@ pub enum ConfidentialTransferInstruction {
451
451
/// 2. `[]` The token mint.
452
452
/// 3. `[writable]` The destination SPL Token account.
453
453
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
454
- /// `zk_token_proof ` instructions are included in the same transaction.
454
+ /// `zk_elgamal_proof ` instructions are included in the same transaction.
455
455
/// 5. `[]` (Optional) Equality proof record account or context state
456
456
/// account.
457
457
/// 6. `[]` (Optional) Transfer amount ciphertext validity proof record
@@ -511,7 +511,7 @@ pub struct ConfigureAccountInstructionData {
511
511
/// The maximum number of despots and transfers that an account can receiver
512
512
/// before the `ApplyPendingBalance` is executed
513
513
pub maximum_pending_balance_credit_counter : PodU64 ,
514
- /// Relative location of the `ProofInstruction::ZeroBalanceProof `
514
+ /// Relative location of the `ProofInstruction::ZeroCiphertextProof `
515
515
/// instruction to the `ConfigureAccount` instruction in the
516
516
/// transaction. If the offset is `0`, then use a context state account
517
517
/// for the proof.
@@ -576,12 +576,12 @@ pub struct TransferInstructionData {
576
576
#[ cfg_attr( feature = "serde-traits" , serde( with = "aeciphertext_fromstr" ) ) ]
577
577
pub new_source_decryptable_available_balance : DecryptableBalance ,
578
578
/// Relative location of the
579
- /// `ProofInstruction::VerifyCiphertextCommitmentEqualityProof ` instruction
579
+ /// `ProofInstruction::VerifyCiphertextCommitmentEquality ` instruction
580
580
/// to the `Transfer` instruction in the transaction. If the offset is
581
581
/// `0`, then use a context state account for the proof.
582
582
pub equality_proof_instruction_offset : i8 ,
583
583
/// Relative location of the
584
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidityProof `
584
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity `
585
585
/// instruction to the `Transfer` instruction in the transaction. If the
586
586
/// offset is `0`, then use a context state account for the proof.
587
587
pub ciphertext_validity_proof_instruction_offset : i8 ,
@@ -615,23 +615,23 @@ pub struct TransferWithFeeInstructionData {
615
615
#[ cfg_attr( feature = "serde-traits" , serde( with = "aeciphertext_fromstr" ) ) ]
616
616
pub new_source_decryptable_available_balance : DecryptableBalance ,
617
617
/// Relative location of the
618
- /// `ProofInstruction::VerifyCiphertextCommitmentEqualityProof ` instruction
618
+ /// `ProofInstruction::VerifyCiphertextCommitmentEquality ` instruction
619
619
/// to the `TransferWithFee` instruction in the transaction. If the offset
620
620
/// is `0`, then use a context state account for the proof.
621
621
pub equality_proof_instruction_offset : i8 ,
622
622
/// Relative location of the
623
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidityProof `
623
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity `
624
624
/// instruction to the `TransferWithFee` instruction in the transaction.
625
625
/// If the offset is `0`, then use a context state account for the
626
626
/// proof.
627
627
pub transfer_amount_ciphertext_validity_proof_instruction_offset : i8 ,
628
- /// Relative location of the `ProofInstruction::VerifyFeeSigmaProof `
628
+ /// Relative location of the `ProofInstruction::VerifyPercentageWithFee `
629
629
/// instruction to the `TransferWithFee` instruction in the transaction.
630
630
/// If the offset is `0`, then use a context state account for the
631
631
/// proof.
632
632
pub fee_sigma_proof_instruction_offset : i8 ,
633
633
/// Relative location of the
634
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext2HandlesValidityProof `
634
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext2HandlesValidity `
635
635
/// instruction to the `TransferWithFee` instruction in the transaction.
636
636
/// If the offset is `0`, then use a context state account for the
637
637
/// proof.
0 commit comments