btck::BlockHash

Owning wrapper over a btck_BlockHash.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class BlockHash
    : public Handle<btck_BlockHash, btck_block_hash_copy, btck_block_hash_destroy>
    , public BlockHashApi<BlockHash>

Base Classes

NameDescription
Handle<btck_BlockHash, btck_block_hash_copy, btck_block_hash_destroy>Owning RAII handle for a copyable C object of type CType.
BlockHashApi<BlockHash>CRTP mixin adding block-hash operations shared by the view and owning types.

Member Functions

NameDescription
BlockHash [constructor]Constructors
operator= Assignment operators
ToBytes Returns the raw 32-byte block hash.
get Returns the owned C handle.
operator== Compares two block hashes for equality.
operator!= Compares two block hashes for inequality.

Protected Data Members

NameDescription
m_ptr The owned C handle.