OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::transaction::out_point Struct Reference

The unique identifier of a specific output from a transaction. More...

#include <transaction.hpp>

Public Member Functions

auto operator== (const out_point &rhs) const -> bool
 
auto operator< (const out_point &rhs) const -> bool
 
 out_point (const hash_t &hash, uint64_t index)
 
 out_point ()=default
 

Data Fields

hash_t m_tx_id {}
 The hash of the transaction which created the out_point.
 
uint64_t m_index {0}
 The index of the output in the transaction's output list.
 

Detailed Description

The unique identifier of a specific output from a transaction.

Uniquely identifies an output from a previous transaction. Output owners construct input s in new transactions out of outputs and their corresponding out_point s.

See also
cbdc::operator<<(serializer&, const transaction::out_point&)

Definition at line 27 of file transaction.hpp.

Constructor & Destructor Documentation

◆ out_point() [1/2]

cbdc::transaction::out_point::out_point ( const hash_t & hash,
uint64_t index )

Definition at line 22 of file transaction.cpp.

◆ out_point() [2/2]

cbdc::transaction::out_point::out_point ( )
default

Member Function Documentation

◆ operator<()

auto cbdc::transaction::out_point::operator< ( const out_point & rhs) const -> bool

Definition at line 18 of file transaction.cpp.

◆ operator==()

auto cbdc::transaction::out_point::operator== ( const out_point & rhs) const -> bool

Definition at line 14 of file transaction.cpp.

Field Documentation

◆ m_index

uint64_t cbdc::transaction::out_point::m_index {0}

The index of the output in the transaction's output list.

See also
transaction::full_tx::m_outputs

Definition at line 33 of file transaction.hpp.

Referenced by cbdc::transaction::input_from_output().

◆ m_tx_id

hash_t cbdc::transaction::out_point::m_tx_id {}

The hash of the transaction which created the out_point.

Definition at line 29 of file transaction.hpp.

Referenced by cbdc::client::import_send_input(), and cbdc::transaction::input_from_output().


The documentation for this struct was generated from the following files: