Type Alias reef::cap::Transaction

source ·
pub type Transaction = TransactionNote;
Expand description

A CAP transaction.

Aliased Type§

enum Transaction {
    Transfer(Box<TransferNote, Global>),
    Mint(Box<MintNote, Global>),
    Freeze(Box<FreezeNote, Global>),
}

Variants§

§

Transfer(Box<TransferNote, Global>)

a transfer note

§

Mint(Box<MintNote, Global>)

a mint (asset issuance) note

§

Freeze(Box<FreezeNote, Global>)

a freeze/unfreeze note

Trait Implementations§

source§

impl Transaction for TransactionNote

§

type NullifierSet = HashSet<ArbitraryNullifier, RandomState>

Nullifier set to be updated when a transaction is added to the ledger.
§

type Hash = Commitment<TransactionNote>

Transaction digest. Read more
§

type Kind = TransactionKind

Supported transaction types.
source§

fn cap(note: TransactionNote, _proofs: Vec<()>) -> Self

Wrap a raw CAP transaction in this network’s transaction type.
source§

fn open_viewing_memo( &self, assets: &HashMap<AssetCode, AssetDefinition>, keys: &HashMap<ViewerPubKey, ViewerKeyPair> ) -> Result<ViewingMemoOpening, ViewingError>

Attempt to decrypt the attached viewing memo. Read more
source§

fn proven_nullifiers(&self) -> Vec<(Nullifier, ())>

Nullifiers for the records that this transaction will consume when executed. Read more
source§

fn output_commitments(&self) -> Vec<RecordCommitment>

Commitments to the records that this transaction will create when executed.
source§

fn hash(&self) -> Self::Hash

A committing hash of this transaction.
source§

fn kind(&self) -> Self::Kind

The type of this transaction.
source§

fn set_proofs(&mut self, _proofs: Vec<()>)

Update the proofs that this transaction’s nullifiers are unspent.
source§

fn output_openings(&self) -> Option<Vec<RecordOpening>>

If this is not a private transaction, get the openings of its output records. Read more
source§

fn output_len(&self) -> usize

The number of outputs. Read more
source§

fn input_nullifiers(&self) -> Vec<Nullifier>

This transaction’s inputs, without authentication.