spl_token_confidential_transfer_proof_extraction::transfer_with_fee

Struct TransferWithFeeProofContext

Source
pub struct TransferWithFeeProofContext {
    pub ciphertext_lo: PodTransferAmountCiphertext,
    pub ciphertext_hi: PodTransferAmountCiphertext,
    pub transfer_with_fee_pubkeys: TransferWithFeePubkeys,
    pub new_source_ciphertext: PodElGamalCiphertext,
    pub fee_ciphertext_lo: PodFeeCiphertext,
    pub fee_ciphertext_hi: PodFeeCiphertext,
}
Expand description

The proof context information needed to process a [Transfer] instruction with fee.

Fields§

§ciphertext_lo: PodTransferAmountCiphertext

Group encryption of the low 16 bits of the transfer amount

§ciphertext_hi: PodTransferAmountCiphertext

Group encryption of the high 48 bits of the transfer amount

§transfer_with_fee_pubkeys: TransferWithFeePubkeys

The public encryption keys associated with the transfer: source, dest, auditor, and withdraw withheld authority

§new_source_ciphertext: PodElGamalCiphertext

The final spendable ciphertext after the transfer,

§fee_ciphertext_lo: PodFeeCiphertext

The transfer fee encryption of the low 16 bits of the transfer fee amount

§fee_ciphertext_hi: PodFeeCiphertext

The transfer fee encryption of the hi 32 bits of the transfer fee amount

Implementations§

Source§

impl TransferWithFeeProofContext

Source

pub fn verify_and_extract( equality_proof_context: &CiphertextCommitmentEqualityProofContext, transfer_amount_ciphertext_validity_proof_context: &BatchedGroupedCiphertext3HandlesValidityProofContext, fee_sigma_proof_context: &PercentageWithCapProofContext, fee_ciphertext_validity_proof_context: &BatchedGroupedCiphertext2HandlesValidityProofContext, range_proof_context: &BatchedRangeProofContext, expected_fee_rate_basis_points: u16, expected_maximum_fee: u64, ) -> Result<Self, TokenProofExtractionError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V