mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	wallet: allow signing a message with spend or view key
This commit is contained in:
		
							parent
							
								
									5946002105
								
							
						
					
					
						commit
						743608ec16
					
				
					 16 changed files with 178 additions and 43 deletions
				
			
		| 
						 | 
				
			
			@ -706,13 +706,14 @@ class Wallet(object):
 | 
			
		|||
        }
 | 
			
		||||
        return self.rpc.send_json_rpc_request(check_reserve_proof)
 | 
			
		||||
 | 
			
		||||
    def sign(self, data, account_index = 0, address_index = 0):
 | 
			
		||||
    def sign(self, data, account_index = 0, address_index = 0, signature_type = ""):
 | 
			
		||||
        sign = {
 | 
			
		||||
            'method': 'sign',
 | 
			
		||||
            'params' : {
 | 
			
		||||
                'data': data,
 | 
			
		||||
                'account_index': account_index,
 | 
			
		||||
                'address_index': address_index,
 | 
			
		||||
                'signature_type': signature_type,
 | 
			
		||||
            },
 | 
			
		||||
            'jsonrpc': '2.0', 
 | 
			
		||||
            'id': '0'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue