veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
|
Contains ContextInfoContainer and merkle path which authenticates hash of ContextInfoContainer to a block header. More...
Definition at line 59 of file context_info_container.hpp.
#include <context_info_container.hpp>
Public Member Functions | |
bool | operator== (const AuthenticatedContextInfoContainer &other) const |
void | toVbkEncoding (WriteStream &w) const |
size_t | estimateSize () const |
uint256 | getTopLevelMerkleRoot () const |
Static Public Member Functions | |
static AuthenticatedContextInfoContainer | createFromPrevious (const uint256 &stateRoot, const BlockIndex< AltBlock > *prev, const AltChainParams &p) |
static AuthenticatedContextInfoContainer | createFromPrevious (const std::vector< uint8_t > &txRoot, const uint256 &popDataRoot, const BlockIndex< AltBlock > *prev, const AltChainParams &p) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Public Attributes | |
ContextInfoContainer | ctx {} |
uint256 | stateRoot {} |
|
static |
stateRoot | equals to sha256d(merkle root || pop data merkle root) |
prev | is a pointer to previous block |
p | params |
|
inline |
Definition at line 82 of file context_info_container.hpp.
ContextInfoContainer altintegration::AuthenticatedContextInfoContainer::ctx {} |
Definition at line 60 of file context_info_container.hpp.
uint256 altintegration::AuthenticatedContextInfoContainer::stateRoot {} |
Definition at line 65 of file context_info_container.hpp.