diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-29 20:08:47 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-17 11:38:21 +0000 |
commit | 8e077a5fc028a8926d7679fd403e4692b222ad96 (patch) | |
tree | 1fdc86e6b3806f7bb20d6c527599e409c064d664 /utils/python-rpc/framework/wallet.py | |
parent | functional_tests: add test for mining via wallet (diff) | |
download | monero-8e077a5fc028a8926d7679fd403e4692b222ad96.tar.xz |
functional_tests: add spend proof tests
Diffstat (limited to '')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index 713ddcca8..1949eddf0 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -622,6 +622,31 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(check_tx_proof) + def get_spend_proof(self, txid = '', message = ''): + get_spend_proof = { + 'method': 'get_spend_proof', + 'params' : { + 'txid': txid, + 'message': message, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_spend_proof) + + def check_spend_proof(self, txid = '', message = '', signature = ''): + check_spend_proof = { + 'method': 'check_spend_proof', + 'params' : { + 'txid': txid, + 'message': message, + 'signature': signature, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(check_spend_proof) + def get_reserve_proof(self, all_ = True, account_index = 0, amount = 0, message = ''): get_reserve_proof = { 'method': 'get_reserve_proof', |