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

Method AddCryptedKeyInner

src/wallet/scriptpubkeyman.cpp:839–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839bool LegacyScriptPubKeyMan::AddCryptedKeyInner(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret)
840{
841 LOCK(cs_KeyStore);
842 assert(mapKeys.empty());
843
844 mapCryptedKeys[vchPubKey.GetID()] = make_pair(vchPubKey, vchCryptedSecret);
845 ImplicitlyLearnRelatedKeyScripts(vchPubKey);
846 return true;
847}
848
849bool LegacyScriptPubKeyMan::AddCryptedKey(const CPubKey &vchPubKey,
850 const std::vector<unsigned char> &vchCryptedSecret)

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected