btck_block_hash_create

Create a block hash from its raw data.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_BlockHash*
btck_block_hash_create(unsigned char const block_hash[]);

Return Value

Opaque data structure for holding a block hash.

NOTE

The return value should not be discarded.

Parameters

NameDescription
block_hash [in]32-byte big-endian block hash bytes.