btchip-python icon indicating copy to clipboard operation
btchip-python copied to clipboard

hw.1 support

Open molecular opened this issue 8 years ago • 19 comments

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.

molecular avatar Sep 06 '17 08:09 molecular

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

btchip avatar Sep 06 '17 08:09 btchip

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?

molecular avatar Sep 06 '17 09:09 molecular

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

btchip avatar Sep 06 '17 09:09 btchip

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.

molecular avatar Sep 06 '17 10:09 molecular

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.

btchip avatar Sep 06 '17 10:09 btchip

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.

molecular avatar Sep 06 '17 10:09 molecular

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

btchip avatar Sep 06 '17 10:09 btchip

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!

molecular avatar Sep 06 '17 10:09 molecular

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

btchip avatar Sep 06 '17 11:09 btchip

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

molecular avatar Sep 18 '17 07:09 molecular

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

btchip avatar Sep 18 '17 09:09 btchip

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

molecular avatar Sep 21 '17 07:09 molecular

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

btchip avatar Sep 21 '17 07:09 btchip

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)?

molecular avatar Sep 21 '17 08:09 molecular

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

btchip avatar Sep 21 '17 08:09 btchip

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.

EchterAgo avatar Apr 19 '19 05:04 EchterAgo

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

nimrodlehavi avatar Jun 04 '24 08:06 nimrodlehavi

@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

molecular avatar Jun 26 '24 09:06 molecular

Thanks, wrote on tg

nimrodlehavi avatar Jun 26 '24 18:06 nimrodlehavi