Bitcoin Forum
May 21, 2024, 12:52:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electum error signing a message  (Read 119 times)
donilito (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 23, 2023, 09:14:16 AM
Last edit: April 24, 2023, 08:23:30 AM by donilito
 #1

Hi, I have a problem signing a message with ledger on electrum. I open the electrum app with my ledger open, choose the standard wallet, then the hardware device option, I get to choose my device and then the legacy address as it is the one I have. I create a receive request and then try to sign a message but I get the following error: "invalid literal for int() with base 10: '44h' " . https://i.ibb.co/SwW7sNN/sc1.png


EDIT: Managed to get it done. Once I choose the type of address I wanted, in my case legacy, I changed the bottom parameters from m/44h/0h/0h to m/44/0/0 and it worked fine.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3486
Merit: 6144



View Profile
April 23, 2023, 09:33:22 AM
 #2

Did you export -> manually change -> and import your requests by any chance? There was a similar problem reported not a long time ago: https://github.com/spesmilo/electrum/issues/8232

Are you getting that message when creating a receive request, or when clicking the "Sign message" button? I don't see how you would get it in the latter, since you're not limited to certain characters when signing a message.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
donilito (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 23, 2023, 09:36:04 AM
 #3

I get the message once I click on "sign". I didn't change any parameters as I'm not even sure what they are. I can provide you with my teamviewer ID if it can help to resolve this issue faster.
BitMaxz
Legendary
*
Offline Offline

Activity: 3262
Merit: 2974


Block halving is coming.


View Profile WWW
April 23, 2023, 10:39:46 AM
 #4

There is a crash report about this error here below

- https://github.com/spesmilo/electrum/issues/8232

It seems this error not only trigger on signing a message.

Have you selected the check button when confirming the sign message?
If you did then it might be a bug.

You don't have any other choice but to make a signed message through the ledger live as optional.

You can follow this guide How to Sign Message With Ledger Live

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Charles-Tim
Legendary
*
Offline Offline

Activity: 1554
Merit: 4907



View Profile
April 23, 2023, 10:43:05 AM
Merited by hugeblack (4)
 #5

You don't have any other choice but to make a signed message through the ledger live as optional.
For ease, I think no other choice. But for people that can use airgapped device, there is other choice:

If there is urgent need to sign a message with that address and you have done the above and still not able to sign message, follow what BitMaxz posted, or follow this:

If possible you can make yourself an airgapped device by reinstalling your device OS. Import Electrum on it.
Also import offline version of iancoleman: https://github.com/iancoleman/bip39/releases/download/0.5.4/bip39-standalone.html
You will need a text editor for the iancoleman offline version link that I paste above.
Use the text editor to open the offline iancoleman on the airgapped device
Input the seed phrase to get the private key of the bitcoin address that you want to use to sign a message
Open electrum on the airgapped device and import the private key
Then sign the message and it would work.

After you are done, reinstalled the OS of the airgapped device to make everything you have done to be deleted.

donilito (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 23, 2023, 11:20:43 AM
 #6

When I go to account and then settings in my ledger live, I only get these options: Export operation history, Export to mobile and Hide empty token accounts. Can't seem to find the Tools tab there or anywhere else...

As far as Electrum goes, I never got to the part where I confirm the sign on the ledger device as I get the error before that.
nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5614


Self-proclaimed Genius


View Profile
April 25, 2023, 04:37:35 AM
 #7

-snip- but I get the following error:


EDIT: Managed to get it done. Once I choose the type of address I wanted, in my case legacy, I changed the bottom parameters from m/44h/0h/0h to m/44/0/0 and it worked fine.
Seems like the issue was the new hardened derivation path scheme which uses "h" instead of " ' ".

Your solution is kind of insecure since you've used non-hardened derivation paths for the "purpose", "coin" and "account" level which should be hardened by the standards.
If you're planning to use the wallet where you'll create a signed message, use this derivation path instead: m/44'/0'/0'

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ghost43
Newbie
*
Offline Offline

Activity: 20
Merit: 35


View Profile
April 27, 2023, 05:49:04 PM
Merited by hugeblack (4), LoyceV (1), dkbit98 (1)
 #8

This is a regression in 4.4.0 (and 4.4.1). Fixed now on master.
Please report similar bugs on github.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!