btck::ScriptPubkey

Owning wrapper over a btck_ScriptPubkey output script.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class ScriptPubkey
    : public Handle<btck_ScriptPubkey, btck_script_pubkey_copy, btck_script_pubkey_destroy>
    , public ScriptPubkeyApi<ScriptPubkey>

Base Classes

NameDescription
Handle<btck_ScriptPubkey, btck_script_pubkey_copy, btck_script_pubkey_destroy>Owning RAII handle for a copyable C object of type CType.
ScriptPubkeyApi<ScriptPubkey>CRTP mixin adding script-pubkey operations shared by the view and owning types.

Member Functions

NameDescription
ScriptPubkey [constructor]Constructors
operator= Assignment operators
ToBytes Serializes the script pubkey to its raw bytes.
Verify Verifies a spending input against this script pubkey.
get Returns the owned C handle.

Protected Data Members

NameDescription
m_ptr The owned C handle.