wallet: allow message sign/verify for subaddresses

This commit is contained in:
moneromooo-monero 2019-10-31 14:09:19 +00:00
parent 4c9fd8d86d
commit d64e5aa719
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
7 changed files with 67 additions and 19 deletions

View file

@ -705,11 +705,13 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(check_reserve_proof)
def sign(self, data):
def sign(self, data, account_index = 0, address_index = 0):
sign = {
'method': 'sign',
'params' : {
'data': data,
'account_index': account_index,
'address_index': address_index,
},
'jsonrpc': '2.0',
'id': '0'