#[repr(C)]
pub struct ConfidentialTransferAccount {
Show 13 fields pub approved: PodBool, pub encryption_pubkey: EncryptionPubkey, pub pending_balance_lo: EncryptedBalance, pub pending_balance_hi: EncryptedBalance, pub available_balance: EncryptedBalance, pub decryptable_available_balance: DecryptableBalance, pub allow_confidential_credits: PodBool, pub allow_non_confidential_credits: PodBool, pub pending_balance_credit_counter: PodU64, pub maximum_pending_balance_credit_counter: PodU64, pub expected_pending_balance_credit_counter: PodU64, pub actual_pending_balance_credit_counter: PodU64, pub withheld_amount: EncryptedWithheldAmount,
}
Expand description

Confidential account state

Fields

approved: PodBool

true if this account has been approved for use. All confidential transfer operations for the account will fail until approval is granted.

encryption_pubkey: EncryptionPubkey

The public key associated with ElGamal encryption

pending_balance_lo: EncryptedBalance

The low 16 bits of the pending balance (encrypted by encryption_pubkey)

pending_balance_hi: EncryptedBalance

The high 48 bits of the pending balance (encrypted by encryption_pubkey)

available_balance: EncryptedBalance

The available balance (encrypted by encrypiton_pubkey)

decryptable_available_balance: DecryptableBalance

The decryptable available balance

allow_confidential_credits: PodBool

If false, the extended account rejects any incoming confidential transfers

allow_non_confidential_credits: PodBool

If false, the base account rejects any incoming transfers

pending_balance_credit_counter: PodU64

The total number of Deposit and Transfer instructions that have credited pending_balance

maximum_pending_balance_credit_counter: PodU64

The maximum number of Deposit and Transfer instructions that can credit pending_balance before the ApplyPendingBalance instruction is executed

expected_pending_balance_credit_counter: PodU64

The expected_pending_balance_credit_counter value that was included in the last ApplyPendingBalance instruction

actual_pending_balance_credit_counter: PodU64

The actual pending_balance_credit_counter when the last ApplyPendingBalance instruction was executed

withheld_amount: EncryptedWithheldAmount

The withheld amount of fees. This will always be zero if fees are never enabled.

Implementations

Check if a ConfidentialTransferAccount has been approved for use

Check if a ConfidentialTransferAccount is in a closable state

Check if a base account of a ConfidentialTransferAccount accepts non-confidential transfers

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Associated extension type enum, checked at the start of TLV entries
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
If this function returns true, then it must be valid to reinterpret bits as &Self. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.