[#CPubKey-Verify]
= xref:CPubKey.adoc[CPubKey]::Verify
:relfileprefix: ../
:mrdocs:

Verify a DER signature (&#126;72 bytes)&period; If this public key is not fully valid, the return value will be false&period;

== Synopsis

Declared in `&lt;pubkey&period;h&gt;`

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

== Return Value

true if the signature is valid for this public key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash*
| The 32&hyphen;byte message hash that was signed&period;
| *vchSig*
| The DER&hyphen;encoded signature to verify&period;
|===


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