diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:24:26 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:24:26 -0800 |
commit | 92ea8af34dae9181fdfae458a60bc0ddb0593096 (patch) | |
tree | d9bd4a55244f59cf868b04762101146f3e085d47 | |
parent | Merge pull request #3113 (diff) | |
parent | Allow retrieving spend key via RPC (diff) | |
download | monero-92ea8af34dae9181fdfae458a60bc0ddb0593096.tar.xz |
Merge pull request #3114
fb5c971c Allow retrieving spend key via RPC (Michał Sałaban)
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 9eb53dddd..7782e6952 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1319,6 +1319,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"; |