#[repr(C)]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 ) -> (Self, 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 From<TransferAmountEncryption> for TransferAmountEncryption
impl From<TransferAmountEncryption> for TransferAmountEncryption
source§fn from(ciphertext: TransferAmountEncryption) -> Self
fn from(ciphertext: TransferAmountEncryption) -> Self
Converts to this type from the input type.
source§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.