Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

hw.1 support #24

Open
molecular opened this issue Sep 6, 2017 · 19 comments
Open

hw.1 support #24

molecular opened this issue Sep 6, 2017 · 19 comments

Comments

@molecular
Copy link

molecular commented Sep 6, 2017

I'm trying to get my old hw.1 to work in electrum. samples/getFirmwareVersion.py doesn't see the device (matching udev rule is in place).

I see in btchipComm.py the usb id of the hw.1 (2581:1b7c) isn't recognized?

Was hw.1 support dropped? I remember using it sucessfully years ago with electrum.

@btchip
Copy link
Contributor

btchip commented Sep 6, 2017

WinUSB communication support has been dropped - you can update the firmware to a more recent version and keep using it with Electrum

@molecular
Copy link
Author

molecular commented Sep 6, 2017

cool.

I fail to update the firmware though. This page: https://firmwareupdate.hardwarewallet.com/ says I should enter the PIN 3 times. How can I enter the PIN when no software I have will recognize the device?

I clicked "start update" anyway, but the site says: "Please connect your BTChip dongle"

re-plugging doesn't help.

#> lsusb
Bus 004 Device 065: ID 2581:1b7c

#> cat /usr/lib/udev/rules.d/71-hw1.rules | grep 1b7c
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl"

#> sudo udevadm control --reload-rules

what else can I check / do?

@btchip
Copy link
Contributor

btchip commented Sep 6, 2017

Can you try to reflash using the Ledger Wallet Bitcoin Chrome application ?

@molecular
Copy link
Author

molecular commented Sep 6, 2017

Thanks for that pointer!

It looks better but still no success. It seems to find the device (yay!) and says "Verifying authenticity of your ledger wallet...." now for about 10 minutes.

Trying on a different machine... looks the same.

Maybe the device is in some weird state? I hadn't used it for years and I'm not sure what were the last actions I did.

@btchip
Copy link
Contributor

btchip commented Sep 6, 2017

Try to remove it and try again. After some time (I think 1-2 minutes) it should timeout and prompt you to reflash, then this should work.

@molecular
Copy link
Author

molecular commented Sep 6, 2017

unplugged hw.1, restarted chrome, started the extension (it says: please plug in your ledger), I plug it in (directly into the port, no usb hub this time). It's recognized quickly, page says "verifying authenticity..." Waiting now, but I don't think a timeout will happen due to previous experience.

@btchip
Copy link
Contributor

btchip commented Sep 6, 2017

ok, I'll recheck - might take a couple weeks

@molecular
Copy link
Author

ok... background: I'm trying to help people with electron-cash wallet + ledger. I know you're not a fan, but I'm happy you support cash anyway in your hardware. Thanks for that!

@btchip
Copy link
Contributor

btchip commented Sep 6, 2017

oh in that case you can PM me an address on reddit and I'll send a few, should be faster

@molecular
Copy link
Author

molecular commented Sep 18, 2017

@btchip I PMed an address on reddit. Did you receive that PM? Just asking because otherwise I'll just buy a device.

@btchip
Copy link
Contributor

btchip commented Sep 18, 2017

Sorry I've been traveling lately. Should get it shipped today

@molecular
Copy link
Author

received the btchips. Thanks a ton! Will share them with other electron-devs who they could be useful to.

@btchip
Copy link
Contributor

btchip commented Sep 21, 2017

great. Note that you'll need to flash them to the latest firmware using our Bitcoin Chrome app before they can be used

@molecular
Copy link
Author

hmmm, updating firmware worked to a point (it is at least uploaded to the device) using "Ledger Wallet Bitcoin" chrome app. But now the app wants me to enter/scan "security card qr code" supposedly located in some recovery sheet that came with the wallet (which I don't have).

Can I just abort the process at this point (remove the device)?

@btchip
Copy link
Contributor

btchip commented Sep 21, 2017

No, keep going with a dummy card (for example 00000000000000000000000000000000) built from https://www.ledgerwallet.com/wallet/keycard

@EchterAgo
Copy link

EchterAgo commented Apr 19, 2019

Ledger Nano / HW1 actually work quite well now in Electron Cash. The only issue I still have is that message signing will not work, same as with Electrum. For message signing I need to unplug / replug the dongle to get the 2FA code, but after I enter it I first get asked for the PIN and then I get a status of '6b00', invalid parameter. This status is from signature = self.get_client().signMessageSign(pin) in sign_message. I checked the data sent and it looked good to me. I'll try to get a capture of the sent / received data and add that here later.

@nimrodlehavi
Copy link

hi
was this ever resolved? i have an old HW1 device with some bch on it, but won't let me export private key
sent out all the btc, but now can't work it with electron b/c it's not supported there

@molecular
Copy link
Author

@nimrodlehavi

won't let me export private key

that's by design. HW wallets do not give out private keys, they only sign transactions/messages.

now can't work it with electron b/c it's not supported there

I think it should be supported. Maybe ask in https://t.me/electroncashwallet

@nimrodlehavi
Copy link

Thanks, wrote on tg

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

No branches or pull requests

4 participants