Merge pull request #6069

d64e5aa7 wallet: allow message sign/verify for subaddresses (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-02-06 00:29:32 -08:00
commit 3b224bb99d
No known key found for this signature in database
GPG key ID: C64552D877C32479
7 changed files with 67 additions and 19 deletions

View file

@ -706,11 +706,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'