mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 23:31:32 +02: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);
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user