Bitcoin Forum
November 16, 2024, 05:15:36 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Wrong signature on Electrum  (Read 369 times)
GarikHost (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 05, 2019, 08:02:05 PM
 #1

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct. How to resolve this issue?
The address is native segwit (starts with bc1).
Loganota
Hero Member
*****
Online Online

Activity: 1792
Merit: 884


View Profile
December 05, 2019, 08:39:51 PM
 #2

You need to provide more details, I have already signed and checked many messages using Electrum with Legacy and Segwit addresses. Is your sign generated normally? Have you tried to verify this message in another verifier?

Try putting your message / address / sign here so we can test as well.
BitMaxz
Legendary
*
Offline Offline

Activity: 3444
Merit: 3175


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
December 05, 2019, 09:10:08 PM
 #3

What version of Electrum you currently using?
I tried verifying the sign message in my Electrum 3.3.4 it's working fine without issue.

You might be using a fake Electrum so tell us if where did you download the Electrum installer(It should be downloaded from electrum.org)? and let us know if what OS you are using?

If you are using the orig Electrum try to use the latest version of Electrum and test it again.

███████████████
█████████████████████
██████▄▄███████████████
██████▐████▄▄████████████
██████▐██▀▀▀██▄▄█████████
████████▌█████▀██▄▄██████
██████████████████▌█████
█████████████▀▄██▀▀██████
██████▐██▄▄█▌███████████
██████▐████▀█████████████
██████▀▀███████████████
█████████████████████
███████████████

.... ..Playbet.io..Casino & Sportsbook.....Grab up to  BTC + 800 Free Spins........
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
tranthidung
Legendary
*
Offline Offline

Activity: 2464
Merit: 4279


Farewell o_e_l_e_o


View Profile WWW
December 06, 2019, 02:08:08 AM
 #4

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct.
I don't know what is your true issues because you did not describe yours in enough details.

One advice I can give you is:
When you sign a message, any minor difference in contents of your message (in characters, space, line break, ie.) will result in different signature (with a same bitcoin address). Among them, space is hard to discover, and people can unintentionally make space in their message.

In Electrum, you can see there are three sections (when signing a message):

1) Message
2) Address
3) Signature

As being said, the most common issue comes from the first section. You can try it (with a same address) with three following contents:
1.1. I am user A, userid = x, today is y, and I sign the message
1.2. I am user  A, userid = x, today is y, and I sign the message
1.3. I am user a, my userid = x, today is y, and I sign the message

Noticing the additional one more space in the 1.2. (user  A, instead of user A in 1.1). You will get different signatures and yeah when you verify it later, you might get failed results.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
nc50lc
Legendary
*
Offline Offline

Activity: 2604
Merit: 6416


Self-proclaimed Genius


View Profile
December 06, 2019, 03:01:36 AM
 #5

I just tried it using the latest version, sign then verify using Electrum and it worked just fine.

Did you mean "using the same address" not wallet?
Because if you tried to verify a messaged signed with a bech32/nested SegWit address to other clients, it will fail to verify.

█▀▀▀











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











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

Activity: 6
Merit: 0


View Profile
December 06, 2019, 01:23:34 PM
 #6

You need to provide more details, I have already signed and checked many messages using Electrum with Legacy and Segwit addresses. Is your sign generated normally? Have you tried to verify this message in another verifier?

Try putting your message / address / sign here so we can test as well.


Here are more details:
1. The message I try to sign: Claim_HEX_to_0x3A72cA4d32d272CC02832F4096a40C2c326DfFfb
2. the address I use: bc1q63tz9rvlnjxpz39nvueuu49t6m7cygfynj6krw
3. the signature I get: IFkS40AxIuRGDN/vnjwavfV6R00h3MKArtDB7tpBbnqIMc6WSGIQm/wm4lN7JVbY6jbeMf27x8VOqI6azgwz2Q==

When I push "Verify the message" it says "Wrong signature".

It works well with all other BTC addresses, but not with this one.
Also, it works well with other messages and with this address.

I use the latest version of Electrum 3.3.8 downloaded from https://electrum.org/

Thank you.
nc50lc
Legendary
*
Offline Offline

Activity: 2604
Merit: 6416


Self-proclaimed Genius


View Profile
December 06, 2019, 01:46:29 PM
 #7

Here are more details:
1. The message I try to sign: Claim_HEX_to_0x3A72cA4d32d272CC02832F4096a40C2c326DfFfb
2. the address I use: bc1q63tz9rvlnjxpz39nvueuu49t6m7cygfynj6krw
3. the signature I get: IFkS40AxIuRGDN/vnjwavfV6R00h3MKArtDB7tpBbnqIMc6WSGIQm/wm4lN7JVbY6jbeMf27x8VOqI6azgwz2Q==
"Wrong Signature" at my end, too. Probably bad copy->paste of the signature or message...

Anyways, you can just sign the same message again, it should give you the correct signature.
Electrum will provide the same signature when given the same message, if it's still the same, this must be a bug.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BrewMaster
Legendary
*
Offline Offline

Activity: 2128
Merit: 1293


There is trouble abrewing


View Profile
December 06, 2019, 02:23:50 PM
 #8

3. the signature I get: IFkS40AxIuRGDN/vnjwavfV6R00h3MKArtDB7tpBbnqIMc6WSGIQm/wm4lN7JVbY6jbeMf27x8VOqI6azgwz2Q==

your signature length is invalid, it should have been 65 bytes but what you posted here is only 64 bytes which means it is missing 1 byte.

this should not have happened, i can't see any bugs that could lead to this either. are you sure that you have not modified the signature yourself?

There is a FOMO brewing...
naska21
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 635


View Profile
December 06, 2019, 02:35:36 PM
 #9

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct. How to resolve this issue?
The address is native segwit (starts with bc1).


It might be a copy-paste issue.If you have created the message  by some text redactor like WORD and transfer in to Electrum via copy-paste then It might be messed with reserved character. Try to put you message into Electrum by using keyboard.
BrewMaster
Legendary
*
Offline Offline

Activity: 2128
Merit: 1293


There is trouble abrewing


View Profile
December 06, 2019, 02:48:22 PM
 #10

It might be a copy-paste issue.If you have created the message  by some text redactor like WORD and transfer in to Electrum via copy-paste then It might be messed with reserved character. Try to put you message into Electrum by using keyboard.

this can not be a copy paste error!
as i said above your comment, the only problem here is in his signature byte length is invalid. and since the signature string is in base64 it could not have happened by accident. since accidental modification of base64 will most probably lead to invalid encoding!

There is a FOMO brewing...
GarikHost (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 06, 2019, 04:33:54 PM
 #11

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct. How to resolve this issue?
The address is native segwit (starts with bc1).


It might be a copy-paste issue.If you have created the message  by some text redactor like WORD and transfer in to Electrum via copy-paste then It might be messed with reserved character. Try to put you message into Electrum by using keyboard.


Thank you for your advice.
I tried to put the message by using keyboard, but it didn't help.
The message is still the same and incorrect.
naska21
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 635


View Profile
December 06, 2019, 05:50:09 PM
 #12

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct. How to resolve this issue?
The address is native segwit (starts with bc1).


It might be a copy-paste issue.If you have created the message  by some text redactor like WORD and transfer in to Electrum via copy-paste then It might be messed with reserved character. Try to put you message into Electrum by using keyboard.


Thank you for your advice.
I tried to put the message by using keyboard, but it didn't help.
The message is still the same and incorrect.

There is still no common standard to sign from bc1 address... so might be some strange combination of characters that mislead Electrum's signer... could you sign if   HEX string in your message would be removed? 
Loganota
Hero Member
*****
Online Online

Activity: 1792
Merit: 884


View Profile
December 06, 2019, 06:35:20 PM
 #13

There is still no common standard to sign from bc1 address... so might be some strange combination of characters that mislead Electrum's signer... could you sign if   HEX string in your message would be removed? 

There's no problem with message. I signed the same message using my address and everything went well.

-----BEGIN BITCOIN SIGNED MESSAGE-----
Claim_HEX_to_0x3A72cA4d32d272CC02832F4096a40C2c326DfFfb
-----BEGIN SIGNATURE-----
bc1q9yfe07gfytzf200qqg6cm3wkugdmts6tj4myhc
HzeFm8xePVWoN59+HinI04kEzUQONqwWaWMpzzMWkhi7DNhIUkVjSCj5soGp6DkUEVxo8uslcm03kRUKpXV+W3I=
-----END BITCOIN SIGNED MESSAGE-----

Thank you for your advice.
I tried to put the message by using keyboard, but it didn't help.
The message is still the same and incorrect.

As soon as you generate the signature, Electrum allows you to click the verify signature button. Do you still get the "wrong signature" message?

GarikHost (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 06, 2019, 06:42:49 PM
 #14

There is still no common standard to sign from bc1 address... so might be some strange combination of characters that mislead Electrum's signer... could you sign if   HEX string in your message would be removed? 

There's no problem with message. I signed the same message using my address and everything went well.

-----BEGIN BITCOIN SIGNED MESSAGE-----
Claim_HEX_to_0x3A72cA4d32d272CC02832F4096a40C2c326DfFfb
-----BEGIN SIGNATURE-----
bc1q9yfe07gfytzf200qqg6cm3wkugdmts6tj4myhc
HzeFm8xePVWoN59+HinI04kEzUQONqwWaWMpzzMWkhi7DNhIUkVjSCj5soGp6DkUEVxo8uslcm03kRUKpXV+W3I=
-----END BITCOIN SIGNED MESSAGE-----

Thank you for your advice.
I tried to put the message by using keyboard, but it didn't help.
The message is still the same and incorrect.

As soon as you generate the signature, Electrum allows you to click the verify signature button. Do you still get the "wrong signature" message?

Yes, exactly, it is the case. As soon as I generate the signature, and push "verify" it says "wrong signature"


GarikHost (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 06, 2019, 07:03:07 PM
 #15

When I sign the message with one of my BTC addresses on Electrum and then verify it on the same wallet it says "wrong signature". The same message signed with other BTC addresses is correct. How to resolve this issue?
The address is native segwit (starts with bc1).


It might be a copy-paste issue.If you have created the message  by some text redactor like WORD and transfer in to Electrum via copy-paste then It might be messed with reserved character. Try to put you message into Electrum by using keyboard.


Thank you for your advice.
I tried to put the message by using keyboard, but it didn't help.
The message is still the same and incorrect.

There is still no common standard to sign from bc1 address... so might be some strange combination of characters that mislead Electrum's signer... could you sign if   HEX string in your message would be removed? 

If I remove or change any symbol in the message it gets signed correctly with no problem. But the original message still has an issue.
TryNinja
Legendary
*
Offline Offline

Activity: 3024
Merit: 7443


Top Crypto Casino


View Profile WWW
December 06, 2019, 08:29:30 PM
 #16

Ok, you can’t verify it on Electrum. But does the message appear as valid when you use it in whatever you are trying to sign it for? (The bounty/bot that gives you the claimed coins, which is what you are trying to do?)

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
GarikHost (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 06, 2019, 08:36:26 PM
 #17

Ok, you can’t verify it on Electrum. But does the message appear as valid when you use it in whatever you are trying to sign it for? (The bounty/bot that gives you the claimed coins, which is what you are trying to do?)

No, it doesn't accept it and says "A valid Bitcoin signature is required!".
But it worked very well with other 2 addresses.
Only this one has such problem.
Loganota
Hero Member
*****
Online Online

Activity: 1792
Merit: 884


View Profile
December 06, 2019, 08:36:43 PM
Last edit: December 06, 2019, 10:26:32 PM by Loganota
 #18

Ok, you can’t verify it on Electrum. But does the message appear as valid when you use it in whatever you are trying to sign it for? (The bounty/bot that gives you the claimed coins, which is what you are trying to do?)

I tried checking on http://brainwalletx.github.io and it also went wrong.  I think it's an error in signing process.
BitMaxz
Legendary
*
Offline Offline

Activity: 3444
Merit: 3175


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
December 06, 2019, 08:38:52 PM
Last edit: December 06, 2019, 08:59:56 PM by BitMaxz
Merited by Abdussamad (2)
 #19


If I remove or change any symbol in the message it gets signed correctly with no problem. But the original message still has an issue.

Can you tell us what version of the electrum you currently use?
This is an old issue of old electrum version lower than 3.3.4 if you can use the latest version of Electrum I tried the message you are trying to sign and verify.
It's all fine to me so maybe you are using old version of Electrum that is why you are having an issue with verifying a signed message.

███████████████
█████████████████████
██████▄▄███████████████
██████▐████▄▄████████████
██████▐██▀▀▀██▄▄█████████
████████▌█████▀██▄▄██████
██████████████████▌█████
█████████████▀▄██▀▀██████
██████▐██▄▄█▌███████████
██████▐████▀█████████████
██████▀▀███████████████
█████████████████████
███████████████

.... ..Playbet.io..Casino & Sportsbook.....Grab up to  BTC + 800 Free Spins........
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
TryNinja
Legendary
*
Offline Offline

Activity: 3024
Merit: 7443


Top Crypto Casino


View Profile WWW
December 06, 2019, 10:18:35 PM
 #20

Probably not the best solution by try signing it with Coinb.in[1]. Optionally run it offline (highly recommended) and in the "Sign" tab, get the address' private key and use it to sign the message. Then verify it with Electrum or BrainWallet.

I'm not sure if it supports bech32 addresses (bc1...) tho.

[1] https://github.com/OutCast3k/coinbin

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1] 2 »  All
  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!