mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
scratchpad executing code from MoneroWallet class
This commit is contained in:
+11
-1
@@ -1,6 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include "wallet2.h"
|
||||
#include "wallet/MoneroWallet.h"
|
||||
#include "wallet/MoneroWallet.cpp"
|
||||
//#include <boost/stacktrace.hpp>
|
||||
using namespace std;
|
||||
|
||||
@@ -51,5 +53,13 @@ int main(int argc, const char* argv[]) {
|
||||
cout << "Wallet exists: " << walletExists(path) << endl;
|
||||
|
||||
// openWallet(path, password, networkType);
|
||||
createWalletRandom(language, networkType);
|
||||
// createWalletRandom(language, networkType);
|
||||
|
||||
// create wallet
|
||||
MoneroWallet* wallet = new MoneroWallet();
|
||||
|
||||
// get the mnemonic
|
||||
epee::wipeable_string mnemonic;
|
||||
wallet->getMnemonic(mnemonic);
|
||||
cout << "Mnemonic: " << string(mnemonic.data(), mnemonic.size()) << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user