Module monero::blockdata::transaction[][src]

Expand description

Transaction, transaction’s prefix, inputs and outputs structures used to parse and create transactions.

This module support (de)serializing Monero transaction and input/amount discovery/recovery with private view key and public spend key (view key-pair: ViewPair).

Structs

ExtraField

Every transaction contains an extra field, which is a part of transaction prefix and allow storing extra data inside the transaction. The most common use case is for the transaction public key.

KeyImage

The key image used in transaction inputs TxIn to commit to the use of an output one-time public key as in TxOutTarget::ToKey.

OwnedTxOut

Transaction ouput that can be redeemed by a private key pair at a given index and are returned by the check_outputs method.

Transaction

A full transaction containing the prefix and all the signing data.

TransactionPrefix

The part of the transaction that contains all the data except signatures.

TxOut

A transaction output, can be consumed by a TxIn input of the matching format.

Enums

Error

Errors possible when manipulating transactions.

SubField

Each sub-field contains a sub-field tag followed by sub-field content of fixed or variable length, in variable length case the length is encoded with a VarInt before the content itself.

TxIn

A transaction input, either a coinbase spend or a one-time key spend which defines the ring size and the key image to avoid double spend.

TxOutTarget

Type of output formats, only TxOutTarget::ToKey is used, other formats are legacy to the original cryptonote implementation.