veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::VbkPopTx Struct Reference

Veriblock POP transaction, which endorses VBK block in BTC blockchain. More...

Detailed Description

Definition at line 42 of file vbkpoptx.hpp.

#include <vbkpoptx.hpp>

+ Collaboration diagram for altintegration::VbkPopTx:

Public Types

using hash_t = uint256
 

Public Member Functions

void toVbkEncoding (WriteStream &stream) const
 Convert VbkPopTx to data stream using VbkPopTx VBK byte format. More...
 
size_t estimateSize () const
 
hash_t getHash () const
 Calculate the hash of the vbk pop transaction. More...
 
std::string toPrettyString () const
 

Public Attributes

NetworkBytePair networkOrType {}
 
Address address {}
 
VbkBlock publishedBlock {}
 
BtcTx bitcoinTransaction {}
 
MerklePath merklePath {}
 
BtcBlock blockOfProof {}
 
std::vector< BtcBlockblockOfProofContext {}
 
std::vector< uint8_t > signature {}
 
std::vector< uint8_t > publicKey {}
 

Friends

bool operator== (const VbkPopTx &a, const VbkPopTx &b)
 
bool operator!= (const VbkPopTx &a, const VbkPopTx &b)
 

Member Typedef Documentation

◆ hash_t

Definition at line 43 of file vbkpoptx.hpp.

Member Function Documentation

◆ getHash()

hash_t altintegration::VbkPopTx::getHash ( ) const
Returns
hash vbk pop transaction hash

◆ toVbkEncoding()

void altintegration::VbkPopTx::toVbkEncoding ( WriteStream stream) const
Parameters
streamdata stream to write into

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const VbkPopTx a,
const VbkPopTx b 
)
friend

Definition at line 75 of file vbkpoptx.hpp.

75 {
76 return !(a == b);
77 }

◆ operator==

bool operator== ( const VbkPopTx a,
const VbkPopTx b 
)
friend

Definition at line 71 of file vbkpoptx.hpp.

71 {
72 return a.getHash() == b.getHash();
73 }

Member Data Documentation

◆ address

Address altintegration::VbkPopTx::address {}

Definition at line 46 of file vbkpoptx.hpp.

◆ bitcoinTransaction

BtcTx altintegration::VbkPopTx::bitcoinTransaction {}

Definition at line 48 of file vbkpoptx.hpp.

◆ blockOfProof

BtcBlock altintegration::VbkPopTx::blockOfProof {}

Definition at line 50 of file vbkpoptx.hpp.

◆ blockOfProofContext

std::vector<BtcBlock> altintegration::VbkPopTx::blockOfProofContext {}

Definition at line 51 of file vbkpoptx.hpp.

◆ merklePath

MerklePath altintegration::VbkPopTx::merklePath {}

Definition at line 49 of file vbkpoptx.hpp.

◆ networkOrType

NetworkBytePair altintegration::VbkPopTx::networkOrType {}

Definition at line 45 of file vbkpoptx.hpp.

◆ publicKey

std::vector<uint8_t> altintegration::VbkPopTx::publicKey {}

Definition at line 53 of file vbkpoptx.hpp.

◆ publishedBlock

VbkBlock altintegration::VbkPopTx::publishedBlock {}

Definition at line 47 of file vbkpoptx.hpp.

◆ signature

std::vector<uint8_t> altintegration::VbkPopTx::signature {}

Definition at line 52 of file vbkpoptx.hpp.


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