[#VerifyScript] = VerifyScript :mrdocs: Verify that an input's scriptSig and witness satisfy the output's scriptPubKey. == Synopsis Declared in `<script/interpreter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool VerifyScript( xref:CScript.adoc[CScript] const& scriptSig, xref:CScript.adoc[CScript] const& scriptPubKey, xref:CScriptWitness.adoc[CScriptWitness] const* witness, xref:script_verify_flags.adoc[script_verify_flags] flags, xref:BaseSignatureChecker.adoc[BaseSignatureChecker] const& checker, xref:ScriptError.adoc[ScriptError]* serror = nullptr); ---- == Return Value `true` if the spend is valid under the given flags. == Parameters [cols="1,4"] |=== | Name| Description | *scriptSig* | The input's signature script. | *scriptPubKey* | The output script being spent. | *witness* | The input's witness stack, or null when absent. | *flags* | The active script verification flags. | *checker* | The signature checker bound to the spending transaction. | *serror* | Set to the script error when verification fails. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#