aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichał Sałaban <michal@salaban.info>2018-01-14 06:17:35 +0100
committerMichał Sałaban <michal@salaban.info>2018-01-14 06:23:12 +0100
commitfb5c971cc6e9ef5604fd818cb06dc4795a3f49b6 (patch)
treed3916d040965b2d2148580d7b48215628d2b1493 /src
parentMerge pull request #3091 (diff)
downloadmonero-fb5c971cc6e9ef5604fd818cb06dc4795a3f49b6.tar.xz
Allow retrieving spend key via RPC
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet_rpc_server.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index fc2c43c04..dcd2d5d4d 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1315,6 +1315,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";