(28 . 6)(28 . 15)
198 // This may succeed even if GetKey fails (e.g., encrypted wallets)
199 virtual bool GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char>& vchPubKeyOut) const;
200
201 virtual bool GetSecret(const CBitcoinAddress &address, CSecret& vchSecret) const
202 {
203 CKey key;
204 if (!GetKey(address, key))
205 return false;
206 vchSecret = key.GetSecret();
207 return true;
208 }
209
210 // Generate a new key, and add it to the store
211 virtual std::vector<unsigned char> GenerateNewKey();
212 };