Struct safe_token_2022::extension::confidential_transfer::instruction::transfer_with_fee::FeeEncryption
source · pub struct FeeEncryption {
pub commitment: PedersenCommitment,
pub destination_handle: DecryptHandle,
pub withdraw_withheld_authority_handle: DecryptHandle,
}
Fields§
§commitment: PedersenCommitment
§destination_handle: DecryptHandle
Implementations§
source§impl FeeEncryption
impl FeeEncryption
pub fn new( amount: u64, destination_pubkey: &ElGamalPubkey, withdraw_withheld_authority_pubkey: &ElGamalPubkey ) -> (FeeEncryption, PedersenOpening)
pub fn to_pod(&self) -> FeeEncryption
Trait Implementations§
source§impl Clone for FeeEncryption
impl Clone for FeeEncryption
source§fn clone(&self) -> FeeEncryption
fn clone(&self) -> FeeEncryption
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 moresource§impl TryFrom<FeeEncryption> for FeeEncryption
impl TryFrom<FeeEncryption> for FeeEncryption
§type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
source§fn try_from(
pod: FeeEncryption
) -> Result<FeeEncryption, <FeeEncryption as TryFrom<FeeEncryption>>::Error>
fn try_from( pod: FeeEncryption ) -> Result<FeeEncryption, <FeeEncryption as TryFrom<FeeEncryption>>::Error>
Performs the conversion.