Struct spl_token_2022::extension::confidential_transfer::instruction::transfer_with_fee::TransferWithFeeProof
source · [−]#[repr(C)]pub struct TransferWithFeeProof {
pub commitment_new_source: PedersenCommitment,
pub commitment_claimed: PedersenCommitment,
pub equality_proof: CtxtCommEqualityProof,
pub ciphertext_amount_validity_proof: AggregatedValidityProof,
pub fee_sigma_proof: FeeSigmaProof,
pub ciphertext_fee_validity_proof: ValidityProof,
pub range_proof: RangeProof256,
}
Fields
commitment_new_source: PedersenCommitment
commitment_claimed: PedersenCommitment
equality_proof: CtxtCommEqualityProof
ciphertext_amount_validity_proof: AggregatedValidityProof
fee_sigma_proof: FeeSigmaProof
ciphertext_fee_validity_proof: ValidityProof
range_proof: RangeProof256
Implementations
sourceimpl TransferWithFeeProof
impl TransferWithFeeProof
pub fn new(
transfer_amount_lo_data: (u32, &TransferAmountEncryption, &PedersenOpening),
transfer_amount_hi_data: (u32, &TransferAmountEncryption, &PedersenOpening),
keypair_source: &ElGamalKeypair,
(&ElGamalPubkey, &ElGamalPubkey),
(u64, &ElGamalCiphertext),
(u64, &FeeEncryption, &PedersenOpening),
delta_fee: u64,
pubkey_withdraw_withheld_authority: &ElGamalPubkey,
fee_parameters: FeeParameters,
transcript: &mut Transcript
) -> TransferWithFeeProof
pub fn verify(
&self,
ciphertext_lo: &TransferAmountEncryption,
ciphertext_hi: &TransferAmountEncryption,
transfer_with_fee_pubkeys: &TransferWithFeePubkeys,
new_spendable_ciphertext: &ElGamalCiphertext,
ciphertext_fee: &FeeEncryption,
fee_parameters: FeeParameters,
transcript: &mut Transcript
) -> Result<(), ProofError>
Trait Implementations
sourceimpl Clone for TransferWithFeeProof
impl Clone for TransferWithFeeProof
sourcefn clone(&self) -> TransferWithFeeProof
fn clone(&self) -> TransferWithFeeProof
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for TransferWithFeeProof
impl Pod for TransferWithFeeProof
Auto Trait Implementations
impl RefUnwindSafe for TransferWithFeeProof
impl Send for TransferWithFeeProof
impl Sync for TransferWithFeeProof
impl Unpin for TransferWithFeeProof
impl UnwindSafe for TransferWithFeeProof
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more