-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sparrow and Electrum produce different signatures #39
Comments
First off, that's strange - I am able to verify the Electrum sig using Sparrow. Can you try again? The longer answer is that, unfortunately, there is no universal standard for message signing for non-P2PKH (addresses that start with Sparrow tries to be standards compliant, and so follows the Trezor path (which is at least documented in a BIP: https://github.com/bitcoin/bips/blob/master/bip-0137.mediawiki) in terms of generating signatures. Sparrow will however validate signatures using the Electrum format as well. |
Just tried again: it appears that Sparrow can verify Electrum sig while Electrum can't for Sparrow sig. Thanks for the multiple details and links. Indeed, I tried a few online tools to verify Bitcoin signatures, and none of them give the same result (one accepts both sig, while another accepts only one out of 2, and others neither of them). Also, I'd suggest to display the hash of the message to be signed in Sparrow, as HW like Ledger display it on its screen, to allow the user to verify it directly on the device. We actually don't know if we sign the good message and not another one, as we cannot compare hashes. Thanks a lot again. |
Outstanding Action: Add note that electrum can't verify sparrow sigs? |
As of dbfed31 Sparrow now allows toggling between the Electrum and BIP137 signature formats: Signatures from messages signed with non-P2PKH addresses can now be verified in Electrum. Closing this off as resolved. |
Awesome work, thanks @craigraw! |
Hi!
I recently tried to sign a message from Sparrow, to prove my ownership of an address, but the signature got rejected on the website. So I tried with Electrum: I exported the wallet, opened it in Electrum, and signed the same message with the same address, and it resulted to a different signature, which has been accepted by the website.
For example, let's sign the message containing just the word
Test
with this address36TcRXxXDgwv5J78EL8QnTTyh5owFAXpb9
:They are different, and each one is considered as invalided when verified in the software that did not produced it.
The text was updated successfully, but these errors were encountered: