CRTP mixin adding block-header accessors shared by the view and owning types.
Declared in <kernel/bitcoinkernel_wrapper.h>
template<typename Derived>
class BlockHeaderApi;
| 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. |
| Name | Description |
|---|---|
Derived |
| Name | Description |
|---|---|
BlockHeader | Owning wrapper over a btck_BlockHeader. |
BlockHeaderView | Non-owning view over a btck_BlockHeader. |