electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3d32301121d4d0273f482e66da6382cb9e279c7a
parent ff390688678bf31f36433feb04fd328173f60587
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 26 Feb 2017 11:01:27 +0100

trezor plugin: update parameters of decrypt_message

Diffstat:
Mplugins/trezor/plugin.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py @@ -27,11 +27,10 @@ class TrezorCompatibleKeyStore(Hardware_KeyStore): def get_client(self, force_pair=True): return self.plugin.get_client(self, force_pair) - def decrypt_message(self, pubkey, message, password): + def decrypt_message(self, sequence, message, password): raise RuntimeError(_('Electrum and %s encryption and decryption are currently incompatible') % self.device) - address = public_key_to_p2pkh(pubkey.decode('hex')) client = self.get_client() - address_path = self.address_id(address) + address_path = self.get_derivation() + "/%d/%d"%sequence address_n = client.expand_path(address_path) payload = base64.b64decode(message) nonce, message, msg_hmac = payload[:33], payload[33:-8], payload[-8:]