[#CKey-VerifyPubKey]
= xref:CKey.adoc[CKey]::VerifyPubKey
:relfileprefix: ../
:mrdocs:

Verify thoroughly whether a private key and a public key match&period; This is done using a different mechanism than just regenerating it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
VerifyPubKey(xref:CPubKey.adoc[CPubKey] const& vchPubKey) const;
----

== Return Value

true if the public key matches this private key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vchPubKey*
| The public key to check against this private key&period;
|===


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