Trait snarkvm_objects::traits::transaction::Transaction[][src]

pub trait Transaction: Clone + Eq + FromBytes + ToBytes {
    type Commitment: Clone + Eq + Hash + FromBytes + ToBytes;
    type Digest: Clone + Eq + Hash + FromBytes + ToBytes;
    type InnerSNARKID: 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;
    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::InnerSNARKID;
fn old_serial_numbers(&self) -> &[Self::SerialNumber]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn new_commitments(&self) -> &[Self::Commitment]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn program_commitment(&self) -> &Self::ProgramCommitment;
fn local_data_root(&self) -> &Self::LocalDataRoot;
fn value_balance(&self) -> Self::ValueBalance;
fn encrypted_records(&self) -> &[Self::EncryptedRecord]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn memorandum(&self) -> &Self::Memorandum;
fn size(&self) -> usize; }

Associated Types

Required methods

fn transaction_id(&self) -> Result<[u8; 32], TransactionError>[src]

Expand description

Returns the transaction identifier.

fn network_id(&self) -> u8[src]

Expand description

Returns the network_id in the transaction.

fn ledger_digest(&self) -> &Self::Digest[src]

Expand description

Returns the ledger digest.

fn inner_circuit_id(&self) -> &Self::InnerSNARKID[src]

Expand description

Returns the inner snark id.

fn old_serial_numbers(&self) -> &[Self::SerialNumber]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Expand description

Returns the old serial numbers.

fn new_commitments(&self) -> &[Self::Commitment]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Expand description

Returns the new commitments.

fn program_commitment(&self) -> &Self::ProgramCommitment[src]

Expand description

Returns the program commitment in the transaction.

fn local_data_root(&self) -> &Self::LocalDataRoot[src]

Expand description

Returns the local data root in the transaction.

fn value_balance(&self) -> Self::ValueBalance[src]

Expand description

Returns the value balance in the transaction.

fn encrypted_records(&self) -> &[Self::EncryptedRecord]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Expand description

Returns the encrypted records

fn memorandum(&self) -> &Self::Memorandum[src]

Expand description

Returns the memorandum.

fn size(&self) -> usize[src]

Expand description

Returns the transaction size in bytes.

Implementors