MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetKeyCombi

Method GetKeyCombi

src/wallet/crypter.cpp:261–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool CCryptoKeyStore::GetKeyCombi(const CKeyID& keyid, CKeyCombi& keyCombiOut) const {
262
263 CBasicKeyStore::GetKeyCombi(keyid, keyCombiOut);
264
265 if (!IsEncrypted())
266 return true;
267
268 CKey keyOut;
269 if (!IsLocked()) {
270 if (!GetKey(keyid, keyOut))
271 return false;
272
273 keyCombiOut.SetMainKey(keyOut);
274 }
275
276 return true;
277}
278
279bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn) {
280 LOCK(cs_KeyStore);

Callers 2

listaddrFunction · 0.45
dumpwalletFunction · 0.45

Calls 1

SetMainKeyMethod · 0.80

Tested by

no test coverage detected