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

Method AddKeyPubKey

src/script/signingprovider.cpp:195–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195bool FillableSigningProvider::AddKeyPubKey(const CKey& key, const CPubKey &pubkey)
196{
197 LOCK(cs_KeyStore);
198 mapKeys[pubkey.GetID()] = key;
199 ImplicitlyLearnRelatedKeyScripts(pubkey);
200 return true;
201}
202
203bool FillableSigningProvider::HaveKey(const CKeyID &address) const
204{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
key.cppFile · 0.80

Calls 1

GetIDMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64