CRTP mixin adding block‐header accessors shared by the view and owning types.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

template<typename Derived>
class BlockHeaderApi;

Member Functions

Name

Description

Bits

Returns the compact difficulty target.

Hash

Returns the hash of this header's block.

Nonce

Returns the proof‐of‐work nonce.

PrevHash

Returns the hash of the previous block.

Timestamp

Returns the header timestamp.

ToBytes

Serializes the header to its 80‐byte form.

Version

Returns the block version.

Friends

Name

Description

Derived

Derived Classes

Name

Description

BlockHeader

Owning wrapper over a btck_BlockHeader.

BlockHeaderView

Non‐owning view over a btck_BlockHeader.

Created with MrDocs