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

Path in Merkle tree which proves that subject is inside this tree. More...

Detailed Description

Definition at line 31 of file merkle_path.hpp.

#include <merkle_path.hpp>

+ Collaboration diagram for altintegration::MerklePath:

Public Member Functions

void toRaw (WriteStream &stream) const
 Convert MerklePath to data stream using MerklePath basic byte format. More...
 
void toVbkEncoding (WriteStream &stream) const
 Convert MerklePath to data stream using MerklePath VBK byte format. More...
 
size_t estimateSize () const
 
uint256 calculateMerkleRoot () const
 Calculate the hash of the merkle root. More...
 

Public Attributes

int32_t index {}
 
uint256 subject {}
 
std::vector< uint256layers {}
 

Member Function Documentation

◆ calculateMerkleRoot()

uint256 altintegration::MerklePath::calculateMerkleRoot ( ) const
Returns
hash merkle root hash

◆ toRaw()

void altintegration::MerklePath::toRaw ( WriteStream stream) const
Parameters
streamdata stream to write into

◆ toVbkEncoding()

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

Member Data Documentation

◆ index

int32_t altintegration::MerklePath::index {}

Definition at line 32 of file merkle_path.hpp.

◆ layers

std::vector<uint256> altintegration::MerklePath::layers {}

Definition at line 34 of file merkle_path.hpp.

◆ subject

uint256 altintegration::MerklePath::subject {}

Definition at line 33 of file merkle_path.hpp.


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