Struct snarkvm_dpc::testnet2::transaction::kernel::TransactionKernel[][src]

pub struct TransactionKernel<C: Testnet2Components> {
Show fields pub old_records: Vec<Record<C>>, pub old_serial_numbers: Vec<<C::AccountSignature as SignatureScheme>::PublicKey>, pub old_randomizers: Vec<Vec<u8>>, pub new_records: Vec<Record<C>>, pub new_sn_nonce_randomness: Vec<[u8; 32]>, pub new_commitments: Vec<<C::RecordCommitment as CommitmentScheme>::Output>, pub new_records_encryption_randomness: Vec<<C::AccountEncryption as EncryptionScheme>::Randomness>, pub new_encrypted_records: Vec<EncryptedRecord<C>>, pub new_encrypted_record_hashes: Vec<<C::EncryptedRecordCRH as CRH>::Output>, pub program_commitment: <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Output, pub program_randomness: <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness, pub local_data_merkle_tree: CommitmentMerkleTree<C::LocalDataCommitment, C::LocalDataCRH>, pub local_data_commitment_randomizers: Vec<<C::LocalDataCommitment as CommitmentScheme>::Randomness>, pub value_balance: AleoAmount, pub memorandum: <Transaction<C> as TransactionScheme>::Memorandum, pub network_id: u8,
}
Expand description

Returned by DPC::execute_offline_phase. Stores data required to produce the final transaction after execute_offline_phase has created old serial numbers, new records and commitments. For convenience, it also stores references to existing information such as old records.

Fields

old_records: Vec<Record<C>>old_serial_numbers: Vec<<C::AccountSignature as SignatureScheme>::PublicKey>old_randomizers: Vec<Vec<u8>>new_records: Vec<Record<C>>new_sn_nonce_randomness: Vec<[u8; 32]>new_commitments: Vec<<C::RecordCommitment as CommitmentScheme>::Output>new_records_encryption_randomness: Vec<<C::AccountEncryption as EncryptionScheme>::Randomness>new_encrypted_records: Vec<EncryptedRecord<C>>new_encrypted_record_hashes: Vec<<C::EncryptedRecordCRH as CRH>::Output>program_commitment: <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Outputprogram_randomness: <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomnesslocal_data_merkle_tree: CommitmentMerkleTree<C::LocalDataCommitment, C::LocalDataCRH>local_data_commitment_randomizers: Vec<<C::LocalDataCommitment as CommitmentScheme>::Randomness>value_balance: AleoAmountmemorandum: <Transaction<C> as TransactionScheme>::Memorandumnetwork_id: u8

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Reads Self from reader.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serializes self into writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Compare self to key and return true if they are equal.

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.