Pages:
Author

Topic: About possibility to Sign messages in Segwit address in future (Read 973 times)

legendary
Activity: 1288
Merit: 1926
฿ear ride on the rainbow slide
Trezor signed messages using a 3 address can be verified here:

https://jhoenicke.github.io/brainwallet.github.io/#verify
This site appears to verify the new addresses.

While this one:
https://brainwalletx.github.io/#verify
Does not.

Addresses starting with bc1 don't appear to work on either site.

For example:

-----BEGIN BITCOIN SIGNED MESSAGE-----
This is xtraelv from bitcointalk and todays date is 2018.10.8
-----BEGIN SIGNATURE-----
35LixBd3DEkqVjPtbai5hgeGX3ZUzqPnq3
I6g0mKAKyrblh/1NDq/Ce3/dxH5QIbBBCSOOUWKC3mPBLhUDv2WyoLcHPyy9p+vHZP8VeEo7uU399kELiRBbISM=
-----END BITCOIN SIGNED MESSAGE-----




Quoted, Verified and Archived
member
Activity: 301
Merit: 74
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


staff
Activity: 3458
Merit: 6793
Just writing some code
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.
legendary
Activity: 1624
Merit: 2481
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.
member
Activity: 301
Merit: 74
Any news, particularly regarding such a feature in Core?

legendary
Activity: 1624
Merit: 2481
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.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
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
legendary
Activity: 1904
Merit: 1074
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
legendary
Activity: 3052
Merit: 1273
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.
legendary
Activity: 2240
Merit: 3150
₿uy / $ell ..oeleo ;(
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.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
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.
legendary
Activity: 2383
Merit: 1551
dogs are cute.
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?
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
Thank you for answers. I will be waiting for a solution then and stick to my segwit address.
hero member
Activity: 854
Merit: 658
rgbkey.github.io/pgp.txt
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.
staff
Activity: 3458
Merit: 6793
Just writing some code
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.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
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.
copper member
Activity: 630
Merit: 2614
If you don’t do PGP, you don’t do crypto!
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.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
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.
hero member
Activity: 1050
Merit: 529
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= 
legendary
Activity: 1372
Merit: 1252
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.
Pages:
Jump to: