btck::ScriptPubkeyView

Non-owning view over a btck_ScriptPubkey.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class ScriptPubkeyView
    : public View<btck_ScriptPubkey>
    , public ScriptPubkeyApi<ScriptPubkeyView>

Base Classes

NameDescription
View<btck_ScriptPubkey>Non-owning view over a const C handle of type CType.
ScriptPubkeyApi<ScriptPubkeyView>CRTP mixin adding script-pubkey operations shared by the view and owning types.

Member Functions

NameDescription
ScriptPubkeyView [constructor]Constructs a view over ptr.
ToBytes Serializes the script pubkey to its raw bytes.
Verify Verifies a spending input against this script pubkey.
get Returns the borrowed C handle.

Protected Data Members

NameDescription
m_ptr The borrowed C handle.