Skip to content
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

Cannot import keys from Jade HWW over USB #1480

Closed
Lobbelt opened this issue Nov 16, 2021 · 17 comments
Closed

Cannot import keys from Jade HWW over USB #1480

Lobbelt opened this issue Nov 16, 2021 · 17 comments
Labels

Comments

@Lobbelt
Copy link
Contributor

Lobbelt commented Nov 16, 2021

I updated both Specter Desktop (1.7.1) and the Jade firmware (01.30 no radio) to the latest version. When trying to import the keys into Specter Desktop, the screen is stuck at "Detecting...", even though the device is plugged in. Retried multiple times in different USB ports as well. Blockstream Green is perfectly detecting (and unlocking) the device.

It seems to be the same issue referenced in #1251.

@ikohut
Copy link

ikohut commented Nov 17, 2021

Same for me. Specter Desktop (1.7.1) and the Jade firmware (0.1.30) too. No luck to connect to Specter, but Blockstream Green app works well

@k9ert
Copy link
Collaborator

k9ert commented Nov 23, 2021

The thing is that i couldn't reproduce the issue. So more details are needed. Which OS are you using? WHich version of the jade-firmware? If you're using Windows, did you do this:
https://help.blockstream.com/hc/en-us/articles/900005443223-Nothing-happens-when-I-plug-my-Blockstream-Jade-to-my-computer

@k9ert k9ert added the hw_jade label Nov 23, 2021
@Lobbelt
Copy link
Contributor Author

Lobbelt commented Nov 23, 2021

My OS is MacOS Big Sur 11.2. Jade firmware details I mentioned above: 01.30 no radio.

Blockstream Green detects the Jade so no issue there...

@evliu
Copy link

evliu commented Dec 4, 2021

Same on macos Monterey. Blockstream Green has no issues, I see it in the system profiler under USB, latest Specter and Jade firmware

@CoderBoogs
Copy link

I am also having the same issue. When I connect the Jade it stays stuck on detecting

@k9ert
Copy link
Collaborator

k9ert commented Jan 6, 2022

I have only a MacOS catalina-machine. I just tried and it's working there. It's the same machine which is building the App-image so it could potentially be an issue with the AppImage optimized for Catalina and not working on later MacOS versions.

So are you all working with the AppImage or is there someone who can confirm that it's (not) working in a pip-installation on a newer MacOS ?

@evliu
Copy link

evliu commented Jan 6, 2022

I used the AppImage on my Catalina machine and have the same issue as my two Monterey machines. Both Monterey machines are m1, Catalina is Intel. Issue still persists for me.

@CoderBoogs
Copy link

I am not sure I am using windows

@stepansnigirev
Copy link
Collaborator

Jade added a new VID-PID pair to the list of USB devices, so it might be that devices that use these PID:VID were not detected by Specter.
We updated the list in #1520 so next release should be able to detect all Jades.

@Lobbelt
Copy link
Contributor Author

Lobbelt commented Jan 21, 2022

Interestingly, the issue fixed itself (?). I did not update the Jade firmware and Specter Desktop is still on 1.7.1 and I was just able to import the Jade's keys.

EDIT: Again cannot detect the Jade - however, I seem to have issues with Jade in other software wallets as well (including its native Blockstream Green app now...). So this issue does not seem to be exclusive to Specter Desktop.

@evliu
Copy link

evliu commented Feb 9, 2022

Jade added a new VID-PID pair to the list of USB devices, so it might be that devices that use these PID:VID were not detected by Specter. We updated the list in #1520 so next release should be able to detect all Jades.

Do you have an idea of which version? I'm on 1.8.1 with jade fw 01.32 and still doesn't detect on any of my 3 macs (both m1 and intel)

@Lobbelt
Copy link
Contributor Author

Lobbelt commented Feb 9, 2022

Jade added a new VID-PID pair to the list of USB devices, so it might be that devices that use these PID:VID were not detected by Specter. We updated the list in #1520 so next release should be able to detect all Jades.

Do you have an idea of which version? I'm on 1.8.1 with jade fw 01.32 and still doesn't detect on any of my 3 macs (both m1 and intel)

Do you have any other wallet software running at the same time (e.g. Blockstream Green or Electrum)? I have noticed that that causes issues too, so close down that software as well.

@evliu
Copy link

evliu commented Feb 10, 2022

Nope, direct usb-c connection, I see it in system profile, no other USB devices connected or other Bitcoin software except Specter. Works totally fine in Green and when I do an ls on the /dev/tty/USB or whatever the command is. Same for all computers. I saw in Bitcoin hardware repo there has been a bit of new Jade PRs merged in

@k9ert
Copy link
Collaborator

k9ert commented Feb 24, 2022

Do you have an idea of which version?

Just to confirm: yes, it's v1.8.1

@evliu
Copy link

evliu commented Mar 22, 2022

I know this is closed but still haven't been able to connect w/ v1.8.1, fw 01.33, but i'm able to use https://github.com/bitcoin-core/HWI
when i enumerate, I do get:

{
    "type": "jade",
    "model": "jade",
    "path": "/dev/cu.usbserial-0224A7E3",
    "needs_pin_sent": false,
    "needs_passphrase_sent": false,
    "fingerprint": "..."
  }

from there, i'm able to use hwi to grab xpubs, descriptors, sign transactions, etc.

edit: figured out one part. in specter/devices/hwi/jade.py:864, i put a breakpoint at the enumerate function. when it hits the correct device in devinfo, there's no PID or VID
image

When I change line 866 to if (devinfo.device == '/dev/cu.usbserial-0224A7E3'):, then i'm able to import the xpubs. Fun first dive into python :)

@evliu
Copy link

evliu commented Mar 23, 2022

@k9ert
Found the issue. hwi-2.0.2 doesn't detect my jade (i think it has newer hardware) but hwi-2.1.0 does. I retrofitted specter-desktop with the newer version (which required the new pyseriel, hwi, and I used python 3.10)

I'm guessing this fix won't get in for awhile because this will require quite a bit of changes. hwi-2.1.0 has some regression issues in hwi, but i'm glad I got down to the bottom of it.

image

@k9ert
Copy link
Collaborator

k9ert commented Mar 25, 2022

I've created a new issue. Thank you very much for the investigation.

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

No branches or pull requests

6 participants