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