DescriptorCache::GetCachedDerivedExtPubKey

Retrieve a cached xpub derived at an index

Synopsis

Declared in <script/descriptor.h>

bool
GetCachedDerivedExtPubKey(
    uint32_t key_exp_pos,
    uint32_t der_index,
    CExtPubKey& xpub) const;

Return Value

Whether a derived xpub was cached at that position and index.

Parameters

NameDescription
key_exp_pos [in]Position of the key expression within the descriptor
der_index [in]Derivation index of the xpub
xpub [out]The CExtPubKey to get from cache