Skip to content

BitBox02: can't add device as signer, HWI gives "generic error" #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Stadicus opened this issue Jul 23, 2021 · 0 comments
Open

BitBox02: can't add device as signer, HWI gives "generic error" #12

Stadicus opened this issue Jul 23, 2021 · 0 comments

Comments

@Stadicus
Copy link

When trying to add a BitBox02 hardware wallet as a signer, the device is recognized and I can unlock it, but then I get the following error message:

generic error. A keypath might be invalid. Supported keypaths are: m/49'/0'/<account'> for p2wpkh-p2sh; m/84'/0'/<account'> for p2wpkh; m/48'/0'/<account'>/2' for p2wsh multisig; account can be between 0' and 99'; For address keypaths, append /0/<address index> for a receive and /1/<change index> for a change address.

Seems related to #8

Full log:

#0x7f2b671e7fc0][ 2021-07-23T10:21:16.100 ] [ sendEvent ][ 118 ] 55
[#0x7f2b671e7fc0][ 2021-07-23T10:21:21.211 ] [ sendEvent ][ 118 ] 235
[#0x7f2b671e7fc0][ 2021-07-23T10:21:21.235 ] [ setAddSignerStep ][ 233 ] 0
2021-07-23 10:21:33.021 ( 342.395s) [        5AE46700]         hwiservice.cpp:88    INFO| Run hwi command '/tmp/.mount_Nunchu6NtvcI/appdir/bin/hwi enumerate' result: [{"type": "bitbox02", "path": "0003:0030:00", "model": "bitbox02_multi", "needs_pin_sent": false, "needs_passphrase_sent": false, "fingerprint": "b5496bff"}]
[#0x7f2b5ae46700][ 2021-07-23T10:21:33.021 ] [ GetDevices ][ 358 ] 1
[#0x7f2b671e7fc0][ 2021-07-23T10:21:33.024 ] [ slotFinishScanDevices ][ 277 ]
[#0x7f2b671e7fc0][ 2021-07-23T10:21:37.360 ] [ sendEvent ][ 118 ] 64
[#0x7f2b5ae46700][ 2021-07-23T10:21:37.360 ] [ slotStartCreateMasterSigner ][ 18 ] Test BB02 0
[#0x7f2b5ae46700][ 2021-07-23T10:21:37.361 ] [ setAddSignerStep ][ 233 ] 0
[#0x7f2b5ae46700][ 2021-07-23T10:21:37.361 ] [ nunchukCreateMasterSigner ][ 380 ] Test BB02 0
[#0x7f2b5ae46700][ 2021-07-23T10:21:37.361 ] [ nunchukCreateMasterSigner ][ 384 ] 0003:0030:00
2021-07-23 10:21:40.179 ( 349.554s) [        5AE46700]         hwiservice.cpp:88    INFO| Run hwi command '/tmp/.mount_Nunchu6NtvcI/appdir/bin/hwi enumerate' result: [{"type": "bitbox02", "path": "0003:0030:00", "model": "bitbox02_multi", "needs_pin_sent": false, "needs_passphrase_sent": false, "fingerprint": "b5496bff"}]
[#0x7f2b5ae46700][ 2021-07-23T10:21:40.180 ] [ GetDevices ][ 358 ] 1
[#0x7f2b5ae46700][ 2021-07-23T10:21:40.180 ] [ nunchukCreateMasterSigner ][ 386 ] QSharedPointer(0x7f2b50005d30)
[#0x7f2b5ae46700][ 2021-07-23T10:21:40.180 ] [ nunchukCreateMasterSigner ][ 389 ] Device:  QSharedPointer(0x3a98780)
[#0x7f2b5ae46700][ 2021-07-23T10:21:40.180 ] [ setAddSignerStep ][ 233 ] 1
[#0x7f2b5ae46700][ 2021-07-23T10:21:40.180 ] [ HealthCheckMasterSigner ][ 758 ] b5496bff qDiZSkZfoEDAmGTXXqqv
BitBox02 attestation check PASSED
2021-07-23 10:21:44.339 ( 353.714s) [        5AE46700]         hwiservice.cpp:88    INFO| Run hwi command '/tmp/.mount_Nunchu6NtvcI/appdir/bin/hwi -f b5496bff getxpub m/45'/0'/0'/1/0' result: {"error": "Input error: error code: 103, message: generic error. A keypath might be invalid. Supported keypaths are: m/49'/0'/<account'> for p2wpkh-p2sh; m/84'/0'/<account'> for p2wpkh; m/48'/0'/<account'>/2' for p2wsh multisig; account can be between 0' and 99'; For address keypaths, append /0/<address index> for a receive and /1/<change index> for a change address.", "code": -9}
[#0x7f2b5ae46700][ 2021-07-23T10:21:44.339 ] [ HealthCheckMasterSigner ][ 776 ] exception nunchuk::BaseException -4009 Input error: error code: 103, message: generic error. A keypath might be invalid. Supported keypaths are: m/49'/0'/<account'> for p2wpkh-p2sh; m/84'/0'/<account'> for p2wpkh; m/48'/0'/<account'>/2' for p2wsh multisig; account can be between 0' and 99'; For address keypaths, append /0/<address index> for a receive and /1/<change index> for a change address.
[#0x7f2b5ae46700][ 2021-07-23T10:21:44.339 ] [ nunchukHealthCheckMasterSigner ][ 350 ] b5496bff qDiZSkZfoEDAmGTXXqqv  m/45'/0'/0'/1/0
[#0x7f2b5ae46700][ 2021-07-23T10:21:44.339 ] [ slotStartCreateMasterSigner ][ 40 ] CREATE MASTER SIGNER FAIL
[#0x7f2b671e7fc0][ 2021-07-23T10:21:44.344 ] [ sendEvent ][ 118 ] 69
[#0x7f2b671e7fc0][ 2021-07-23T10:21:44.345 ] [ setAddSignerStep ][ 233 ] 0
[#0x7f2b671e7fc0][ 2021-07-23T10:21:44.350 ] [ slotFinishCreateMasterSigner ][ 267 ]

I tried two different BitBox02. I'm running the latest Nunchuk version on Ubuntu 20.04, all UDEV rules are installed. Other wallets like Sparrow that also use HWI work without issues.

Here some screenshots to illustrate the workflow:

image

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant