Skip to content

Commit

Permalink
simplewallet: print public keys too on spendkey/viewkey commands
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Nov 13, 2016
1 parent a99ab49 commit 14cb088
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/simplewallet/simplewallet.cpp
Expand Up @@ -280,15 +280,17 @@ std::string simple_wallet::get_commands_str()
bool simple_wallet::viewkey(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
{
// don't log
std::cout << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_view_secret_key) << std::endl;
std::cout << "secret: " << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_view_secret_key) << std::endl;
std::cout << "public: " << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_account_address.m_view_public_key) << std::endl;

return true;
}

bool simple_wallet::spendkey(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
{
// don't log
std::cout << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_spend_secret_key) << std::endl;
std::cout << "secret: " << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_spend_secret_key) << std::endl;
std::cout << "public: " << string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_account_address.m_spend_public_key) << std::endl;

return true;
}
Expand Down

0 comments on commit 14cb088

Please sign in to comment.