pub struct TransferProofContext {
pub ciphertext_lo: PodTransferAmountCiphertext,
pub ciphertext_hi: PodTransferAmountCiphertext,
pub transfer_pubkeys: TransferPubkeys,
pub new_source_ciphertext: PodElGamalCiphertext,
}
Expand description
The proof context information needed to process a [Transfer] instruction.
Fields§
§ciphertext_lo: PodTransferAmountCiphertext
Ciphertext containing the low 16 bits of the transafer amount
ciphertext_hi: PodTransferAmountCiphertext
Ciphertext containing the high 32 bits of the transafer amount
transfer_pubkeys: TransferPubkeys
The transfer public keys associated with a transfer
new_source_ciphertext: PodElGamalCiphertext
The new source available balance ciphertext
Implementations§
Source§impl TransferProofContext
impl TransferProofContext
pub fn verify_and_extract( equality_proof_context: &CiphertextCommitmentEqualityProofContext, ciphertext_validity_proof_context: &BatchedGroupedCiphertext3HandlesValidityProofContext, range_proof_context: &BatchedRangeProofContext, ) -> Result<Self, TokenProofExtractionError>
Auto Trait Implementations§
impl Freeze for TransferProofContext
impl RefUnwindSafe for TransferProofContext
impl Send for TransferProofContext
impl Sync for TransferProofContext
impl Unpin for TransferProofContext
impl UnwindSafe for TransferProofContext
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> 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