Skip to content

Commit

Permalink
Add view spendkey to wallet RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
billaue2 committed Jul 4, 2017
1 parent 160144d commit 819f7e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/wallet_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,10 @@ namespace tools
{
res.key = string_tools::pod_to_hex(m_wallet.get_account().get_keys().m_view_secret_key);
}
else if (req.key_type.compare("spend_key") == 0)
{
res.key = string_tools::pod_to_hex(m_wallet.get_account().get_keys().m_spend_secret_key);
}
else
{
er.message = "key_type " + req.key_type + " not found";
Expand Down

0 comments on commit 819f7e6

Please sign in to comment.