#[repr(C)]pub struct TransferPubkeys {
pub source_pubkey: ElGamalPubkey,
pub destination_pubkey: ElGamalPubkey,
pub auditor_pubkey: ElGamalPubkey,
}
Expand description
The ElGamal public keys needed for a transfer
Fields§
§source_pubkey: ElGamalPubkey
§destination_pubkey: ElGamalPubkey
§auditor_pubkey: ElGamalPubkey
Implementations§
Source§impl TransferPubkeys
impl TransferPubkeys
pub fn to_bytes(&self) -> [u8; 96]
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ProofError>
Trait Implementations§
Source§impl Clone for TransferPubkeys
impl Clone for TransferPubkeys
Source§fn clone(&self) -> TransferPubkeys
fn clone(&self) -> TransferPubkeys
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<TransferPubkeys> for TransferPubkeys
impl From<TransferPubkeys> for TransferPubkeys
Source§fn from(keys: TransferPubkeys) -> Self
fn from(keys: TransferPubkeys) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TransferPubkeys> for TransferPubkeys
impl TryFrom<TransferPubkeys> for TransferPubkeys
Source§type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TransferPubkeys
impl RefUnwindSafe for TransferPubkeys
impl Send for TransferPubkeys
impl Sync for TransferPubkeys
impl Unpin for TransferPubkeys
impl UnwindSafe for TransferPubkeys
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