| 3015 | } |
| 3016 | |
| 3017 | bool 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 | |
| 3027 | bool DescriptorCache::GetCachedLastHardenedExtPubKey(uint32_t key_exp_pos, CExtPubKey& xpub) const |
| 3028 | { |