MCPcopy Create free account
hub / github.com/ElementsProject/elements / AddKey

Method AddKey

src/wallet/scriptpubkeyman.cpp:2273–2278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2271}
2272
2273bool DescriptorScriptPubKeyMan::AddKey(const CKeyID& key_id, const CKey& key)
2274{
2275 LOCK(cs_desc_man);
2276 m_map_keys[key_id] = key;
2277 return true;
2278}
2279
2280bool DescriptorScriptPubKeyMan::AddCryptedKey(const CKeyID& key_id, const CPubKey& pubkey, const std::vector<unsigned char>& crypted_key)
2281{

Callers 14

MutateTxSignFunction · 0.45
LoadWalletMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
TestSimpleSpendFunction · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
SetupDummyInputsFunction · 0.45

Calls

no outgoing calls

Tested by 11

BOOST_AUTO_TEST_CASEFunction · 0.36
TestSimpleSpendFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
FUZZ_TARGET_INITFunction · 0.36
FUZZ_TARGET_INITFunction · 0.36
SetupDummyInputsFunction · 0.36