Bitcoin Forum
May 03, 2024, 09:28:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Wrong signature on Electrum  (Read 311 times)
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
December 06, 2019, 11:26:35 PM
 #21

note there is no standard for signing messages with bc1 addresses so if you use electrum to generate the signature the challenger also has to use electrum to verify it.



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.


Yes this is probably it: https://github.com/spesmilo/electrum/pull/5210
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
1714771685
Hero Member
*
Offline Offline

Posts: 1714771685

View Profile Personal Message (Offline)

Ignore
1714771685
Reply with quote  #2

1714771685
Report to moderator
BrewMaster
Legendary
*
Offline Offline

Activity: 2114
Merit: 1292


There is trouble abrewing


View Profile
December 07, 2019, 04:06:09 AM
Merited by Lucius (1)
 #22

why don't people read what was said in other comments before replying Cheesy

the ONLY problem here is the encoding of the signature that when it generates r and s, r is 32 bytes, s is 31 bytes. it doesn't pad s so it ends up with a 64 (1+32+31) byte signature instead of 65 (1+32+(1+31)).

if you change that, the signature becomes valid. try the following and see for yourself:
Code:
IFkS40AxIuRGDN/vnjwavfV6R00h3MKArtDB7tpBbnqIADHOlkhiEJv8JuJTeyVW2Oo23jH9u8fFTqiOms4MM9k=

this is NOT a problem with Electrum, at least not the new versions. i DID test it with my own key and brute forced a signature with a smaller r or s and it DID generate the right signature encoding.

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...
Lucius
Legendary
*
Offline Offline

Activity: 3234
Merit: 5635


Blackjack.fun-Free Raffle-Join&Win $50🎲


View Profile WWW
December 07, 2019, 12:00:59 PM
Merited by BitMaxz (1)
 #23

What version of Electrum you currently using?

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

Can you tell us what version of the electrum you currently use?

Can you tell us why are you repeating the same question on which you already got the answer? The OP clearly states that he is using the latest version of the Electrum downloaded from the official website. The problem, in this case, is not the fake version or version 3.3.4.

BrewMaster has obviously found the problem, maybe it just needs to be explained more simply to OP so he can change what need to be changed.


.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
naska21
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 635


View Profile
December 08, 2019, 08:04:03 AM
 #24

why don't people read what was said in other comments before replying Cheesy

the ONLY problem here is the encoding of the signature that when it generates r and s, r is 32 bytes, s is 31 bytes. it doesn't pad s so it ends up with a 64 (1+32+31) byte signature instead of 65 (1+32+(1+31)).

if you change that, the signature becomes valid. try the following and see for yourself:
Code:
IFkS40AxIuRGDN/vnjwavfV6R00h3MKArtDB7tpBbnqIADHOlkhiEJv8JuJTeyVW2Oo23jH9u8fFTqiOms4MM9k=

this is NOT a problem with Electrum, at least not the new versions. i DID test it with my own key and brute forced a signature with a smaller r or s and it DID generate the right signature encoding.

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?

Right, in fact I have said the same

.. might be some strange combination of characters that mislead Electrum's signer.  

but you are more specific and precise.
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!