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
88
- /// in the same transaction or context state account if
89
- /// `VerifyPubkeyValidityProof ` is pre-verified into a context state
87
+ /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity ` is included in
88
+ /// the same transaction or context state account if
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
99
- /// in the same transaction or context state account if
100
- /// `VerifyPubkeyValidityProof ` is pre-verified into a context state
98
+ /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity ` is included in
99
+ /// the same transaction or context state account if
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,8 @@ 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
271
+ /// transaction.
271
272
/// 5. `[]` (Optional) Equality proof record account or context state
272
273
/// account.
273
274
/// 6. `[]` (Optional) Ciphertext validity proof record account or context
@@ -281,7 +282,8 @@ pub enum ConfidentialTransferInstruction {
281
282
/// 2. `[]` The token mint.
282
283
/// 3. `[writable]` The destination SPL Token account.
283
284
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
284
- /// `zk_token_proof` instructions are included in the same transaction.
285
+ /// `zk_elgamal_proof` instructions are included in the same
286
+ /// transaction.
285
287
/// 5. `[]` (Optional) Equality proof record account or context state
286
288
/// account.
287
289
/// 6. `[]` (Optional) Ciphertext validity proof record account or context
@@ -412,13 +414,13 @@ pub enum ConfidentialTransferInstruction {
412
414
/// Transfer tokens confidentially with fee.
413
415
///
414
416
/// In order for this instruction to be successfully processed, it must be
415
- /// accompanied by the following list of `zk_token_proof ` program
417
+ /// accompanied by the following list of `zk_elgamal_proof ` program
416
418
/// instructions:
417
- /// - `VerifyCiphertextCommitmentEqualityProof `
418
- /// - `VerifyBatchedGroupedCiphertext3HandlesValidityProof ` (transfer amount
419
+ /// - `VerifyCiphertextCommitmentEquality `
420
+ /// - `VerifyBatchedGroupedCiphertext3HandlesValidity ` (transfer amount
419
421
/// ciphertext)
420
- /// - `FeeSigmaProof `
421
- /// - `VerifyBatchedGroupedCiphertext2HandlesValidityProof ` (fee ciphertext)
422
+ /// - `VerifyPercentageWithFee `
423
+ /// - `VerifyBatchedGroupedCiphertext2HandlesValidity ` (fee ciphertext)
422
424
/// - `VerifyBatchedRangeProofU256`
423
425
/// These instructions can be accompanied in the same transaction or can be
424
426
/// pre-verified into a context state account, in which case, only their
@@ -433,7 +435,8 @@ pub enum ConfidentialTransferInstruction {
433
435
/// 2. `[]` The token mint.
434
436
/// 3. `[writable]` The destination SPL Token account.
435
437
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
436
- /// `zk_token_proof` instructions are included in the same transaction.
438
+ /// `zk_elgamal_proof` instructions are included in the same
439
+ /// transaction.
437
440
/// 5. `[]` (Optional) Equality proof record account or context state
438
441
/// account.
439
442
/// 6. `[]` (Optional) Transfer amount ciphertext validity proof record
@@ -451,7 +454,8 @@ pub enum ConfidentialTransferInstruction {
451
454
/// 2. `[]` The token mint.
452
455
/// 3. `[writable]` The destination SPL Token account.
453
456
/// 4. `[]` (Optional) Instructions sysvar if at least one of the
454
- /// `zk_token_proof` instructions are included in the same transaction.
457
+ /// `zk_elgamal_proof` instructions are included in the same
458
+ /// transaction.
455
459
/// 5. `[]` (Optional) Equality proof record account or context state
456
460
/// account.
457
461
/// 6. `[]` (Optional) Transfer amount ciphertext validity proof record
@@ -511,7 +515,7 @@ pub struct ConfigureAccountInstructionData {
511
515
/// The maximum number of despots and transfers that an account can receiver
512
516
/// before the `ApplyPendingBalance` is executed
513
517
pub maximum_pending_balance_credit_counter : PodU64 ,
514
- /// Relative location of the `ProofInstruction::ZeroBalanceProof `
518
+ /// Relative location of the `ProofInstruction::ZeroCiphertextProof `
515
519
/// instruction to the `ConfigureAccount` instruction in the
516
520
/// transaction. If the offset is `0`, then use a context state account
517
521
/// for the proof.
@@ -576,12 +580,12 @@ pub struct TransferInstructionData {
576
580
#[ cfg_attr( feature = "serde-traits" , serde( with = "aeciphertext_fromstr" ) ) ]
577
581
pub new_source_decryptable_available_balance : DecryptableBalance ,
578
582
/// Relative location of the
579
- /// `ProofInstruction::VerifyCiphertextCommitmentEqualityProof ` instruction
583
+ /// `ProofInstruction::VerifyCiphertextCommitmentEquality ` instruction
580
584
/// to the `Transfer` instruction in the transaction. If the offset is
581
585
/// `0`, then use a context state account for the proof.
582
586
pub equality_proof_instruction_offset : i8 ,
583
587
/// Relative location of the
584
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidityProof `
588
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity `
585
589
/// instruction to the `Transfer` instruction in the transaction. If the
586
590
/// offset is `0`, then use a context state account for the proof.
587
591
pub ciphertext_validity_proof_instruction_offset : i8 ,
@@ -615,23 +619,23 @@ pub struct TransferWithFeeInstructionData {
615
619
#[ cfg_attr( feature = "serde-traits" , serde( with = "aeciphertext_fromstr" ) ) ]
616
620
pub new_source_decryptable_available_balance : DecryptableBalance ,
617
621
/// Relative location of the
618
- /// `ProofInstruction::VerifyCiphertextCommitmentEqualityProof ` instruction
622
+ /// `ProofInstruction::VerifyCiphertextCommitmentEquality ` instruction
619
623
/// to the `TransferWithFee` instruction in the transaction. If the offset
620
624
/// is `0`, then use a context state account for the proof.
621
625
pub equality_proof_instruction_offset : i8 ,
622
626
/// Relative location of the
623
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidityProof `
627
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity `
624
628
/// instruction to the `TransferWithFee` instruction in the transaction.
625
629
/// If the offset is `0`, then use a context state account for the
626
630
/// proof.
627
631
pub transfer_amount_ciphertext_validity_proof_instruction_offset : i8 ,
628
- /// Relative location of the `ProofInstruction::VerifyFeeSigmaProof `
632
+ /// Relative location of the `ProofInstruction::VerifyPercentageWithFee `
629
633
/// instruction to the `TransferWithFee` instruction in the transaction.
630
634
/// If the offset is `0`, then use a context state account for the
631
635
/// proof.
632
636
pub fee_sigma_proof_instruction_offset : i8 ,
633
637
/// Relative location of the
634
- /// `ProofInstruction::VerifyBatchedGroupedCiphertext2HandlesValidityProof `
638
+ /// `ProofInstruction::VerifyBatchedGroupedCiphertext2HandlesValidity `
635
639
/// instruction to the `TransferWithFee` instruction in the transaction.
636
640
/// If the offset is `0`, then use a context state account for the
637
641
/// proof.
0 commit comments