implement get public/private spend key

This commit is contained in:
woodser
2019-07-05 14:59:24 -04:00
parent a9909373e4
commit 9f7497fc32
2 changed files with 24 additions and 0 deletions
+10
View File
@@ -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);
+14
View File
@@ -208,6 +208,20 @@ namespace monero {
*/
string getPrivateViewKey() const;
/**
* Get the wallet's public spend key.
*
* @return the wallet's public spend key
*/
string getPublicSpendKey() const;
/**
* Get the wallet's private spend key.
*
* @return the wallet's private spend key
*/
string getPrivateSpendKey() const;
/**
* TODO
*/