[#DescriptorCache-CacheDerivedExtPubKey]
= xref:DescriptorCache.adoc[DescriptorCache]::CacheDerivedExtPubKey
:relfileprefix: ../
:mrdocs:

Cache an xpub derived at an index

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CacheDerivedExtPubKey(
    uint32&lowbar;t key&lowbar;exp&lowbar;pos,
    uint32&lowbar;t der&lowbar;index,
    xref:CExtPubKey.adoc[CExtPubKey] const& xpub);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key&lowbar;exp&lowbar;pos* [in]
| Position of the key expression within the descriptor
| *der&lowbar;index* [in]
| Derivation index of the xpub
| *xpub* [in]
| The CExtPubKey to cache
|===


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