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: PodTransferAmountCiphertextCiphertext containing the low 16 bits of the transfer amount
ciphertext_hi: PodTransferAmountCiphertextCiphertext containing the high 32 bits of the transfer amount
transfer_pubkeys: TransferPubkeysThe transfer public keys associated with a transfer
new_source_ciphertext: PodElGamalCiphertextThe 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 UnsafeUnpin 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