Bitcoin transaction representation.
More...
Definition at line 29 of file btctx.hpp.
#include <btctx.hpp>
|
std::vector< uint8_t > | tx {} |
|
◆ hash_t
◆ BtcTx() [1/2]
altintegration::BtcTx::BtcTx |
( |
std::vector< uint8_t > |
bytes | ) |
|
|
inline |
Definition at line 34 of file btctx.hpp.
34: tx(std::move(bytes)) {}
◆ BtcTx() [2/2]
altintegration::BtcTx::BtcTx |
( |
Slice< const uint8_t > |
slice | ) |
|
|
inline |
Definition at line 35 of file btctx.hpp.
35: tx(slice.begin(), slice.end()) {}
◆ getHash()
hash_t altintegration::BtcTx::getHash |
( |
| ) |
const |
- Returns
- hash transaction hash
◆ toRaw()
void altintegration::BtcTx::toRaw |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ toVbkEncoding()
void altintegration::BtcTx::toVbkEncoding |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ operator!=
bool operator!= |
( |
const BtcTx & |
a, |
|
|
const BtcTx & |
b |
|
) |
| |
|
friend |
Definition at line 41 of file btctx.hpp.
41 {
42 return !(a.tx == b.tx);
43 }
◆ operator==
bool operator== |
( |
const BtcTx & |
a, |
|
|
const BtcTx & |
b |
|
) |
| |
|
friend |
Definition at line 37 of file btctx.hpp.
37 {
38 return a.tx == b.tx;
39 }
◆ tx
std::vector<uint8_t> altintegration::BtcTx::tx {} |
The documentation for this struct was generated from the following file: