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

Method GetSigningProvider

src/wallet/scriptpubkeyman.cpp:1252–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252std::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
1266std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CPubKey& pubkey) const
1267{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 7

findMethod · 0.80
endMethod · 0.45
HaveKeyMethod · 0.45
GetIDMethod · 0.45
MergeMethod · 0.45
ExpandFromCacheMethod · 0.45
ExpandPrivateMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64