electrum icon indicating copy to clipboard operation
electrum copied to clipboard

keepkey p2sh-segwit wallet can't spend

Open SomberNight opened this issue 8 years ago • 6 comments

On git master 4e60cedea9c295b2c2fa62b94d20eba3c515e5d9.

Keepkey standard wallet with p2wpkh-p2sh script type (BIP49 derivation path) fails to sign unsigned transactions.

Typical 1-in 2-out tx.

Traceback (most recent call last):
  File "/home/user/wspace/electrum/gui/qt/util.py", line 579, in run
    result = task.task()
  File "/home/user/wspace/electrum/lib/wallet.py", line 1152, in sign_transaction
    k.sign_transaction(tx, password)
  File "/home/user/wspace/electrum/plugins/keepkey/plugin.py", line 59, in sign_transaction
    self.plugin.sign_transaction(self, tx, prev_tx, xpub_path)
  File "/home/user/wspace/electrum/plugins/keepkey/plugin.py", line 224, in sign_transaction
    signed_tx = client.sign_tx(self.get_coin_name(), inputs, outputs, lock_time=tx.locktime)[1]
  File "/home/user/wspace/electrum/plugins/keepkey/clientbase.py", line 218, in wrapped
    return func(self, *args, **kwargs)
  File "/home/user/.local/lib/python3.5/site-packages/keepkeylib/client.py", line 148, in wrapped_f
    return f(*args, **kwargs)
  File "/home/user/.local/lib/python3.5/site-packages/keepkeylib/client.py", line 871, in sign_tx
    res = self.call(proto.TxAck(tx=msg))
  File "/home/user/.local/lib/python3.5/site-packages/keepkeylib/client.py", line 148, in wrapped_f
    return f(*args, **kwargs)
  File "/home/user/.local/lib/python3.5/site-packages/keepkeylib/client.py", line 189, in call
    msg = handler(resp)
  File "/home/user/wspace/electrum/plugins/keepkey/clientbase.py", line 35, in callback_Failure
    raise RuntimeError(msg.message)
RuntimeError: Failed to compile output
$ pip3 show keepkey
Name: keepkey
Version: 4.0.0

SomberNight avatar Dec 07 '17 00:12 SomberNight

Tested again on 3851e78454f559ec4368a4b04dd61c2b9a1f9dc1 with python-keepkey 4.0.2. Issue still persists.

SomberNight avatar Dec 15 '17 04:12 SomberNight

can you try to just sign the transaction and broadcast it using a different tool like blockchain info pushtx ?

bsbits avatar Dec 16 '17 05:12 bsbits

can you try to just sign the transaction

Sign how? Using a different tool? The problem occurs when I try to sign it using Electrum.

SomberNight avatar Dec 16 '17 14:12 SomberNight

I too have coins trapped on BIP49 keepkey. Are these lost permanently or could these be recovered if keepkey upgrades firmware?

bitsolemn avatar Feb 19 '18 02:02 bitsolemn

@bitsolemn No, not trapped. You can:

  • use Electrum in combination with a different hw device (Trezor, Ledger, Digital Bitbox all support p2wpkh-p2sh) initialised from the same seed words
  • use Electrum to create a software wallet from the same seed words (enable the BIP39 option when restoring from seed)

SomberNight avatar Feb 19 '18 02:02 SomberNight

Ah right. The stress clouded my thinking. Thanks~

bitsolemn avatar Feb 19 '18 03:02 bitsolemn