Move GenerateNewKey back to CWallet

This commit is contained in:
Pieter Wuille
2012-02-18 15:02:36 +01:00
parent 0b807a417f
commit 9976cf070f
4 changed files with 12 additions and 12 deletions

View File

@@ -8,16 +8,6 @@
#include "db.h"
#include "script.h"
std::vector<unsigned char> CKeyStore::GenerateNewKey()
{
RandAddSeedPerfmon();
CKey key;
key.MakeNewKey();
if (!AddKey(key))
throw std::runtime_error("CKeyStore::GenerateNewKey() : AddKey failed");
return key.GetPubKey();
}
bool CKeyStore::GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char> &vchPubKeyOut) const
{
CKey key;