Struct spl_token_2022::extension::confidential_transfer::ciphertext_extraction::SourceDecryptHandles
source · #[repr(C)]pub struct SourceDecryptHandles {
pub lo: DecryptHandle,
pub hi: DecryptHandle,
}
Expand description
The ElGamal ciphertext decryption handle pertaining to the low and high bits of the transfer amount under the source public key of the transfer.
The TransferProofContext
contains decryption handles for the low and high
bits of the transfer amount. Howver, these decryption handles were
(mistakenly) removed from the split proof contexts as a form of
optimization. These components should be added back into these split proofs
in zk-token-sdk
. Until this modifications is made, include
SourceDecryptHandle
in the transfer instruction data.
Fields§
§lo: DecryptHandle
The ElGamal decryption handle pertaining to the low 16 bits of the transfer amount.
hi: DecryptHandle
The ElGamal decryption handle pertaining to the low 32 bits of the transfer amount.
Trait Implementations§
source§impl Clone for SourceDecryptHandles
impl Clone for SourceDecryptHandles
source§fn clone(&self) -> SourceDecryptHandles
fn clone(&self) -> SourceDecryptHandles
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 Debug for SourceDecryptHandles
impl Debug for SourceDecryptHandles
source§impl Default for SourceDecryptHandles
impl Default for SourceDecryptHandles
source§fn default() -> SourceDecryptHandles
fn default() -> SourceDecryptHandles
Returns the “default value” for a type. Read more
source§impl PartialEq for SourceDecryptHandles
impl PartialEq for SourceDecryptHandles
source§fn eq(&self, other: &SourceDecryptHandles) -> bool
fn eq(&self, other: &SourceDecryptHandles) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SourceDecryptHandles
impl Pod for SourceDecryptHandles
impl StructuralPartialEq for SourceDecryptHandles
Auto Trait Implementations§
impl RefUnwindSafe for SourceDecryptHandles
impl Send for SourceDecryptHandles
impl Sync for SourceDecryptHandles
impl Unpin for SourceDecryptHandles
impl UnwindSafe for SourceDecryptHandles
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.