mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 22:22:33 -04:00
Bind signature to full address and signing mode
This commit is contained in:
parent
743608ec16
commit
fa06c39d97
12 changed files with 47 additions and 51 deletions
|
@ -2012,8 +2012,6 @@ namespace tools
|
|||
signature_type = tools::wallet2::sign_with_spend_key;
|
||||
else if (req.signature_type == "view")
|
||||
signature_type = tools::wallet2::sign_with_view_key;
|
||||
else if (req.signature_type == "both")
|
||||
signature_type = tools::wallet2::sign_with_both_keys;
|
||||
else
|
||||
{
|
||||
er.code = WALLET_RPC_ERROR_CODE_INVALID_SIGNATURE_TYPE;
|
||||
|
@ -2063,7 +2061,6 @@ namespace tools
|
|||
{
|
||||
case tools::wallet2::sign_with_spend_key: res.signature_type = "spend"; break;
|
||||
case tools::wallet2::sign_with_view_key: res.signature_type = "view"; break;
|
||||
case tools::wallet2::sign_with_both_keys: res.signature_type = "both"; break;
|
||||
default: res.signature_type = "invalid"; break;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue