OpenCBDC Transaction Processor
|
An output of a transaction. More...
#include <transaction.hpp>
Public Member Functions | |
auto | operator== (const output &rhs) const -> bool |
auto | operator!= (const output &rhs) const -> bool |
output (hash_t witness_program_commitment, uint64_t value) | |
output ()=default | |
Data Fields | |
hash_t | m_witness_program_commitment {} |
Hash of the witness program. | |
uint64_t | m_value {0} |
The integral value of the output, in atomic units of currency. | |
An output of a transaction.
An output created by a transaction. Its owner can spend it as an input in a transaction.
Definition at line 49 of file transaction.hpp.
cbdc::transaction::output::output | ( | hash_t | witness_program_commitment, |
uint64_t | value ) |
Definition at line 35 of file transaction.cpp.
|
default |
auto cbdc::transaction::output::operator!= | ( | const output & | rhs | ) | const -> bool |
Definition at line 31 of file transaction.cpp.
auto cbdc::transaction::output::operator== | ( | const output & | rhs | ) | const -> bool |
Definition at line 26 of file transaction.cpp.
uint64_t cbdc::transaction::output::m_value {0} |
The integral value of the output, in atomic units of currency.
Definition at line 54 of file transaction.hpp.
Referenced by cbdc::transaction::wallet::fan(), cbdc::transaction::wallet::mint_new_coins(), cbdc::transaction::wallet::send_to(), and cbdc::transaction::wallet::send_to().
hash_t cbdc::transaction::output::m_witness_program_commitment {} |
Hash of the witness program.
Definition at line 51 of file transaction.hpp.
Referenced by cbdc::transaction::wallet::fan(), cbdc::transaction::wallet::mint_new_coins(), cbdc::transaction::wallet::send_to(), and cbdc::transaction::wallet::send_to().