scratchpad executing code from MoneroWallet class

This commit is contained in:
woodser
2019-05-26 22:13:39 -04:00
parent b899dfe5fb
commit f314df072d
4 changed files with 32 additions and 13 deletions
+1
View File
@@ -17,6 +17,7 @@ set(MONERO_SRC "${MONERO}/src")
include_directories("$ENV{JAVA_HOME}")
include_directories("$ENV{JAVA_HOME}/include")
include_directories("$ENV{JAVA_HOME}/include/darwin")
include_directories(src/)
include_directories(${MONERO}/contrib/epee/include)
include_directories(${MONERO}/external/)
include_directories(${MONERO}/external/easylogging++)
+10
View File
@@ -1,3 +1,13 @@
using namespace std;
MoneroWallet::MoneroWallet() {
cout << "constructing" << endl;
}
MoneroWallet::~MoneroWallet() {
cout << "deconstructing" << endl;
}
void MoneroWallet::getMnemonic(epee::wipeable_string& mnemonic) const {
throw runtime_error("Not implemented");
}
+10 -12
View File
@@ -5,20 +5,20 @@ using namespace std;
*/
class MoneroWallet {
/**
* Construct the wallet. TODO
*/
MoneroWallet()
/**
* Deconstructs the wallet.
*/
~MoneroWallet();
// --------------------------------- PUBLIC --------------------------------
public:
/**
* Construct the wallet. TODO
*/
MoneroWallet();
/**
* Deconstructs the wallet.
*/
~MoneroWallet();
// /**
// * Get the wallet's seed.
// *
@@ -35,6 +35,4 @@ using namespace std;
// --------------------------------- PRIVATE --------------------------------
private:
};
+11 -1
View File
@@ -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;
}