diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-13 17:24:53 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-13 17:24:53 +0000 |
| commit | 14cb088300423036d8aa30d583aeb7b31a7d6e24 (patch) | |
| tree | 66776c8350ef6ea8f9df8ccaf23475440172410b /src | |
| parent | a99ab49dd58bfd8b9db7a98946a8536254eb80fa (diff) | |
| download | monzero-core-14cb088300423036d8aa30d583aeb7b31a7d6e24.tar.gz monzero-core-14cb088300423036d8aa30d583aeb7b31a7d6e24.tar.xz monzero-core-14cb088300423036d8aa30d583aeb7b31a7d6e24.zip | |
simplewallet: print public keys too on spendkey/viewkey commands
Diffstat (limited to 'src')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3190c0496..c07e62516 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -280,7 +280,8 @@ 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; } @@ -288,7 +289,8 @@ bool simple_wallet::viewkey(const std::vector<std::string> &args/* = std::vector 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; } |
