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

Recover a public key from a compact signature&period;

== Synopsis

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

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

== Return Value

true if a public key was recovered into this object&period;

== Parameters

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


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