Trait snarkvm_dpc::traits::transaction::TransactionScheme [−][src]
pub trait TransactionScheme: Clone + Eq + FromBytes + ToBytes { type Commitment: Clone + Eq + Hash + FromBytes + ToBytes + Sync + Send; type Digest: Clone + Eq + Hash + FromBytes + ToBytes; type InnerCircuitID: Clone + Eq + FromBytes + ToBytes; type LocalDataRoot: Clone + Eq + Hash + FromBytes + ToBytes; type Memorandum: Clone + Eq + Hash + FromBytes + ToBytes; type ProgramCommitment: Clone + Eq + Hash + FromBytes + ToBytes; type SerialNumber: Clone + Eq + Hash + FromBytes + ToBytes; type EncryptedRecord: Clone + Eq + FromBytes + ToBytes; type ValueBalance: Clone + Eq + FromBytes + ToBytes; type Signature: Clone + Eq + FromBytes + ToBytes;}Show methods
fn transaction_id(&self) -> Result<[u8; 32], TransactionError>; fn network_id(&self) -> u8; fn ledger_digest(&self) -> &Self::Digest; fn inner_circuit_id(&self) -> &Self::InnerCircuitID; fn old_serial_numbers(&self) -> &[Self::SerialNumber]; fn new_commitments(&self) -> &[Self::Commitment]; fn memorandum(&self) -> &Self::Memorandum; fn program_commitment(&self) -> &Self::ProgramCommitment; fn local_data_root(&self) -> &Self::LocalDataRoot; fn value_balance(&self) -> Self::ValueBalance; fn signatures(&self) -> &[Self::Signature]; fn encrypted_records(&self) -> &[Self::EncryptedRecord]; fn size(&self) -> usize;
Associated Types
Required methods
fn transaction_id(&self) -> Result<[u8; 32], TransactionError>
fn transaction_id(&self) -> Result<[u8; 32], TransactionError>
Returns the transaction identifier.
fn network_id(&self) -> u8
fn network_id(&self) -> u8
Returns the network_id in the transaction.
fn ledger_digest(&self) -> &Self::Digest
fn ledger_digest(&self) -> &Self::Digest
Returns the ledger digest.
fn inner_circuit_id(&self) -> &Self::InnerCircuitID
fn inner_circuit_id(&self) -> &Self::InnerCircuitID
Returns the inner circuit ID.
fn old_serial_numbers(&self) -> &[Self::SerialNumber]
fn old_serial_numbers(&self) -> &[Self::SerialNumber]
Returns the old serial numbers.
fn new_commitments(&self) -> &[Self::Commitment]
fn new_commitments(&self) -> &[Self::Commitment]
Returns the new commitments.
fn memorandum(&self) -> &Self::Memorandum
fn memorandum(&self) -> &Self::Memorandum
Returns the memorandum.
fn program_commitment(&self) -> &Self::ProgramCommitment
fn program_commitment(&self) -> &Self::ProgramCommitment
Returns the program commitment in the transaction.
fn local_data_root(&self) -> &Self::LocalDataRoot
fn local_data_root(&self) -> &Self::LocalDataRoot
Returns the local data root in the transaction.
fn value_balance(&self) -> Self::ValueBalance
fn value_balance(&self) -> Self::ValueBalance
Returns the value balance in the transaction.
fn signatures(&self) -> &[Self::Signature]
fn signatures(&self) -> &[Self::Signature]
Returns the signatures.
fn encrypted_records(&self) -> &[Self::EncryptedRecord]
fn encrypted_records(&self) -> &[Self::EncryptedRecord]
Returns the encrypted records
Implementors
impl<C: Testnet1Components> TransactionScheme for snarkvm_dpc::testnet1::transaction::transaction::Transaction<C>
impl<C: Testnet2Components> TransactionScheme for snarkvm_dpc::testnet2::transaction::transaction::Transaction<C>