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

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

== Synopsis

Declared in `&lt;wallet&sol;feebumper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
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;
----

== Return Value

true if the signature is valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sig*
| The signature to verify&period;
| *pubkey*
| The public key to verify against&period;
| *script*
| The script being evaluated&period;
| *sigversion*
| The signature version in effect&period;
|===


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