| 1448 | } |
| 1449 | |
| 1450 | bool 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 | |
| 1460 | bool DescriptorCache::GetCachedLastHardenedExtPubKey(uint32_t key_exp_pos, CExtPubKey& xpub) const |
| 1461 | { |