(28 . 6)(28 . 15)
175 // This may succeed even if GetKey fails (e.g., encrypted wallets)
176 virtual bool GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char>& vchPubKeyOut) const;
177
178 virtual bool GetSecret(const CBitcoinAddress &address, CSecret& vchSecret) const
179 {
180 CKey key;
181 if (!GetKey(address, key))
182 return false;
183 vchSecret = key.GetSecret();
184 return true;
185 }
186
187 // Generate a new key, and add it to the store
188 virtual std::vector<unsigned char> GenerateNewKey();
189 };