mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
This is a way to do deterministic keys that fits in better.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "PeerDoor.h"
|
||||
#include "RPCDoor.h"
|
||||
#include "BitcoinUtil.h"
|
||||
#include "DeterministicKeys.h"
|
||||
#include "key.h"
|
||||
#include "database/SqliteDatabase.h"
|
||||
//#include <boost/log/trivial.hpp>
|
||||
#include <iostream>
|
||||
@@ -31,9 +31,9 @@ Application::Application()
|
||||
mPeerDoor=NULL;
|
||||
mRPCDoor=NULL;
|
||||
|
||||
DetKeySet ks("This is a test payphrase.");
|
||||
|
||||
Ledger::pointer firstLedger(new Ledger(ks.getAccountID(0), 1000000));
|
||||
CKey::pointer account_key(new CKey(CKey::GetBaseFromString("This is my payphrase."), 0, false));
|
||||
|
||||
Ledger::pointer firstLedger(new Ledger(account_key->GetAddress().GetHash160(), 1000000));
|
||||
firstLedger->setClosed();
|
||||
firstLedger->setAccepted();
|
||||
mMasterLedger.pushLedger(firstLedger);
|
||||
|
||||
Reference in New Issue
Block a user