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:
@@ -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++)
|
||||
|
||||
@@ -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
@@ -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
@@ -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