MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetCachedDerivedExtPubKey

Method GetCachedDerivedExtPubKey

src/script/descriptor.cpp:3017–3025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3015}
3016
3017bool DescriptorCache::GetCachedDerivedExtPubKey(uint32_t key_exp_pos, uint32_t der_index, CExtPubKey& xpub) const
3018{
3019 const auto& key_exp_it = m_derived_xpubs.find(key_exp_pos);
3020 if (key_exp_it == m_derived_xpubs.end()) return false;
3021 const auto& der_it = key_exp_it->second.find(der_index);
3022 if (der_it == key_exp_it->second.end()) return false;
3023 xpub = der_it->second;
3024 return true;
3025}
3026
3027bool DescriptorCache::GetCachedLastHardenedExtPubKey(uint32_t key_exp_pos, CExtPubKey& xpub) const
3028{

Callers 2

GetPubKeyMethod · 0.80
FUZZ_TARGETFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.64