[#HexToPubKey]
= HexToPubKey
:mrdocs:

Parse a hex&hyphen;encoded public key, throwing an RPC error if it is invalid&period;

== Synopsis

Declared in `&lt;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CPubKey.adoc[CPubKey]
HexToPubKey(std::string const& hex&lowbar;in);
----

== Return Value

The parsed public key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hex&lowbar;in*
| The hex&hyphen;encoded public key&period;
|===


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