mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-19 08:08:39 +02:00
implement get public/private view key
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user