[#btck-ScriptPubkeyApi-02] = xref:btck.adoc[btck]::ScriptPubkeyApi :relfileprefix: ../ :mrdocs: CRTP mixin adding script‐pubkey operations shared by the view and owning types. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Derived> class ScriptPubkeyApi; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/ScriptPubkeyApi-02/ToBytes.adoc[`ToBytes`] | Serializes the script pubkey to its raw bytes. | xref:btck/ScriptPubkeyApi-02/Verify.adoc[`Verify`] | Verifies a spending input against this script pubkey. |=== == Friends [cols="1,4"] |=== | Name| Description | `Derived` | |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:btck/ScriptPubkey.adoc[`ScriptPubkey`] | Owning wrapper over a `btck_ScriptPubkey` output script. | xref:btck/ScriptPubkeyView.adoc[`ScriptPubkeyView`] | Non‐owning view over a `btck_ScriptPubkey`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#