sgns::primitives::BlockHeader¶
Header of a block in the chain. More...
#include <block_header.hpp>
Public Functions¶
| Name | |
|---|---|
| bool | operator==(const BlockHeader & rhs) const |
| bool | operator!=(const BlockHeader & rhs) const |
Public Attributes¶
| Name | |
|---|---|
| BlockHash | parent_hash 32-byte Blake2s hash of parent header |
| BlockNumber | number index of current block in the chain |
| base::Hash256 | state_root root of the Merkle tree |
| base::Hash256 | extrinsics_root field for validation integrity |
| Digest | digest chain-specific auxiliary data |
Friends¶
| Name | |
|---|---|
| std::ostream & | operator<<(std::ostream & out, const BlockHeader & bh) |
Detailed Description¶
Header of a block in the chain.
Contains parent linkage, state roots, and auxiliary digest data used for validation and consensus.
Public Functions Documentation¶
function operator==¶
function operator!=¶
Public Attributes Documentation¶
variable parent_hash¶
32-byte Blake2s hash of parent header
variable number¶
index of current block in the chain
variable state_root¶
root of the Merkle tree
variable extrinsics_root¶
field for validation integrity
variable digest¶
chain-specific auxiliary data
Friends¶
friend operator<<¶
Updated on 2026-03-04 at 13:10:43 -0800