Title: Type Error: Incorrect padding when verifiying sign message Post by: shorena on February 01, 2016, 10:04:26 AM I tried to verify this
-----BEGIN BITCOIN SIGNED MESSAGE----- This is harizen from bitcointalk.org. Today is February 1,2016. -----BEGIN BITCOIN SIGNATURE----- 1BzFQocxr7QABTpwGz6o9Dsb6tPpBqbWZ8 HyEuQEIIi5KS0dqyCaIWh6a5A3wIMFqkSEehuNa7jOUZTSyLa08czuASi5RUcj78hPI5PMNec0w6Xhz flMbFNcM -----END BITCOIN SIGNATURE----- signed message with electrum 2.5.4. (extracted tar.gz) on debian linux and get the following message in terminal (nor error or other message in the GUI) Code: Traceback (most recent call last): Is this a wallet issue? Title: Re: Type Error: Incorrect padding when verifiying sign message Post by: Sharma on February 01, 2016, 10:07:18 AM isn't there something wrong with the signature? There seems to be a hidden character, if you copy/paste it in a basic texteditor you'll see an extra space ;)
Title: Re: Type Error: Incorrect padding when verifiying sign message Post by: shorena on February 01, 2016, 10:14:46 AM isn't there something wrong with the signature? There seems to be a hidden character, if you copy/paste it in a basic texteditor you'll see an extra space ;) Missed that indeed thanks, blocktrail verified it so I thought it wasnt about the signature.... removed it, but still get the same error. Other messages like the below verify just fine. Code: -----BEGIN BITCOIN SIGNED MESSAGE----- Title: Re: Type Error: Incorrect padding when verifiying sign message Post by: Sharma on February 01, 2016, 10:17:29 AM I'm running electrum 2.5.4 on windows 7, and i can verify that it's not working for me either (in my previous post, i only saw the hidden character, i didn't try to verify the message, after your last post i tried to verify it, and failed to)
Title: Re: Type Error: Incorrect padding when verifiying sign message Post by: nomnomnom on February 02, 2016, 08:14:29 AM with current electrum from github I get: Wrong signature
But if I add a = at the end of the signature I get: Signature verified. Maybe somehow the = got missing? Try adding it ::) Title: Re: Type Error: Incorrect padding when verifiying sign message Post by: shorena on February 02, 2016, 09:10:26 AM with current electrum from github I get: Wrong signature But if I add a = at the end of the signature I get: Signature verified. Maybe somehow the = got missing? Try adding it ::) Indeed Code: -----BEGIN BITCOIN SIGNED MESSAGE----- works, so its a blocktrail bug? Brainwallet copy (http://wallet-2sx53n.sakurity.com/#verify?vrAddr=1BzFQocxr7QABTpwGz6o9Dsb6tPpBqbWZ8&vrMsg=This%20is%20harizen%20from%20bitcointalk.org.%20Today%20is%20February%201%2C2016.&vrSig=HyEuQEIIi5KS0dqyCaIWh6a5A3wIMFqkSEehuNa7jOUZTSyLa08czuASi5RUcj78hPI5PMNec0w6XhzflMbFNcM=) does verify the message with "=" as well as without. https://chainquery.com/bitcoin-api/verifymessage reports a proper error without the "=" Code: { Core isnt happy either: Code: $ bitcoin-cli verifymessage "1BzFQocxr7QABTpwGz6o9Dsb6tPpBqbWZ8" "HyEuQEIIi5KS0dqyCaIWh6a5A3wIMFqkSEehuNa7jOUZTSyLa08czuASi5RUcj78hPI5PMNec0w6XhzflMbFNcM" "This is harizen from bitcointalk.org. Today is February 1,2016." So if anything its just that electrum has no GUI message for it and blocktrail somehow catches this or has an error somewhere. Thanks, I will let them know about this. |