[#BaseSignatureChecker-CheckECDSASignature]
= xref:BaseSignatureChecker.adoc[BaseSignatureChecker]::CheckECDSASignature
:relfileprefix: ../
:mrdocs:

Verify an ECDSA signature against a public key and script code&period;

== Synopsis

Declared in `&lt;script&sol;interpreter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
CheckECDSASignature(
    std::vector&lt;unsigned char&gt; const& scriptSig,
    std::vector&lt;unsigned char&gt; const& vchPubKey,
    xref:CScript.adoc[CScript] const& scriptCode,
    xref:SigVersion.adoc[SigVersion] sigversion) const;
----

== Return Value

`true` if the signature is valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scriptSig*
| The serialized signature, including its sighash byte&period;
| *vchPubKey*
| The serialized public key&period;
| *scriptCode*
| The script code committed to by the signature&period;
| *sigversion*
| The signature version selecting the hashing scheme&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
