#[repr(C)]pub struct TransferInstructionData {
pub new_source_decryptable_available_balance: DecryptableBalance,
pub transfer_amount_auditor_ciphertext_lo: PodElGamalCiphertext,
pub transfer_amount_auditor_ciphertext_hi: PodElGamalCiphertext,
pub equality_proof_instruction_offset: i8,
pub ciphertext_validity_proof_instruction_offset: i8,
pub range_proof_instruction_offset: i8,
}
Expand description
Data expected by ConfidentialTransferInstruction::Transfer
Fields§
§new_source_decryptable_available_balance: DecryptableBalance
The new source decryptable balance if the transfer succeeds
transfer_amount_auditor_ciphertext_lo: PodElGamalCiphertext
The transfer amount encrypted under the auditor ElGamal public key
transfer_amount_auditor_ciphertext_hi: PodElGamalCiphertext
The transfer amount encrypted under the auditor ElGamal public key
equality_proof_instruction_offset: i8
Relative location of the
ProofInstruction::VerifyCiphertextCommitmentEquality
instruction
to the Transfer
instruction in the transaction. If the offset is
0
, then use a context state account for the proof.
ciphertext_validity_proof_instruction_offset: i8
Relative location of the
ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity
instruction to the Transfer
instruction in the transaction. If the
offset is 0
, then use a context state account for the proof.
range_proof_instruction_offset: i8
Relative location of the ProofInstruction::BatchedRangeProofU128Data
instruction to the Transfer
instruction in the transaction. If the
offset is 0
, then use a context state account for the proof.
Trait Implementations§
Source§impl Clone for TransferInstructionData
impl Clone for TransferInstructionData
Source§fn clone(&self) -> TransferInstructionData
fn clone(&self) -> TransferInstructionData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransferInstructionData
impl Debug for TransferInstructionData
Source§impl PartialEq for TransferInstructionData
impl PartialEq for TransferInstructionData
impl Copy for TransferInstructionData
impl Pod for TransferInstructionData
impl StructuralPartialEq for TransferInstructionData
Auto Trait Implementations§
impl Freeze for TransferInstructionData
impl RefUnwindSafe for TransferInstructionData
impl Send for TransferInstructionData
impl Sync for TransferInstructionData
impl Unpin for TransferInstructionData
impl UnwindSafe for TransferInstructionData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more