#[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
Source§type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for FeeEncryption
impl RefUnwindSafe for FeeEncryption
impl Send for FeeEncryption
impl Sync for FeeEncryption
impl Unpin for FeeEncryption
impl UnwindSafe for FeeEncryption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more