From 9a454b60ce5bd154a46f228a2ad6cc79359c7406 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 24 Feb 2016 22:43:54 +0900 Subject: [PATCH] trezor: raise error for decryption attempts --- plugins/trezor/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index 50cb75c68..6de6d8f31 100644 --- a/plugins/trezor/plugin.py +++ b/plugins/trezor/plugin.py @@ -32,6 +32,7 @@ class TrezorCompatibleWallet(BIP44_HW_Wallet): return EncodeBase58Check(xpub) def decrypt_message(self, pubkey, message, password): + raise RuntimeError(_('Electrum and %s encryption and decryption are currently incompatible') % self.device) address = public_key_to_bc_address(pubkey.decode('hex')) client = self.get_client() address_path = self.address_id(address)