mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Allow retrieving spend key via RPC
This commit is contained in:
parent
35d5aa36c9
commit
fb5c971cc6
1 changed files with 4 additions and 0 deletions
|
@ -1315,6 +1315,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 a new issue