[#GenericTransactionSignatureChecker-03-VerifyECDSASignature]
= xref:GenericTransactionSignatureChecker-03.adoc[GenericTransactionSignatureChecker]::VerifyECDSASignature
:relfileprefix: ../
:mrdocs:

Verify a raw ECDSA signature against a public key and precomputed sighash&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
VerifyECDSASignature(
    std::vector&lt;unsigned char&gt; const& vchSig,
    xref:CPubKey.adoc[CPubKey] const& vchPubKey,
    xref:uint256.adoc[uint256] const& sighash) const;
----

== Return Value

`true` if the signature is valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vchSig*
| The serialized ECDSA signature (without the sighash byte)&period;
| *vchPubKey*
| The public key to verify against&period;
| *sighash*
| The precomputed signature hash&period;
|===


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