btck::BlockHashView

Non-owning view over a btck_BlockHash.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class BlockHashView
    : public View<btck_BlockHash>
    , public BlockHashApi<BlockHashView>

Base Classes

NameDescription
View<btck_BlockHash>Non-owning view over a const C handle of type CType.
BlockHashApi<BlockHashView>CRTP mixin adding block-hash operations shared by the view and owning types.

Member Functions

NameDescription
BlockHashView [constructor]Constructs a view over ptr.
ToBytes Returns the raw 32-byte block hash.
get Returns the borrowed C handle.
operator== Compares two block hashes for equality.
operator!= Compares two block hashes for inequality.

Protected Data Members

NameDescription
m_ptr The borrowed C handle.