| 1250 | } |
| 1251 | |
| 1252 | std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CScript& script, bool include_private) const |
| 1253 | { |
| 1254 | LOCK(cs_desc_man); |
| 1255 | |
| 1256 | // Find the index of the script |
| 1257 | auto it = m_map_script_pub_keys.find(script); |
| 1258 | if (it == m_map_script_pub_keys.end()) { |
| 1259 | return nullptr; |
| 1260 | } |
| 1261 | int32_t index = it->second; |
| 1262 | |
| 1263 | return GetSigningProvider(index, include_private); |
| 1264 | } |
| 1265 | |
| 1266 | std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CPubKey& pubkey) const |
| 1267 | { |