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

Veriblock transaction, which endorses ALT block in VBK blockchain. More...

Detailed Description

Definition at line 40 of file vbktx.hpp.

#include <vbktx.hpp>

+ Collaboration diagram for altintegration::VbkTx:

Public Types

using hash_t = uint256
 

Public Member Functions

void toVbkEncoding (WriteStream &stream) const
 Convert VbkTx to data stream using VbkTx VBK byte format. More...
 
std::vector< uint8_t > toVbkEncoding () const
 Convert VbkTx to raw bytes data using VBK byte format. More...
 
size_t estimateSize () const
 
uint256 getHash () const
 Calculate the hash of the VBK transaction. More...
 
Coin calculateTxFee () const
 Calculate the fee of the VBK transaction. More...
 

Public Attributes

NetworkBytePair networkOrType {}
 
Address sourceAddress {}
 
Coin sourceAmount {}
 
std::vector< Outputoutputs {}
 
int64_t signatureIndex {}
 
PublicationData publicationData {}
 
std::vector< uint8_t > signature {}
 
std::vector< uint8_t > publicKey {}
 

Friends

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

Member Typedef Documentation

◆ hash_t

Definition at line 41 of file vbktx.hpp.

Member Function Documentation

◆ calculateTxFee()

Coin altintegration::VbkTx::calculateTxFee ( ) const
Returns
amount spent as tx fee

◆ getHash()

uint256 altintegration::VbkTx::getHash ( ) const
Returns
hash VBK transaction hash

◆ toVbkEncoding() [1/2]

std::vector< uint8_t > altintegration::VbkTx::toVbkEncoding ( ) const
Returns
bytes data

◆ toVbkEncoding() [2/2]

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

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 82 of file vbktx.hpp.

82{ return !(a == b); }

◆ operator==

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

Definition at line 78 of file vbktx.hpp.

78 {
79 return a.getHash() == b.getHash();
80 }

Member Data Documentation

◆ networkOrType

NetworkBytePair altintegration::VbkTx::networkOrType {}

Definition at line 43 of file vbktx.hpp.

◆ outputs

std::vector<Output> altintegration::VbkTx::outputs {}

Definition at line 46 of file vbktx.hpp.

◆ publicationData

PublicationData altintegration::VbkTx::publicationData {}

Definition at line 48 of file vbktx.hpp.

◆ publicKey

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

Definition at line 50 of file vbktx.hpp.

◆ signature

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

Definition at line 49 of file vbktx.hpp.

◆ signatureIndex

int64_t altintegration::VbkTx::signatureIndex {}

Definition at line 47 of file vbktx.hpp.

◆ sourceAddress

Address altintegration::VbkTx::sourceAddress {}

Definition at line 44 of file vbktx.hpp.

◆ sourceAmount

Coin altintegration::VbkTx::sourceAmount {}

Definition at line 45 of file vbktx.hpp.


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