btck::BlockHeaderApi

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

NameDescription
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

NameDescription
Derived

Derived Classes

NameDescription
BlockHeader Owning wrapper over a btck_BlockHeader.
BlockHeaderView Non-owning view over a btck_BlockHeader.