Equity
Bitcoin Protocol Library
|
A standard block header. More...
#include <Block.h>
Public Member Functions | |
Header (uint8_t const *&in, size_t &size) | |
Overrides Serializable | |
virtual void | serialize (std::vector< uint8_t > &out) const override |
virtual json | toJson () const override |
Public Attributes | |
int32_t | version |
Block version information, based upon the software version creating this block. | |
Crypto::Sha256Hash | previousBlock |
The hash value of the previous block this particular block references. | |
Crypto::Sha256Hash | merkleRoot |
The reference to a Merkle tree collection which is a hash of all transactions < related to this block. | |
uint32_t | timestamp |
A timestamp recording when this block was created. | |
uint32_t | target |
The calculated difficulty target being used for this block. | |
uint32_t | nonce |
The nonce used to generate this block. | |
A standard block header.
Block::Header::Header | ( | uint8_t const *& | in, |
size_t & | size | ||
) |
[in,out] | in | pointer to the next byte to deserialize |
[in,out] | size | number of bytes remaining in the serialized stream |