Bitcoin Forum
November 06, 2024, 10:18:45 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: About possibility to Sign messages in Segwit address in future  (Read 950 times)
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
February 05, 2018, 12:20:33 PM
 #1

Hello,

I am new to this community.

I just learned that Segwit addresses cannot be signed because there is no standard to validate it.

is this function going to be implemented in the future in segwit address?

I was considering moving my funds to a Legacy wallet to have this function. I am a hodler, transaction fees do not matter to me, I won't be sending funds anywhere.

cellard
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
February 05, 2018, 12:56:43 PM
 #2

Hello,

I am new to this community.

I just learned that Segwit addresses cannot be signed because there is no standard to validate it.

is this function going to be implemented in the future in segwit address?

I was considering moving my funds to a Legacy wallet to have this function. I am a hodler, transaction fees do not matter to me, I won't be sending funds anywhere.

You don't need to move your funds into a segwit address if you are a holder. Im a hodler myself and I can't be bothered to move all my coins to a new segwit wallet, I would need to generate a ton of addresses too and pay a ton of fees too for all of these transactions, im not looking forward to that.

I didn't know you couldn't use segwit adresses to sign messages. This could be a problem for new people in this forum, if they start using segwit addresses from day 1 and never post a legacy address to prove their identity, they could never be able to recover their forum account, at least until you can use segwit addresses to sign and validate messages.
jtipt
Hero Member
*****
Offline Offline

Activity: 1050
Merit: 529



View Profile
February 05, 2018, 01:01:18 PM
Merited by mprep (1), AGD (1)
 #3

OP which wallet are you using? Because electrum can very well sign and verify messages signed from bech32 addresses. I think some of the other segwit wallets like samurai don't have a feature to sign message yet. I'm assuming since electrum can sign message then bitcoin core 0.16 also should be able to do that when its released.

Just signed one with electrum.
Code:
Message: Signed message
Address: bc1qyjqygpulgd6y69ync6wvd256qjltszekd2pz0x
Signature: HwNkc1x7GtforrqObazbOOure4XV5Jpx51Uf/dQ7hLQNEhkO+914HqUupdYJd3LH0eBtfENXBWRj3mb+HbQOoDw= 
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
February 05, 2018, 01:19:24 PM
 #4

I am using ledger nano wallet.

I was trying to sign a message to Byteballs, and they said it Segwit address cannot sign messages.

I searched for information about this in Ledger Nano community in Reddit, and they confirmed it. You can sign, but no one would be able to verify it.
https://www.reddit.com/r/ledgerwallet/comments/7o1jo3/how_can_you_sign_a_message_on_ledgers_bitcoin_app/

I always used Legacy, just moved my funds to a Segwit and discovered this...

Fees are really low on Segwit, it would cost me 2 usd to transfer, i was pretty satisfied with it.

nullius
Copper Member
Hero Member
*****
Offline Offline

Activity: 630
Merit: 2614


If you don’t do PGP, you don’t do crypto!


View Profile WWW
February 05, 2018, 01:24:34 PM
Merited by chaser15 (5), bitmover (3), achow101 (2), mprep (1), xandry (1), ABCbits (1), fronti (1), AGD (1), butka (1)
 #5

Known issue.  There are some subtle problems here.  I’ve wanted to kick around ideas for a potential BIP, but it’s been fairly low on my list.

https://github.com/bitcoin/bitcoin/issues/10542

https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-December/015374.html

https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-December/thread.html#15374

See especially:
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-December/015441.html

(I seem to recall further discussion last month, but I can’t find it now.  It may be a memory bitflip.)


OP which wallet are you using? Because electrum can very well sign and verify messages signed from bech32 addresses. I think some of the other segwit wallets like samurai don't have a feature to sign message yet. I'm assuming since electrum can sign message then bitcoin core 0.16 also should be able to do that when its released.

Just signed one with electrum.
Code:
Message: Signed message
Address: bc1qyjqygpulgd6y69ync6wvd256qjltszekd2pz0x
Signature: HwNkc1x7GtforrqObazbOOure4XV5Jpx51Uf/dQ7hLQNEhkO+914HqUupdYJd3LH0eBtfENXBWRj3mb+HbQOoDw=  

I know this, too.  I have not yet tried to figure out what Electrum is doing; but it’s nonstandard.  Core cannot verify those signatures (as I know for certain), and AFAIK that will not change with v0.16.

bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
February 05, 2018, 04:33:49 PM
 #6

Known issue.  There are some subtle problems here.  I’ve wanted to kick around ideas for a potential BIP, but it’s been fairly low on my list.


My doubt, regarding signing in segwit address is if this is a "bug" and will soon be corrected, or is it an abandoned feature?

If the later is the case, i will probably move back to legacy addresses... I fear to lose airdrops, which may be quite significant.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
February 05, 2018, 04:38:12 PM
Merited by bitmover (3), Foxpup (1), HeRetiK (1), ABCbits (1), jtipt (1)
 #7

My doubt, regarding signing in segwit address is if this is a "bug" and will soon be corrected, or is it an abandoned feature?
It is neither a bug nor an abandoned feature. It is just that we are still working on creating a more generalized signing scheme that lets people sign with things like P2SH addresses (e.g. sign with a multisig address). There is simply no standard yet for signing with such scripts or with Segwit.

Note that you don't actually sign with an address. You sign with a public-private keypair and your wallet interprets it as an address. Your wallet could just as easily interpret it as a segwit address. We are working on creating something that actually specifies the address type, and more generally, allows signing with scripts.

RGBKey
Hero Member
*****
Offline Offline

Activity: 854
Merit: 658


rgbkey.github.io/pgp.txt


View Profile WWW
February 05, 2018, 04:38:39 PM
 #8

Known issue.  There are some subtle problems here.  I’ve wanted to kick around ideas for a potential BIP, but it’s been fairly low on my list.


My doubt, regarding signing in segwit address is if this is a "bug" and will soon be corrected, or is it an abandoned feature?

If the later is the case, i will probably move back to legacy addresses... I fear to lose airdrops, which may be quite significant.

I think there will eventually be a standard way to sign and verify messages with segwit addresses. But currently, almost nobody will be able to (easily) verify a segwit address signed message.

My doubt, regarding signing in segwit address is if this is a "bug" and will soon be corrected, or is it an abandoned feature?
It is neither a bug nor an abandoned feature. It is just that we are still working on creating a more generalized signing scheme that lets people sign with things like P2SH addresses (e.g. sign with a multisig address).

A signing standard that allows signed messages from multisig addresses would be incredible, I hope progress is made on this eventually.
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
February 05, 2018, 05:03:41 PM
 #9

Thank you for answers. I will be waiting for a solution then and stick to my segwit address.

pugman
Legendary
*
Offline Offline

Activity: 2383
Merit: 1551


dogs are cute.


View Profile WWW
February 09, 2018, 07:53:10 AM
 #10

I tried signing a message using ledger nano S, for my segwit address but the output that was generated was totally different including the address. I wanted to sign a message for segwit but I got a signed message for a random legacy address. Thoughts?

bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
February 09, 2018, 07:47:32 PM
Merited by pugman (1)
 #11

I tried signing a message using ledger nano S, for my segwit address but the output that was generated was totally different including the address. I wanted to sign a message for segwit but I got a signed message for a random legacy address. Thoughts?

I searched about this in Ledger Nano subreddit. They said that you when you sign a message with your Segwit wallet, your message will be sign by the legacy address... just as you said.

TheBeardedBaby
Legendary
*
Offline Offline

Activity: 2240
Merit: 3150


₿uy / $ell ..oeleo ;(


View Profile
April 06, 2018, 02:29:50 PM
 #12

Yesterday I added my signed message to the Tomatocage's thread for stacking bitcoin addresses, but then I realize that I cannot verify it online, only in my wallet, and deleted my post. No point to post it if it cannot be verified online.
So thankfully found this thread and I know why. Almost no info in Google tho.
Seems that the SegWit addresses cannot be used to sing messages at the moment, even if you have this feature in the wallet.
I guess I have to create a normal address only to verify my account here.

Stedsm
Legendary
*
Offline Offline

Activity: 3052
Merit: 1273



View Profile
April 06, 2018, 02:41:30 PM
 #13

Yesterday I added my signed message to the Tomatocage's thread for stacking bitcoin addresses, but then I realize that I cannot verify it online, only in my wallet, and deleted my post. No point to post it if it cannot be verified online.
So thankfully found this thread and I know why. Almost no info in Google tho.
Seems that the SegWit addresses cannot be used to sing messages at the moment, even if you have this feature in the wallet.
I guess I have to create a normal address only to verify my account here.


What's the problem when you can do it with electrum?
NOTE: To stake your Bitcoin address, why don't you use Legacy address till a solution is found?

OP which wallet are you using? Because electrum can very well sign and verify messages signed from bech32 addresses. I think some of the other segwit wallets like samurai don't have a feature to sign message yet. I'm assuming since electrum can sign message then bitcoin core 0.16 also should be able to do that when its released.

Just signed one with electrum.
Code:
Message: Signed message
Address: bc1qyjqygpulgd6y69ync6wvd256qjltszekd2pz0x
Signature: HwNkc1x7GtforrqObazbOOure4XV5Jpx51Uf/dQ7hLQNEhkO+914HqUupdYJd3LH0eBtfENXBWRj3mb+HbQOoDw=  

Things are still being developed before such a feature is allowed, because if any bugs take place in this, many scams will take place under signed messages. It's better to wait, or use Electrum's Bech32's addresses as they are completely verifiable in the wallet itself. There's nothing else that anyone here knows about, which either allows you to sign or verify a message from SegWit addresses.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Kprawn
Legendary
*
Offline Offline

Activity: 1904
Merit: 1074


View Profile
April 06, 2018, 03:46:39 PM
 #14

I think the problems comes in with the different implementation of SegWit by these wallet providers. I signed a SegWit

address with Electrum a while ago and someone used a Brainwallet app to read it and they were unable to verify it. The two

different implementations of SegWit is causing all the problems at the moment. Just use the same tool to verify, if in any way

possible. {just until a more permanent solution or standard is established}  Roll Eyes

THE FIRST DECENTRALIZED & PLAYER-OWNED CASINO
.EARNBET..EARN BITCOIN: DIVIDENDS
FOR-LIFETIME & MUCH MORE.
. BET WITH: BTCETHEOSLTCBCHWAXXRPBNB
.JOIN US: GITLABTWITTERTELEGRAM
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2478
Merit: 6312


bitcoindata.science


View Profile WWW
April 06, 2018, 04:44:17 PM
 #15

Yesterday I added my signed message to the Tomatocage's thread for stacking bitcoin addresses, but then I realize that I cannot verify it online, only in my wallet, and deleted my post. No point to post it if it cannot be verified online.
So thankfully found this thread and I know why. Almost no info in Google tho.
Seems that the SegWit addresses cannot be used to sing messages at the moment, even if you have this feature in the wallet.
I guess I have to create a normal address only to verify my account here.


I agree with you, no reason to sign messages from segwit using electrum if it cannot be verified and if it's non standard. Your signature would be worthless.

You can download some mobile wallet such as coinomi and sign a message from there, much better to protect your account and done in 5 minutes.

Offtopic: This was one of my firsts posts in bitcointalk.  Thanks to this issue I had when recovering some byteballs (which requires signing messages) I discovered how good this forum is. Pretty happy to see it's still useful Smiley

bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 07, 2018, 07:18:14 AM
 #16

I think the problems comes in with the different implementation of SegWit by these wallet providers. I signed a SegWit

address with Electrum a while ago and someone used a Brainwallet app to read it and they were unable to verify it. The two

different implementations of SegWit is causing all the problems at the moment.


It is not the segwit 'implementations' who cause a failure when signing/verifying messages.

You can't verify messages signed with with P2SH addresses since you can't know whether the public key corresponds to a nested p2wpkh address.
You can't be sure what p2sh address it would correspond to, since a public key can be a part of multiple ps2sh addresses.

With a p2pkh address, on the other hand, the public key only corresponds to one p2pkh address.

jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
September 29, 2018, 03:29:16 PM
 #17

Any news, particularly regarding such a feature in Core?

bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 30, 2018, 07:25:38 AM
Merited by HeRetiK (1)
 #18

Any news, particularly regarding such a feature in Core?

You might want to read the thread more carefully.

This is not a 'feature missing from core'. There is no standard yet. It is not defined how to exactly create AND verify messages signed from segwit addresses.

Electrum decided to implement this feature. But those messages will only be verifiable through electrum. Not trough any other wallet which offers segwit message signing.

If core (and any other wallet) was to add this 'feature' without a standard, we'd have 30 different types to create/validate signed messages. And you'd need to always use the same wallet as the signer of the message to verify it.
It is better to first agree on a standard, then let every wallet implement it. This way the messages will be verifiable between different wallets from anyone.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
September 30, 2018, 03:33:00 PM
Merited by jnano (1)
 #19

There has been a BIP (https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki) made regarding a generic message signing format. Such a format would be able to be used for segwit, non-segwit, and any future changes. It is still being actively discussed however, so it probably won't go into Core or any other wallet software anytime soon.

jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
September 30, 2018, 09:39:20 PM
Last edit: October 02, 2018, 11:18:18 PM by jnano
 #20

Thanks achow.

Besides a comprehensive standard everyone agrees on, another possible solution is for Core to implement its own flavor, even for just a subset of the cases. A Core-only implementation is better than nothing (though it would likely turn into a de facto standard anyway). There's no real harm in having intermediate standards, as it doesn't add burden to the blockchain or network, as far as I can tell? Waiting a few more months for a complete standard may be better, I suppose, but not a few years.

You might want to read the thread more carefully.

I have read the thread carefully to begin with. The question was still valid, and indeed achow knew where it stands.


P.S., if anyone's interested, the 3/2018 discussion that lead to BIP322:
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-March/015818.html


Pages: [1] 2 »  All
  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!