[#SigningProvider-GetPubKeyByXOnly]
= xref:SigningProvider.adoc[SigningProvider]::GetPubKeyByXOnly
:relfileprefix: ../
:mrdocs:

Look up a public key by any key id derived from an x&hyphen;only pubkey&period;

== Synopsis

Declared in `&lt;script&sol;signingprovider&period;h&gt;`

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

== Return Value

True if a public key was found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkey*
| The x&hyphen;only pubkey whose keys are searched&period;
| *out*
| Set to the matching public key on success&period;
|===


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