HexToPubKey

Parse a hex-encoded public key, throwing an RPC error if it is invalid.

Synopsis

Declared in <rpc/util.h>

CPubKey
HexToPubKey(std::string const& hex_in);

Return Value

The parsed public key.

Parameters

NameDescription
hex_inThe hex-encoded public key.