mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-17 13:44:36 +01:00
implement get public/private spend key
This commit is contained in:
@@ -613,6 +613,16 @@ namespace monero {
|
||||
return epee::string_tools::pod_to_hex(wallet2->get_account().get_keys().m_view_secret_key);
|
||||
}
|
||||
|
||||
string MoneroWallet::getPublicSpendKey() const {
|
||||
cout << "getPrivateSpendKey()" << endl;
|
||||
return epee::string_tools::pod_to_hex(wallet2->get_account().get_keys().m_account_address.m_spend_public_key);
|
||||
}
|
||||
|
||||
string MoneroWallet::getPrivateSpendKey() const {
|
||||
cout << "getPrivateSpendKey()" << endl;
|
||||
return epee::string_tools::pod_to_hex(wallet2->get_account().get_keys().m_spend_secret_key);
|
||||
}
|
||||
|
||||
void MoneroWallet::setListener(boost::optional<MoneroWalletListener&> listener) {
|
||||
cout << "setListener()" << endl;
|
||||
wallet2Listener->setWalletListener(listener);
|
||||
|
||||
Reference in New Issue
Block a user