MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetCachedDerivedExtPubKey

Method GetCachedDerivedExtPubKey

src/script/descriptor.cpp:1450–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450bool DescriptorCache::GetCachedDerivedExtPubKey(uint32_t key_exp_pos, uint32_t der_index, CExtPubKey& xpub) const
1451{
1452 const auto& key_exp_it = m_derived_xpubs.find(key_exp_pos);
1453 if (key_exp_it == m_derived_xpubs.end()) return false;
1454 const auto& der_it = key_exp_it->second.find(der_index);
1455 if (der_it == key_exp_it->second.end()) return false;
1456 xpub = der_it->second;
1457 return true;
1458}
1459
1460bool DescriptorCache::GetCachedLastHardenedExtPubKey(uint32_t key_exp_pos, CExtPubKey& xpub) const
1461{

Callers 2

GetPubKeyMethod · 0.80
FUZZ_TARGETFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.64