Add 'sethdseed' RPC to initialize or replace HD seed
This commit is contained in:
@@ -1452,7 +1452,11 @@ CPubKey CWallet::GenerateNewHDMasterKey()
|
||||
{
|
||||
CKey key;
|
||||
key.MakeNewKey(true);
|
||||
return DeriveNewMasterHDKey(key);
|
||||
}
|
||||
|
||||
CPubKey CWallet::DeriveNewMasterHDKey(const CKey& key)
|
||||
{
|
||||
int64_t nCreationTime = GetTime();
|
||||
CKeyMetadata metadata(nCreationTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user