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

Method HasKey

src/wallet/crypter.h:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 virtual bool AddCryptedKey(const CPubKey& vchPubKey, const vector<unsigned char>& vchCryptedSecret);
153 bool AddKeyCombi(const CKeyID& keyId, const CKeyCombi& keyCombi);
154 bool HasKey(const CKeyID& address) const {
155 {
156 LOCK(cs_KeyStore);
157 if (!IsEncrypted())
158 return CBasicKeyStore::HasKey(address);
159 return mapCryptedKeys.count(address) > 0;
160 }
161 return false;
162 }
163 bool GetKey(const CKeyID& address, CKey& keyOut, bool IsMiner = false) const;
164
165 bool GetPubKey(const CKeyID& address, CPubKey& vchPubKeyOut, bool IsMiner = false) const;

Callers 4

luavm_executescriptFunction · 0.45
genutxomultisignatureFunction · 0.45
SubmitOrderTxFunction · 0.45
SubmitTxFunction · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected