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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user