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:
’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Signature generated by brainwallet.org:
HAeEUZHzDgDOZSLakU0TahyaZX6Wb5ViMUJByFqOrVHPE1lNK8XTu3FPMYDAP7erqf7IuHECBKIB3h5ymVfKHjA=
brainwallet.org output:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL
bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:
2. ’ + 250 other chars:’XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Signature generated by brainwallet.org:
HBHMfRLvk0aMj4B9mAY5RRJcweTaYh1q/74/rh3nzv36ytjhgOGumBJwvi0KTv7XhzZdr+wQ05egf05dN3mo5O8=
brainwallet.org output:
Verified to: 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL
bitcoind "verify message" for 17mDAmveV5wBwxajBsY7g1trbMW1DVWcgL:
Message verification failed.
bitcoind "verify message" for 1Cza7rVEy928uJjC5p2oBZAKgTr2c2tFuy:
While ’ seems to be a very special character, it's a strange behaviour which I can't explain.