mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Move GenerateNewKey back to CWallet
This commit is contained in:
parent
0b807a417f
commit
9976cf070f
4 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue