Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Javelina on October 29, 2017, 03:42:33 AM



Title: Signing a BTC address on a Windows PC?
Post by: Javelina on October 29, 2017, 03:42:33 AM
I am trying to sign a message to claim Bitcore for my BTC addresses. I use a Ledger Nano wallet (not a Nano S) which cannot sign messages on its own. I was told to try doing it in conjunction with Electrum but have been unsuccessful in signing the message. Is there a Windows friendly program that will sign messages either in conjunction with my Nano or independently? Thanks very much


Title: Re: Signing a BTC address on a Windows PC?
Post by: Retired on October 29, 2017, 04:07:18 AM
Does Ledger have a message signing API? Since the private key never leaves the device, if it doesn't you'll be left with insecure options.


Title: Re: Signing a BTC address on a Windows PC?
Post by: Javelina on October 29, 2017, 04:15:09 AM
The Nano has a "sign message" option but you get an error message when you try and sign. This is not some glitch on my end, but a well-known flaw in the Nano. There have been two firmware updates recently to deal with BCH and Segwit. I don't think that had anything to do with disabling the signing function but in any case it just doesn't work on the Nano. The newer Nano S apparently can sign. Electrum is capable of utilizing the addresses from the Nano (and has done it with mine). It also has a "sign message" option but again, perhaps because of the Nano flaw, that signing doesn't work either. It says it's signing but it never happens.


Title: Re: Signing a BTC address on a Windows PC?
Post by: Retired on October 29, 2017, 09:27:29 AM
As a last resort, would recovery seeds from the Nano work with the Nano S? If so, you can switch from one to another with a trusted computer.


Title: Re: Signing a BTC address on a Windows PC?
Post by: OmegaStarScream on October 29, 2017, 10:36:29 AM
The Ledger Nano seed should work with any other Ledger device or any BIP39 compatible software. So you could import it to Electrum and sign there, but If you ever do that, the device will be kinda useless as the whole point from using it in the first place is to not have your private keys leave the device.


Title: Re: Signing a BTC address on a Windows PC?
Post by: bob123 on October 29, 2017, 11:19:51 AM
The ledger nano s offers the option to sign messages from addresses which were created on this ledger.
You have to open the settings menu -> tools -> "sign message".
Afterwards you can choose an address which you want to use signing the message and enter your message.
Sometimes it shows an error message. In this case you should try to update your firmware and try it again afterwards.


Title: Re: Signing a BTC address on a Windows PC?
Post by: Javelina on October 29, 2017, 02:13:33 PM
The ledger nano s offers the option to sign messages from addresses which were created on this ledger.
You have to open the settings menu -> tools -> "sign message".
Afterwards you can choose an address which you want to use signing the message and enter your message.
Sometimes it shows an error message. In this case you should try to update your firmware and try it again afterwards.

But I have a Nano, not a Nano S.


Title: Re: Signing a BTC address on a Windows PC?
Post by: aleksej996 on October 29, 2017, 04:01:34 PM
Just install Bitcoin Core and import the keys by going to Help->Debug windows->Console and type
Code:
importprivkey <your_private_key>
. I am unfamiliar with Nano devices, but if you can get your private key then you should be fine. In order to revert back to the security you had before you imported the address you need to send the bitcoins from that address to the new address created on your hardware wallet.


Title: Re: Signing a BTC address on a Windows PC?
Post by: bob123 on October 30, 2017, 08:54:48 PM
The ledger nano s offers the option to sign messages from addresses which were created on this ledger.
You have to open the settings menu -> tools -> "sign message".
Afterwards you can choose an address which you want to use signing the message and enter your message.
Sometimes it shows an error message. In this case you should try to update your firmware and try it again afterwards.

But I have a Nano, not a Nano S.

Excuse me for my typo. I meaned the Nano. I own a ledger nano myself (nano, not the new nano s).
And signing message works as i wrote above.


Just install Bitcoin Core and import the keys by going to Help->Debug windows->Console and type
Code:
importprivkey <your_private_key>
.

I would not recommend to import your private keys into bitcoin core. You would have to use your recovery seed to create the
private keys to be able to import them to bitcoin core since ledger does not support key exports.
Additionally this would completely destroy the sense of having a hardware wallet which is not directly connected to the internet.