#[repr(C)]
pub struct ConfidentialTransferAccount { pub approved: PodBool, pub encryption_pubkey: EncryptionPubkey, pub pending_balance: EncryptedBalance, pub available_balance: EncryptedBalance, pub decryptable_available_balance: DecryptableBalance, pub allow_balance_credits: PodBool, pub 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: EncryptedBalance

The pending balance (encrypted by pubkey_elgamal)

available_balance: EncryptedBalance

The available balance (encrypted by pubkey_elgamal)

decryptable_available_balance: DecryptableBalance

The decryptable available balance

allow_balance_credits: PodBool

pending_balance may only be credited by Deposit or Transfer instructions if true

pending_balance_credit_counter: PodU64

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

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

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 !=.

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.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.