[#XOnlyPubKey-GetKeyIDs]
= xref:XOnlyPubKey.adoc[XOnlyPubKey]::GetKeyIDs
:relfileprefix: ../
:mrdocs:

Returns a list of CKeyIDs for the CPubKeys that could have been used to create this XOnlyPubKey&period; As the CKeyID is the Hash160(full pubkey), the produced CKeyIDs are for the versions of this XOnlyPubKey with 0x02 and 0x03 prefixes&period; This is needed for key lookups since keys are indexed by CKeyID&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;CKeyID&gt;
GetKeyIDs() const;
----

== Return Value

The candidate key identifiers for this x&hyphen;only pubkey&period;


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