Veriblock to Bitcoin publication, committed to Veriblock blockchain in containingBlock.
More...
Definition at line 37 of file vtb.hpp.
#include <vtb.hpp>
|
std::string | toPrettyString () const |
|
std::string | toShortPrettyString () const |
|
void | toVbkEncoding (WriteStream &stream) const |
| Convert VTB to data stream using Vbk byte format. More...
|
|
std::vector< uint8_t > | toVbkEncoding () const |
| Convert VTB to raw bytes data using Vbk byte format. More...
|
|
size_t | estimateSize () const |
|
id_t | getId () const |
| Calculate a VTB id that is the sha256 hash of the VTB rawBytes. More...
|
|
|
static const std::string & | name () |
|
◆ containing_block_t
◆ id_t
◆ getId()
id_t altintegration::VTB::getId |
( |
| ) |
const |
◆ name()
static const std::string & altintegration::VTB::name |
( |
| ) |
|
|
inlinestatic |
◆ toVbkEncoding() [1/2]
std::vector< uint8_t > altintegration::VTB::toVbkEncoding |
( |
| ) |
const |
◆ toVbkEncoding() [2/2]
void altintegration::VTB::toVbkEncoding |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ operator!=
bool operator!= |
( |
const VTB & |
a, |
|
|
const VTB & |
b |
|
) |
| |
|
friend |
◆ operator<
bool operator< |
( |
const VTB & |
a, |
|
|
const VTB & |
b |
|
) |
| |
|
friend |
Definition at line 80 of file vtb.hpp.
80 {
81 return a.containingBlock.getHeight() < b.containingBlock.getHeight();
82 }
◆ operator==
bool operator== |
( |
const VTB & |
a, |
|
|
const VTB & |
b |
|
) |
| |
|
friend |
Definition at line 74 of file vtb.hpp.
74 {
75 return a.getId() == b.getId();
76 }
◆ checked
bool altintegration::VTB::checked {false} |
|
mutable |
◆ containingBlock
◆ merklePath
◆ transaction
VbkPopTx altintegration::VTB::transaction {} |
◆ version
uint32_t altintegration::VTB::version = 1 |
The documentation for this struct was generated from the following file:
- include/veriblock/pop/entities/vtb.hpp