From b899dfe5fb63a2c437bcb07f84bb587213141809 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 26 May 2019 22:00:59 -0400 Subject: [PATCH] begin implementation of MoneroWallet.h/.cpp --- src/wallet/MoneroWallet.cpp | 3 +++ src/wallet/MoneroWallet.h | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index e69de29..264e616 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -0,0 +1,3 @@ +void MoneroWallet::getMnemonic(epee::wipeable_string& mnemonic) const { + throw runtime_error("Not implemented"); +} diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index e69de29..fed6d09 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -0,0 +1,40 @@ +using namespace std; + +/** + * Monero wallet interface. + */ + class MoneroWallet { + + /** + * Construct the wallet. TODO + */ + MoneroWallet() + + /** + * Deconstructs the wallet. + */ + ~MoneroWallet(); + + // --------------------------------- PUBLIC -------------------------------- + + public: + +// /** +// * Get the wallet's seed. +// * +// * @return the wallet's seed +// */ +// const string getSeed(); + + /** + * Get the wallet's mnemonic phrase derived from the seed. + * + * @param mnemonic is assigned the wallet's mnemonic phrase + */ + void getMnemonic(epee::wipeable_string& mnemonic) const; + + // --------------------------------- PRIVATE -------------------------------- + + private: + + };