[#Descriptor-GetPubKeys]
= xref:Descriptor.adoc[Descriptor]::GetPubKeys
:relfileprefix: ../
:mrdocs:

Return all (extended) public keys for this descriptor, including any from subdescriptors&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
GetPubKeys(
    std::set&lt;CPubKey&gt;& pubkeys,
    std::set&lt;CExtPubKey&gt;& ext&lowbar;pubs) const = 0;
----

== Return Value

all (extended) public keys for this descriptor, including any from subdescriptors&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkeys* [out]
| Any public keys
| *ext&lowbar;pubs* [out]
| Any extended public keys
|===


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