Bitcoin Forum

Bitcoin => Hardware wallets => Topic started by: vlom on March 12, 2017, 12:15:57 PM



Title: ledger wallet - sign message with specific BTC address
Post by: vlom on March 12, 2017, 12:15:57 PM
Does anybody know how to sign a sign message with a specific BTC address using ledger wallet chrome app?
i just can sign a message. but i can not chose the address i want to use to sign the message.

is there a way to chose the address i did not find?


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Coin-Keeper on March 12, 2017, 08:02:18 PM
I am watching this thread for a response too, just as a learning tool.  I own and use Trezor(s) and they do display the exact address to which my coins will be transferred on the screen before I authorize/sign the transaction.  This means that ONLY this address is valid for the authorization.  I bet the Ledger is the same but if it doesn't have a screen, I would like to know how this works on them too!  Staying tuned.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: vlom on March 14, 2017, 05:18:30 PM
i contacted the support and got an answer today.

they wrote:

Quote
We are currently working on a tool which will allow you to sign a message with a specific BC address on the next release of the Chrome application, within a couple of days.

Best regards

 
-- Vanessa Rabesandratana, Customer Success
More about Ledger: Public roadmap - Online store - Blog
 
i will test it and post a feedback here.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Coin-Keeper on March 14, 2017, 11:00:22 PM
To me that is a critically important feature.  Wouldn't a user want to be POSITIVE that the intended address is the only one to receive coins?  Of course the answer is yes!


Title: Re: ledger wallet - sign message with specific BTC address
Post by: vlom on March 19, 2017, 12:14:32 PM
i update the firmware of my ledger. then you have to restore...... but afterwards you can install the new BTC wallet and you can choose which address to use to sign a message.

unfortunately it does not work to sign a message that the byteball bot understands. i dont know why.

i found out why it dit not work. if you sign a message with this wallet then the first line of signature is the address you sign with. you have to remove this line.



Title: Re: ledger wallet - sign message with specific BTC address
Post by: bitofc on June 29, 2017, 03:33:10 AM
how do we sign a message with one of our BTC address?
could not find a way to do it, with trezor, it is so simple.

i try to connect to mycelium with OTG, but still I cannot see sign message with my Ledger BTC address.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: HCP on June 29, 2017, 04:47:02 AM
Does anybody know how to sign a sign message with a specific BTC address using ledger wallet chrome app?
To me that is a critically important feature.  Wouldn't a user want to be POSITIVE that the intended address is the only one to receive coins?  Of course the answer is yes!
You're confusing transactions and messages. The OP is wanting to sign a message... mostly likely to prove ownership of the address for some reason (ICO payout maybe?).

i update the firmware of my ledger. then you have to restore...... but afterwards you can install the new BTC wallet and you can choose which address to use to sign a message.
unfortunately it does not work to sign a message that the byteball bot understands. i dont know why.
i found out why it dit not work. if you sign a message with this wallet then the first line of signature is the address you sign with. you have to remove this line.
Glad that you got it working... so just to clarify, you had to update the ledger firmware and then install the new chrome wallet app and that allows you to choose and address to sign a message with? I'm a little confused about the issue you had tho... you're saying that the ledger wallet generates two signature lines? Can you provide a screenshot?


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Muhammed Zakir on June 30, 2017, 12:39:45 PM
  -snip-
i update the firmware of my ledger. then you have to restore...... but afterwards you can install the new BTC wallet and you can choose which address to use to sign a message.
unfortunately it does not work to sign a message that the byteball bot understands. i dont know why.
i found out why it dit not work. if you sign a message with this wallet then the first line of signature is the address you sign with. you have to remove this line.
Glad that you got it working... so just to clarify, you had to update the ledger firmware and then install the new chrome wallet app and that allows you to choose and address to sign a message with? I'm a little confused about the issue you had tho... you're saying that the ledger wallet generates two signature lines? Can you provide a screenshot?

When you sign messages, clients/software usually put your address above or along with signature. He probably copied whole text(address+signature) and entered in Byteball. Obviously, they will consider signature given as invalid. So he removed address, what he is referring to as "this line", and entered it again and it worked, as it should be!


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Coin-Keeper on June 30, 2017, 05:55:37 PM
Does anybody know how to sign a sign message with a specific BTC address using ledger wallet chrome app?
To me that is a critically important feature.  Wouldn't a user want to be POSITIVE that the intended address is the only one to receive coins?  Of course the answer is yes!
You're confusing transactions and messages. The OP is wanting to sign a message... mostly likely to prove ownership of the address for some reason (ICO payout maybe?).

i update the firmware of my ledger. then you have to restore...... but afterwards you can install the new BTC wallet and you can choose which address to use to sign a message.
unfortunately it does not work to sign a message that the byteball bot understands. i dont know why.
i found out why it dit not work. if you sign a message with this wallet then the first line of signature is the address you sign with. you have to remove this line.
Glad that you got it working... so just to clarify, you had to update the ledger firmware and then install the new chrome wallet app and that allows you to choose and address to sign a message with? I'm a little confused about the issue you had tho... you're saying that the ledger wallet generates two signature lines? Can you provide a screenshot?


Yep, I totally missed this thread question.  Airhead here, LOL!


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Sophokles on August 01, 2017, 09:58:50 AM
Updated the bitcoin client to 1.1.8 on Nano Ledger S and restarted the Chrome app.
Still cannot find the 'sign'-function. Little help?
Need this for the Stellar giveaway.
Thanks!


Title: Re: ledger wallet - sign message with specific BTC address
Post by: NABiT on August 01, 2017, 03:52:16 PM
Has anyone ever managed to sign a message on OS X from the Ledger Nano?

I contacted Ledger and they told me it’s only possible on the Nano S and Blue

Also wanting to sign for the Stellar airdrop but the posting date for current Ledger Nano S orders is September, too late, guess I’ll have to try a Trezor


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Sophokles on August 01, 2017, 04:33:22 PM
Has anyone ever managed to sign a message on OS X from the Ledger Nano?

I contacted Ledger and they told me it’s only possible on the Nano S and Blue

Also wanting to sign for the Stellar airdrop but the posting date for current Ledger Nano S orders is September, too late, guess I’ll have to try a Trezor

Hi,
a snapshot of the BTC blockchain was made on June 26, 2017 for the Stellar airdrop. You need the adresses and corresponding private keys from that date to claim your Stellar. So, sending to the coins to e. g. a Trezor now will not be of any help...


Title: Re: ledger wallet - sign message with specific BTC address
Post by: NABiT on August 01, 2017, 04:39:35 PM
Has anyone ever managed to sign a message on OS X from the Ledger Nano?

I contacted Ledger and they told me it’s only possible on the Nano S and Blue

Also wanting to sign for the Stellar airdrop but the posting date for current Ledger Nano S orders is September, too late, guess I’ll have to try a Trezor

Hi,
a snapshot of the BTC blockchain was made on June 26, 2017 for the Stellar airdrop. You need the adresses and corresponding private keys from that date to claim your Stellar. So, sending to the coins to e. g. a Trezor now will not be of any help...

Hi, thanks, I was thinking it should work if I restore to the Trezor which is compatible.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Sophokles on August 01, 2017, 04:56:42 PM
Has anyone ever managed to sign a message on OS X from the Ledger Nano?

I contacted Ledger and they told me it’s only possible on the Nano S and Blue

Also wanting to sign for the Stellar airdrop but the posting date for current Ledger Nano S orders is September, too late, guess I’ll have to try a Trezor

Hi,
a snapshot of the BTC blockchain was made on June 26, 2017 for the Stellar airdrop. You need the adresses and corresponding private keys from that date to claim your Stellar. So, sending to the coins to e. g. a Trezor now will not be of any help...

Hi, thanks, I was thinking it should work if I restore to the Trezor which is compatible.

Yes, that should work. Good idea! I even have a Trezor lying around here for testing purposes. Will give it try :-).


Title: Re: ledger wallet - sign message with specific BTC address
Post by: NABiT on August 01, 2017, 05:02:19 PM
Has anyone ever managed to sign a message on OS X from the Ledger Nano?

I contacted Ledger and they told me it’s only possible on the Nano S and Blue

Also wanting to sign for the Stellar airdrop but the posting date for current Ledger Nano S orders is September, too late, guess I’ll have to try a Trezor

Hi,
a snapshot of the BTC blockchain was made on June 26, 2017 for the Stellar airdrop. You need the adresses and corresponding private keys from that date to claim your Stellar. So, sending to the coins to e. g. a Trezor now will not be of any help...

Hi, thanks, I was thinking it should work if I restore to the Trezor which is compatible.

Yes, that should work. Good idea! I even have a Trezor lying around here for testing purposes. Will give it try :-).

Great, let me know how it goes.

Did you find the option to sign with the Ledger Nano S, isn’t it something like settings -> tools -> "Sign message" in the Chrome App?


Title: Re: ledger wallet - sign message with specific BTC address
Post by: HCP on August 01, 2017, 11:53:08 PM
Using Electrum with the Nano S should work OK... create a new wallet and select the "use a hardware device" option... That should create a "watching-only" wallet using the Master Public Key from the Nano S. You should theoretically be able to select the address you want to sign a message from and away you go.



However, for the "Nano" (non-S), it seems users get a "no module named websocket" error... :-\

https://bitcointalk.org/index.php?topic=1952904.0
https://www.reddit.com/r/ledgerwallet/comments/6ewqun/how_to_sign_a_message_btc_with_a_hw1_and_the/

Some users reported success with running it on Ubuntu and installing the websocket package manually... You might be able to so something similar on Windows if you run from sources after manually installing the websocket patch.

The only other alternative I can think of is to extract the private key from the ledger and sign the message "manually"... there are plenty of "offline" versions of webpages that allow you to do this... or you could import the private key to an Electrum wallet and do it that way.

Personally, I'd attempt to get it working via Electrum first, as that doesn't require you to export/expose your private key(s)


Title: Re: ledger wallet - sign message with specific BTC address
Post by: NABiT on August 02, 2017, 12:42:27 AM
Using Electrum with the Nano S should work OK... create a new wallet and select the "use a hardware device" option... That should create a "watching-only" wallet using the Master Public Key from the Nano S. You should theoretically be able to select the address you want to sign a message from and away you go.



However, for the "Nano" (non-S), it seems users get a "no module named websocket" error... :-\

https://bitcointalk.org/index.php?topic=1952904.0
https://www.reddit.com/r/ledgerwallet/comments/6ewqun/how_to_sign_a_message_btc_with_a_hw1_and_the/

Some users reported success with running it on Ubuntu and installing the websocket package manually... You might be able to so something similar on Windows if you run from sources after manually installing the websocket patch.

The only other alternative I can think of is to extract the private key from the ledger and sign the message "manually"... there are plenty of "offline" versions of webpages that allow you to do this... or you could import the private key to an Electrum wallet and do it that way.

Personally, I'd attempt to get it working via Electrum first, as that doesn't require you to export/expose your private key(s)

Thanks, Electrum has been suggested to me but I saw those posts and I couldn’t find anyone who had any success signing with it on the Nano (non-S) so as I was thinking about a new hardware wallet anyway and the Ledgers are not available until September I figured Trezor might be the easiest way to go.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: HCP on August 02, 2017, 10:32:15 PM
Be careful when copy/pasting stuff when signing messages. A stray " " (space) or "linefeed/carriage return" character at the end of the message can screw it all up. Make sure that your copied message from the Stellar Lumens site is like this (without quotes of course, just added them to make it obvious ;)):

"Stellar.org Bitcoin Giveaway Round 2: GBWY6GJLKSDJLKSDJWER2384320HKJH"

NOT

"Stellar.org Bitcoin Giveaway Round 2: GBWY6GJLKSDJLKSDJWER2384320HKJH "  <--- Extra space

or

"Stellar.org Bitcoin Giveaway Round 2: GBWY6GJLKSDJLKSDJWER2384320HKJH
" <--- Linefeed/carriage return

The same applies when you copy the signature back into the Stellar Lumens claim form... make sure you have ALL the characters (sometimes it will miss the "=" off the end if you try double clicking to select) and make sure that when you paste it into the form, that there isn't extra whitespace at the end.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Cart on August 12, 2017, 02:46:06 PM
Has anyone managed to successfully sign with the Ledger Nano S on MacOS? Since I keep getting "Failed to Sign Message: Invalid index offset" here..


Title: Re: ledger wallet - sign message with specific BTC address
Post by: Sophokles on August 18, 2017, 12:29:14 PM
What address? The btc address you are supposed to sign with? That should be one of your addresses. The point is to prove it's yours to claim the Lumen for it.
If it belongs to someone else... you can ask nicely to get your btc back...
But why would you send btc in the first place?



Title: Re: ledger wallet - sign message with specific BTC address
Post by: HCP on August 18, 2017, 01:27:42 PM
It won't be on any exchanges if it was in your ledger wallet... it'll be in your ledger wallet! :P

You probably just sent 0.01 to yourself... If that address is still in your list of addresses that you can sign with, and you can indeed sign a message with it... it means you have the private key.


Title: Re: ledger wallet - sign message with specific BTC address
Post by: HCP on August 18, 2017, 11:51:15 PM
Where did you send the transaction from? Was it from your ledger wallet or from another wallet? If you look up the address on a block explorer, are the funds there?