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