implement get public/private view key

This commit is contained in:
woodser
2019-06-30 20:39:05 -04:00
parent 658b4b57a2
commit 689ed51ad8
+10
View File
@@ -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<MoneroWalletListener&> listener) {
cout << "setListener()" << endl;
wallet2Listener->setWalletListener(listener);