[#wallet-feebumper-SignatureWeightChecker-CheckECDSASignature-0e]
= xref:wallet.adoc[wallet]::xref:wallet/feebumper.adoc[feebumper]::xref:wallet/feebumper/SignatureWeightChecker.adoc[SignatureWeightChecker]::CheckECDSASignature
:relfileprefix: ../../../
:mrdocs:

`CheckECDSASignature` overloads

== Synopses

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

Forward the ECDSA signature check to the wrapped checker&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
xref:DeferringSignatureChecker/CheckECDSASignature.adoc[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 override;
----

[.small]#xref:DeferringSignatureChecker/CheckECDSASignature.adoc[_» more&period;&period;&period;_]#

Validates an ECDSA signature and records its weight when valid&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
xref:wallet/feebumper/SignatureWeightChecker/CheckECDSASignature-00.adoc[CheckECDSASignature](
    std::vector&lt;unsigned char&gt; const& sig,
    std::vector&lt;unsigned char&gt; const& pubkey,
    xref:CScript.adoc[CScript] const& script,
    xref:SigVersion.adoc[SigVersion] sigversion) const override;
----

[.small]#xref:wallet/feebumper/SignatureWeightChecker/CheckECDSASignature-00.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if the signature is valid&period;
* 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;
| *sig*
| The signature to verify&period;
| *pubkey*
| The public key to verify against&period;
| *script*
| The script being evaluated&period;
|===


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