mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Clean up creating seed from string.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "key.h"
|
||||
#include "utils.h"
|
||||
#include "TaggedCache.h"
|
||||
#include "boost/filesystem.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
|
||||
Application* theApp = NULL;
|
||||
|
||||
@@ -102,14 +102,9 @@ void Application::run()
|
||||
mConnectionPool.start();
|
||||
|
||||
// New stuff.
|
||||
NewcoinAddress rootSeedMaster;
|
||||
NewcoinAddress rootAddress;
|
||||
|
||||
rootSeedMaster.setFamilySeed(CKey::PassPhraseToKey("masterpassphrase"));
|
||||
|
||||
NewcoinAddress rootSeedMaster = NewcoinAddress::createSeedGeneric("masterpassphrase");
|
||||
NewcoinAddress rootGeneratorMaster = NewcoinAddress::createGeneratorPublic(rootSeedMaster);
|
||||
|
||||
rootAddress.setAccountPublic(rootGeneratorMaster, 0);
|
||||
NewcoinAddress rootAddress = NewcoinAddress::createAccountPublic(rootGeneratorMaster, 0);
|
||||
|
||||
// Print enough information to be able to claim root account.
|
||||
std::cerr << "Root master seed: " << rootSeedMaster.humanFamilySeed() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user