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

Name

Description

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

Name

Description

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

Name

Description

m_ptr

The borrowed C handle.

Created with MrDocs