1
0

Trezor: Implement decrypt message

For reasons I don't yet understand this can only decrypt
messages encrypted by the Trezor, not by Electrum
This commit is contained in:
Neil Booth
2016-01-10 14:21:40 +09:00
parent 9cf0a9720f
commit d5c3c09bbc
2 changed files with 12 additions and 4 deletions

View File

@@ -185,8 +185,8 @@ def trezor_client_class(protocol_mixin, base_client, proto):
return wrapped
cls = TrezorClient
for method in ['apply_settings', 'change_pin', 'get_address',
'get_public_node', 'load_device_by_mnemonic',
for method in ['apply_settings', 'change_pin', 'decrypt_message',
'get_address', 'get_public_node', 'load_device_by_mnemonic',
'load_device_by_xprv', 'recovery_device',
'reset_device', 'sign_message', 'sign_tx', 'wipe_device']:
setattr(cls, method, wrapper(getattr(cls, method)))