Skip to content

sgns::runtime::binaryen::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

struct sgns::runtime::binaryen::BlockHeader;

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==

inline bool operator==(
    const BlockHeader & rhs
) const

function operator!=

inline bool operator!=(
    const BlockHeader & rhs
) const

Public Attributes Documentation

variable parent_hash

BlockHash parent_hash;

32-byte Blake2s hash of parent header

variable number

BlockNumber number = 0U;

index of current block in the chain

variable state_root

base::Hash256 state_root;

root of the Merkle tree

variable extrinsics_root

base::Hash256 extrinsics_root;

field for validation integrity

variable digest

Digest digest;

chain-specific auxiliary data

Friends

friend operator<<

friend std::ostream & operator<<(
    std::ostream & out,

    const BlockHeader & bh
);

Updated on 2026-03-04 at 13:10:43 -0800