Serializes the btck_BlockHeader to bytes. This is consensus serialization that is also used for the P2P network.
Declared in <kernel/bitcoinkernel.h>
[[nodiscard, __nonnull__]]
int
btck_block_header_to_bytes(
btck_BlockHeader const* header,
unsigned char output[]);
| Name | Description |
|---|---|
| header [in] | Non-null. |
| output [out] | The serialized block header (80 bytes). |