#[repr(C)]pub struct TransferWithFeeProof {
pub new_source_commitment: PedersenCommitment,
pub claimed_commitment: PedersenCommitment,
pub equality_proof: CtxtCommEqualityProof,
pub ciphertext_amount_validity_proof: AggregatedValidityProof,
pub fee_sigma_proof: FeeSigmaProof,
pub fee_ciphertext_validity_proof: AggregatedValidityProof,
pub range_proof: RangeProof256,
}
Fields§
§new_source_commitment: PedersenCommitment
§claimed_commitment: PedersenCommitment
§equality_proof: CtxtCommEqualityProof
§ciphertext_amount_validity_proof: AggregatedValidityProof
§fee_sigma_proof: FeeSigmaProof
§fee_ciphertext_validity_proof: AggregatedValidityProof
§range_proof: RangeProof256
Implementations§
source§impl TransferWithFeeProof
impl TransferWithFeeProof
pub fn new( transfer_amount_lo_data: (u64, &TransferAmountEncryption, &PedersenOpening), transfer_amount_hi_data: (u64, &TransferAmountEncryption, &PedersenOpening), source_keypair: &ElGamalKeypair, (destination_pubkey, auditor_pubkey): (&ElGamalPubkey, &ElGamalPubkey), (source_new_balance, new_source_ciphertext): (u64, &ElGamalCiphertext), (fee_amount_lo, fee_ciphertext_lo, opening_fee_lo): (u64, &FeeEncryption, &PedersenOpening), (fee_amount_hi, fee_ciphertext_hi, opening_fee_hi): (u64, &FeeEncryption, &PedersenOpening), delta_fee: u64, withdraw_withheld_authority_pubkey: &ElGamalPubkey, fee_parameters: FeeParameters, transcript: &mut Transcript ) -> Self
pub fn verify( &self, ciphertext_lo: &TransferAmountEncryption, ciphertext_hi: &TransferAmountEncryption, transfer_with_fee_pubkeys: &TransferWithFeePubkeys, new_spendable_ciphertext: &ElGamalCiphertext, fee_ciphertext_lo: &FeeEncryption, fee_ciphertext_hi: &FeeEncryption, fee_parameters: FeeParameters, transcript: &mut Transcript ) -> Result<(), ProofError>
Trait Implementations§
source§impl Clone for TransferWithFeeProof
impl Clone for TransferWithFeeProof
source§fn clone(&self) -> TransferWithFeeProof
fn clone(&self) -> TransferWithFeeProof
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 moreimpl Copy for TransferWithFeeProof
impl Pod for TransferWithFeeProof
Auto Trait Implementations§
impl RefUnwindSafe for TransferWithFeeProof
impl Send for TransferWithFeeProof
impl Sync for TransferWithFeeProof
impl Unpin for TransferWithFeeProof
impl UnwindSafe for TransferWithFeeProof
Blanket Implementations§
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
.