mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
Merge pull request #3114
fb5c971c
Allow retrieving spend key via RPC (Michał Sałaban)
This commit is contained in:
commit
92ea8af34d
@ -1319,6 +1319,10 @@ namespace tools
|
|||||||
{
|
{
|
||||||
res.key = string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_view_secret_key);
|
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
|
else
|
||||||
{
|
{
|
||||||
er.message = "key_type " + req.key_type + " not found";
|
er.message = "key_type " + req.key_type + " not found";
|
||||||
|
Loading…
Reference in New Issue
Block a user