tfix bug #1715 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0e3c3b59c8d182cbb2465d354605a30cbb72e613 DIR parent 9659e8542d716dc1d87b4064906c444e4f18a95a HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 16 Mar 2016 12:15:08 +0100 fix bug #1715 Diffstat: M lib/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -218,7 +218,9 @@ class Commands: """Sign a transaction. The wallet keys will be used unless a private key is provided.""" if privkey: pubkey = bitcoin.public_key_from_private_key(privkey) - tx.sign({pubkey:privkey}) + h160 = bitcoin.hash_160(pubkey.decode('hex')) + x_pubkey = 'fd' + (chr(0) + h160).encode('hex') + tx.sign({x_pubkey:privkey}) else: self.wallet.sign_transaction(tx, self._password) return tx.as_dict()