btck::Txid

Owning wrapper over a btck_Txid transaction identifier.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class Txid
    : public Handle<btck_Txid, btck_txid_copy, btck_txid_destroy>
    , public TxidApi<Txid>

Base Classes

NameDescription
Handle<btck_Txid, btck_txid_copy, btck_txid_destroy>Owning RAII handle for a copyable C object of type CType.
TxidApi<Txid>CRTP mixin adding transaction-id operations shared by the view and owning types.

Member Functions

NameDescription
Txid [constructor]Constructs an owning copy from a view.
operator= Assignment operators
ToBytes Returns the raw 32-byte transaction id.
get Returns the owned C handle.
operator== Compares two transaction ids for equality.
operator!= Compares two transaction ids for inequality.

Protected Data Members

NameDescription
m_ptr The owned C handle.