Struct spl_token_2022::extension::confidential_transfer::instruction::transfer::with_fee::TransferWithFeeProof
source · #[repr(C)]pub struct TransferWithFeeProof {
pub new_source_commitment: PedersenCommitment,
pub claimed_commitment: PedersenCommitment,
pub equality_proof: CiphertextCommitmentEqualityProof,
pub ciphertext_amount_validity_proof: BatchedGroupedCiphertext2HandlesValidityProof,
pub fee_sigma_proof: FeeSigmaProof,
pub fee_ciphertext_validity_proof: BatchedGroupedCiphertext2HandlesValidityProof,
pub range_proof: RangeProofU256,
}
Fields§
§new_source_commitment: PedersenCommitment
§claimed_commitment: PedersenCommitment
§equality_proof: CiphertextCommitmentEqualityProof
§ciphertext_amount_validity_proof: BatchedGroupedCiphertext2HandlesValidityProof
§fee_sigma_proof: FeeSigmaProof
§fee_ciphertext_validity_proof: BatchedGroupedCiphertext2HandlesValidityProof
§range_proof: RangeProofU256
Implementations§
source§impl TransferWithFeeProof
impl TransferWithFeeProof
pub fn new( transfer_amount_lo_data: (u64, &TransferAmountCiphertext, &PedersenOpening), transfer_amount_hi_data: (u64, &TransferAmountCiphertext, &PedersenOpening), source_keypair: &ElGamalKeypair, _: (&ElGamalPubkey, &ElGamalPubkey), _: (u64, &ElGamalCiphertext), _: (u64, &FeeEncryption, &PedersenOpening), _: (u64, &FeeEncryption, &PedersenOpening), delta_fee: u64, withdraw_withheld_authority_pubkey: &ElGamalPubkey, fee_parameters: FeeParameters, transcript: &mut Transcript, ) -> Result<TransferWithFeeProof, ProofGenerationError>
pub fn verify( &self, source_pubkey: &ElGamalPubkey, destination_pubkey: &ElGamalPubkey, auditor_pubkey: &ElGamalPubkey, withdraw_withheld_authority_pubkey: &ElGamalPubkey, ciphertext_lo: &TransferAmountCiphertext, ciphertext_hi: &TransferAmountCiphertext, new_spendable_ciphertext: &ElGamalCiphertext, fee_ciphertext_lo: &FeeEncryption, fee_ciphertext_hi: &FeeEncryption, fee_parameters: FeeParameters, transcript: &mut Transcript, ) -> Result<(), ProofVerificationError>
Trait Implementations§
source§impl Clone for TransferWithFeeProof
impl Clone for TransferWithFeeProof
source§fn clone(&self) -> TransferWithFeeProof
fn clone(&self) -> TransferWithFeeProof
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TransferWithFeeProof
impl Pod for TransferWithFeeProof
Auto Trait Implementations§
impl Freeze for TransferWithFeeProof
impl RefUnwindSafe for TransferWithFeeProof
impl Send for TransferWithFeeProof
impl Sync for TransferWithFeeProof
impl Unpin for TransferWithFeeProof
impl UnwindSafe for TransferWithFeeProof
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
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
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 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>
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