Bitcoin Forum
December 14, 2024, 06:53:21 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cannot verify signed message from Trezor with Electrum.  (Read 243 times)
TheBeardedBaby (OP)
Legendary
*
Offline Offline

Activity: 2254
Merit: 3150


₿uy / $ell ..oeleo ;(


View Profile
February 08, 2019, 11:02:01 AM
Merited by bones261 (4)
 #1

Hello,

I ran into this issue yesterday when I try to verified a singed message from Trezor (P2SH) address.

I signed a new message from a new address with Trezor and tried again.
I have a standard Electrum wallet, do I need to create a P2SH SegWit wallet to be able to verify signatures from P2SH addresses?


Code:
---BEGIN MESSAGE---
Test message
---BEGIN ADDRESS---
3Nxe7AjWBZFoctcQLrnfYeRL9XQChpv3kB
---BEGIN SIGNATURE---
JEuiD5vTQs7Br7wzyEPQ+POH5/3tCyFCmKkP2vGB5QVBIP4v/Gd3gvmohL+m6ZinnQzVbNssZtRFiZQ6UTdd2vE=
---END MESSAGE---




pooya87
Legendary
*
Offline Offline

Activity: 3668
Merit: 11107


Crypto Swap Exchange


View Profile
February 09, 2019, 05:17:39 AM
Merited by bones261 (3)
 #2

the problem is that signature verification in elliptic curve cryptography is not done with the "address"! it is done with the public key. so what happens under the hood is that when you give Electrum your signature to verify, it recovers your public key but then it doesn't know what to do with that public key since your address starts with a "3".
i think you need to open up a new issue on Electrum repository, since your first byte here is an unusual "36" that has to be an indication that this address starting with a 3 is a SegWit address so that it lets your wallet know what to do with that public key it just recovered.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2380
Merit: 4691


Join the world-leading crypto sportsbook NOW!


View Profile WWW
February 10, 2019, 07:26:54 PM
Merited by bones261 (3)
 #3

Code:
---BEGIN MESSAGE---
Test message
---BEGIN ADDRESS---
3Nxe7AjWBZFoctcQLrnfYeRL9XQChpv3kB
---BEGIN SIGNATURE---
JEuiD5vTQs7Br7wzyEPQ+POH5/3tCyFCmKkP2vGB5QVBIP4v/Gd3gvmohL+m6ZinnQzVbNssZtRFiZQ6UTdd2vE=
---END MESSAGE---

This is very interesting.  I have my Trezor wallet's master public key in a watch-only Electrum wallet, and I just tried to very the message with that, but it also failed. 

I imagine the bitcoin development team has bigger fish to fry, but it would be nice to have signatures and verification standardized.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
TheBeardedBaby (OP)
Legendary
*
Offline Offline

Activity: 2254
Merit: 3150


₿uy / $ell ..oeleo ;(


View Profile
February 10, 2019, 07:47:40 PM
 #4

Code:
---BEGIN MESSAGE---
Test message
---BEGIN ADDRESS---
3Nxe7AjWBZFoctcQLrnfYeRL9XQChpv3kB
---BEGIN SIGNATURE---
JEuiD5vTQs7Br7wzyEPQ+POH5/3tCyFCmKkP2vGB5QVBIP4v/Gd3gvmohL+m6ZinnQzVbNssZtRFiZQ6UTdd2vE=
---END MESSAGE---

This is very interesting.  I have my Trezor wallet's master public key in a watch-only Electrum wallet, and I just tried to very the message with that, but it also failed.  

I imagine the bitcoin development team has bigger fish to fry, but it would be nice to have signatures and verification standardized.

As I wrote in the OP, I think you need to manually tweak Electrum (see the link I provided), and creating a p2sh segwit wallet to be able to verify messages from p2sh addresses.

Basically, the only way to verify p2sh addy messages is Trezor.

TheBeardedBaby (OP)
Legendary
*
Offline Offline

Activity: 2254
Merit: 3150


₿uy / $ell ..oeleo ;(


View Profile
February 26, 2019, 07:46:58 PM
 #5

~

Basically, the only way to verify p2sh addy messages is Trezor.

An update. Thanks to MaoChao, I found a variation of brainwallet which can verify p2sh messages :

https://jhoenicke.github.io/brainwallet.github.io/#verify




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!