Struct spl_token_2022::extension::confidential_transfer::instruction::transfer::TransferProof
source · [−]#[repr(C)]pub struct TransferProof {
pub commitment_new_source: PedersenCommitment,
pub equality_proof: CtxtCommEqualityProof,
pub validity_proof: AggregatedValidityProof,
pub range_proof: RangeProof128,
}
Fields
commitment_new_source: PedersenCommitment
New Pedersen commitment for the remaining balance in source
equality_proof: CtxtCommEqualityProof
Associated equality proof
validity_proof: AggregatedValidityProof
Associated ciphertext validity proof
range_proof: RangeProof128
Implementations
sourceimpl TransferProof
impl TransferProof
pub fn new(
(u32, u32),
keypair_source: &ElGamalKeypair,
(&ElGamalPubkey, &ElGamalPubkey),
opening_lo: &PedersenOpening,
opening_hi: &PedersenOpening,
(u64, &ElGamalCiphertext),
transcript: &mut Transcript
) -> TransferProof
pub fn verify(
&self,
ciphertext_lo: &TransferAmountEncryption,
ciphertext_hi: &TransferAmountEncryption,
transfer_pubkeys: &TransferPubkeys,
ciphertext_new_spendable: &ElGamalCiphertext,
transcript: &mut Transcript
) -> Result<(), ProofError>
Trait Implementations
sourceimpl Clone for TransferProof
impl Clone for TransferProof
sourcefn clone(&self) -> TransferProof
fn clone(&self) -> TransferProof
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for TransferProof
impl Pod for TransferProof
Auto Trait Implementations
impl RefUnwindSafe for TransferProof
impl Send for TransferProof
impl Sync for TransferProof
impl Unpin for TransferProof
impl UnwindSafe for TransferProof
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more