| 243 | } |
| 244 | |
| 245 | bool CWallet::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const |
| 246 | { |
| 247 | LOCK(cs_wallet); |
| 248 | std::map<CKeyID, CHDPubKey>::const_iterator mi = mapHdPubKeys.find(address); |
| 249 | if (mi != mapHdPubKeys.end()) |
| 250 | { |
| 251 | const CHDPubKey &hdPubKey = (*mi).second; |
| 252 | vchPubKeyOut = hdPubKey.extPubKey.pubkey; |
| 253 | return true; |
| 254 | } |
| 255 | else |
| 256 | return CCryptoKeyStore::GetPubKey(address, vchPubKeyOut); |
| 257 | } |
| 258 | |
| 259 | bool CWallet::GetKey(const CKeyID &address, CKey& keyOut) const |
| 260 | { |
no test coverage detected