From 689ed51ad8a0098bddd7e3e30b91f86e68ac6a4d Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 30 Jun 2019 20:39:05 -0400 Subject: [PATCH] implement get public/private view key --- src/wallet/MoneroWallet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 8eea7e9..cd4b970 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -595,6 +595,16 @@ namespace monero { return string(wipeablePassword.data(), wipeablePassword.size()); } + string MoneroWallet::getPublicViewKey() const { + cout << "getPrivateViewKey()" << endl; + return epee::string_tools::pod_to_hex(wallet2->get_account().get_keys().m_account_address.m_view_public_key); + } + + string MoneroWallet::getPrivateViewKey() const { + cout << "getPrivateViewKey()" << endl; + return epee::string_tools::pod_to_hex(wallet2->get_account().get_keys().m_view_secret_key); + } + void MoneroWallet::setListener(boost::optional listener) { cout << "setListener()" << endl; wallet2Listener->setWalletListener(listener);