Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: calkob on November 18, 2019, 08:35:52 PM



Title: Signing a message from a segwit address
Post by: calkob on November 18, 2019, 08:35:52 PM
 i am trying to sign a message with a segwit address but when i do it says it is for a legacy address (beginning with  1)  Is this normal? i'm using Samouri wallet.


Title: Re: Signing a message from a segwit address
Post by: Rath_ on November 18, 2019, 08:55:16 PM
i am trying to sign a message with a segwit address but when i do it says it is for a legacy address (beginning with  1)  Is this normal? i'm using Samouri wallet.

Yes, there is no standard for signing messages with SegWit addresses at the moment. Trezor and Electrum allow their users to sign messages using SegWit addresses, but such messages can be verified only by their software.


Title: Re: Signing a message from a segwit address
Post by: calkob on November 18, 2019, 09:01:13 PM
i am trying to sign a message with a segwit address but when i do it says it is for a legacy address (beginning with  1)  Is this normal? i'm using Samouri wallet.

Yes, there is no standard for signing messages with SegWit addresses at the moment. Trezor and Electrum allow their users to sign messages using SegWit addresses, but such messages can be verified only by their software.

So is the Segwit address being converted in some way to a Legacy address?

Thanks


Title: Re: Signing a message from a segwit address
Post by: bob123 on November 18, 2019, 09:08:45 PM
You can sign messages using segwit addresses.
But as BitCryptex mentioned, there is no defined standard yet. There is no consens yet on how exactly to sign/verify them.

This means messages signed with software X most probably can only be verified using software X.


Title: Re: Signing a message from a segwit address
Post by: Rath_ on November 18, 2019, 09:11:46 PM
So is the Segwit address being converted in some way to a Legacy address?

No, every software has a different take on it. Here is (https://github.com/bitcoin/bitcoin/issues/10542#issuecomment-316032523) how Trezor has done it and here is (https://github.com/spesmilo/electrum/issues/3861) a more detailed discussion on Electrum's GitHub (including the code which was implemented).


Title: Re: Signing a message from a segwit address
Post by: BitMaxz on November 18, 2019, 09:23:40 PM
No converter yet from segwit address to legacy.
Much better use Electrum as suggested above just export the private key from samourai wallet then imports it to Electrum.

Check this guide below to extract your private keys from samourai wallet.
- https://support.samourai.io/article/46-reveal-all-individual-private-keys-in-the-wallet

Then you can make a sign message under Electrum.