Post
Topic
Board Beginners & Help
Re: [Merit] Hey Newbies! Can You Sign A Message?
by
pooya87
on 09/10/2020, 08:17:48 UTC
It didn't verify because SegWit (bech32 is native SegWit) has no standard for signing messages yet:
keep in mind that some signature verifying tools don't modify the message and when you use new-line in your message it sometimes is \r\n (eg. on Windows) hence the hash is wrong and the signature fails to verify. most tools (like Electrum) do modify it and if you have a new-line (among other things) they will replace it with something else (replace with \n, remove trailing spaces,...).

Quote
But for better compatibility it's always recommended to sign from legacy addresses (1....).
you shouldn't avoid using something that was added ~4 years ago just because some outdated tools don't support it. you should instead avoid using those tools.