Bitcoin Forum
May 07, 2024, 12:50:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [bitcoind] [brainwallet.org] Verify message, different results for same message  (Read 2235 times)
dexX7 (OP)
Legendary
*
Offline Offline

Activity: 1106
Merit: 1024



View Profile WWW
October 11, 2013, 03:54:13 AM
 #1

A user in #bitcoin-assets mentioned that the message and signature he generated resolves to another address on brainwallet.org as it was intended to. I tried to pin down the problem and this is what I found out:

A message with the very special char ’ + more than 249 other (normal) chars resolves to different Bitcoin addresses when bitcoind and brainwallet.org is used.

1. ’ + 249 other chars:

Message:

Code:
’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Signature generated by brainwallet.org:

Code:
HAeEUZHzDgDOZSLakU0TahyaZX6Wb5ViMUJByFqOrVHPE1lNK8XTu3FPMYDAP7erqf7IuHECBKIB3h5ymVfKHjA=

brainwallet.org output:

Code:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL

bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:

Code:
Message verfied.

2. ’ + 250 other chars:

Code:
’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Signature generated by brainwallet.org:

Code:
HBHMfRLvk0aMj4B9mAY5RRJcweTaYh1q/74/rh3nzv36ytjhgOGumBJwvi0KTv7XhzZdr+wQ05egf05dN3mo5O8=

brainwallet.org output:

Code:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL

bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:

Code:
Message verification failed.

bitcoind "verify message" for 1Cza7rVEy928uJjC5p2oBZAKgTr2c2tFuy:

Code:
Message verified.


While ’ seems to be a very special character, it's a strange behaviour which I can't explain.

"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715043031
Hero Member
*
Offline Offline

Posts: 1715043031

View Profile Personal Message (Offline)

Ignore
1715043031
Reply with quote  #2

1715043031
Report to moderator
1715043031
Hero Member
*
Offline Offline

Posts: 1715043031

View Profile Personal Message (Offline)

Ignore
1715043031
Reply with quote  #2

1715043031
Report to moderator
1715043031
Hero Member
*
Offline Offline

Posts: 1715043031

View Profile Personal Message (Offline)

Ignore
1715043031
Reply with quote  #2

1715043031
Report to moderator
fpgaminer
Hero Member
*****
Offline Offline

Activity: 560
Merit: 517



View Profile WWW
October 11, 2013, 06:15:03 AM
 #2

Brainwallet.org is borked.  I commented on other issues with signing in this thread.  Your issue is probably related.

Atruk
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
October 11, 2013, 07:26:24 AM
 #3

A user in #bitcoin-assets mentioned that the message and signature he generated resolves to another address on brainwallet.org as it was intended to. I tried to pin down the problem and this is what I found out:

A message with the very special char ’ + more than 249 other (normal) chars resolves to different Bitcoin addresses when bitcoind and brainwallet.org is used.

1. ’ + 249 other chars:

Message:

Code:
’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Signature generated by brainwallet.org:

Code:
HAeEUZHzDgDOZSLakU0TahyaZX6Wb5ViMUJByFqOrVHPE1lNK8XTu3FPMYDAP7erqf7IuHECBKIB3h5ymVfKHjA=

brainwallet.org output:

Code:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL

bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:

Code:
Message verfied.

2. ’ + 250 other chars:

Code:
’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Signature generated by brainwallet.org:

Code:
HBHMfRLvk0aMj4B9mAY5RRJcweTaYh1q/74/rh3nzv36ytjhgOGumBJwvi0KTv7XhzZdr+wQ05egf05dN3mo5O8=

brainwallet.org output:

Code:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL

bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:

Code:
Message verification failed.

bitcoind "verify message" for 1Cza7rVEy928uJjC5p2oBZAKgTr2c2tFuy:

Code:
Message verified.


While ’ seems to be a very special character, it's a strange behaviour which I can't explain.

I'm investigating this behavior I reported earlier further. I'm doing further investigation which I probably lack the technical expertise to do right. I'm also digging through more forum threads et al.

I am still considering the bitcoin address 1LvCuntsJyFFQsLuJhBXBPokbQa7SAyMr4 invalid for message signing purposes into the future. This is bitcoin and not taking the measure of refuting the address's right to sign messages on my behalf would be the wrong step. Handling Bitcoin properly necessitates some measure of paranoia.

It looks like the little endian big endian issues mentioned here might be at play.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
October 11, 2013, 11:42:35 PM
 #4

I'm investigating this behavior I reported earlier further. I'm doing further investigation which I probably lack the technical expertise to do right. I'm also digging through more forum threads et al.

I am still considering the bitcoin address 1LvCuntsJyFFQsLuJhBXBPokbQa7SAyMr4 invalid for message signing purposes into the future. This is bitcoin and not taking the measure of refuting the address's right to sign messages on my behalf would be the wrong step. Handling Bitcoin properly necessitates some measure of paranoia.

It looks like the little endian big endian issues mentioned here might be at play.
LOL. The address has nothing to do with anything. You're allowing yourself to get worked up about minor bugs in software you don't understand. Please try to relax.
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!