Bitcoin Forum
November 03, 2024, 08:14:19 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 »  All
  Print  
Author Topic: Difference between SegWit addresses  (Read 9550 times)
Thekool1s
Legendary
*
Offline Offline

Activity: 1512
Merit: 1218


Change is in your hands


View Profile
November 03, 2017, 04:28:57 PM
 #21

Thank you Carlton for the detailed answer, i will look into it further. Smiley
jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
November 05, 2017, 02:49:25 AM
 #22

Upcoming 0.15.1 (which may or may not include waiting for 0.15.0.2 first, achow101 might tell us more)

Edit: Segwit GUI in Bitcoin Core will now be in 0.15.2, 0.15.1 will be bugfixes and backports
Thanks. How do you find this sort of info?


cpfreeplz
Legendary
*
Offline Offline

Activity: 966
Merit: 1042


View Profile
November 05, 2017, 02:53:34 AM
 #23

The public key hash for a bech32 address can also be a 256 bit value, but only for P2WSH addresses. These will have a larger number of possible addresses.

Correct.  bech32 P2WSH addresses are about 20 characters longer than bech32 P2WPKH addresses.

That's actually pretty great! I have been trying to read up on this but it's pretty confusing for us non technical folks. I'll wrap my head around it one of these days. Once I do I'll start to try and use the bech32 addresses just to get used to them and go from there.
TheLive1
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 16, 2017, 08:25:25 AM
 #24

No. Old addresses can exist alongside Segwit addresses in the same wallet.
dard way of doing it, it has alot of fail safety built into the design. It should be fine (Disclaimer: I don't use Electrum wallet)

Thanks for all the info. Very informative.
I installed electrum 3, and have now moved some to a new Bech32 (bc1?) address, how can I generate new address in the same electrum 3 wallet but w/ the old standard format? I want to send some over to the same wallet but can't because unsupported by it.
I've sort of looked around and dont see it.

Edit---
Just thought of it, would this be just sweeping private keys from wallet?
Boussac
Legendary
*
Offline Offline

Activity: 1221
Merit: 1025


e-ducat.fr


View Profile WWW
November 17, 2017, 06:48:19 AM
 #25

For those interested in creating segwit outputs, I just posted a ruby script for building a P2SH-P2WPKH address and spending from it, as a gist:
https://gist.github.com/pierrenoizat/f082d62d49e49f81978b97ad5900789a

OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6407



View Profile
November 17, 2017, 09:40:28 AM
 #26

For those interested in creating segwit outputs, I just posted a ruby script for building a P2SH-P2WPKH address and spending from it, as a gist:
https://gist.github.com/pierrenoizat/f082d62d49e49f81978b97ad5900789a

I'm not really familiar with Ruby but is it that easy to modify this to get the ability to generate SegWit vanity addresses?

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Boussac
Legendary
*
Offline Offline

Activity: 1221
Merit: 1025


e-ducat.fr


View Profile WWW
November 17, 2017, 09:40:33 PM
 #27

For those interested in creating segwit outputs, I just posted a ruby script for building a P2SH-P2WPKH address and spending from it, as a gist:
https://gist.github.com/pierrenoizat/f082d62d49e49f81978b97ad5900789a

I'm not really familiar with Ruby but is it that easy to modify this to get the ability to generate SegWit vanity addresses?


It's easy to loop through the calculation of the address until you match some vanity string but bear in mind it's only a BIP16 P2SH -looking address.
Only the creator of the address would know it's a segwit output until it is spent.

You may want to create a native BIP173 P2WPKH segwit address to make it obvious it's a segwit output from the start.
However BIP173 is only a draft afaik even if it is already supported by Electrum.

UGADawg
Jr. Member
*
Offline Offline

Activity: 53
Merit: 5


View Profile
December 30, 2017, 06:17:02 AM
 #28

so I created a new Segwit wallet with Electrum and the address start with "bc1"... since it's not widespread yet, can anyone recommend a Windows desktop (or Android) wallet who's addresses start with a "3" (since its kinda backward compatible?)
OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6407



View Profile
December 30, 2017, 12:59:04 PM
 #29

so I created a new Segwit wallet with Electrum and the address start with "bc1"... since it's not widespread yet, can anyone recommend a Windows desktop (or Android) wallet who's addresses start with a "3" (since its kinda backward compatible?)

Samourai wallet is the best option to go. You can generate both normal and SegWit (with '3') addresses for receiving and you can also send to Bech32 addresses (bc1) or, you have Trezor too (If you want to invest in a hardware wallet).

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
December 30, 2017, 03:39:19 PM
 #30

Apparently, Electrum on purpose doesn't want to support 3-prefix P2SH SegWit addresses:
https://github.com/spesmilo/electrum/issues/3460
lionelho
Full Member
***
Offline Offline

Activity: 135
Merit: 100



View Profile
December 31, 2017, 03:30:55 AM
 #31

1) What are these Segwit Addresses?
  • There are 2 different Segwit address formats. They are P2SH (starting with a "3") and bech32 (starting "bc1")
  • P2SH can be sent to by people using older Bitcoin software with no Segwit support. This supports backwards compatibility
  • People sending from newer Bitcoin software that have Segwit and bech32 can send to the new address type that starts "bc1"
  • People sending from newer Bitcoin software that have no Segwit probably cannot send to the new address type that starts "bc1"

So, if people send you BTC from old software, give them the Segwit addresses that start with "3". If people send you BTC using new Segwit Bitcoin software, give them the Segwit addresses that start with "bc1".

If you don't know if someone has the newer bech32 software or not, there's no need to worry, their software will simply refuse to send the transaction, so no harm can be done.


2) How are these different from normal Addresses?

  • You won't get the Segwit fee reduction unless you spend from one of these addresses
  • The addresses starting "3" are normal addresses. They already exist in the Bitcoin blockchain now. The difference is that the Bitcoin script permits a wide variety of options, in this case, using Segwit in a way that old Bitcoin software can handle (obviously old software has no clue what Segwit is, it didn't exist back then, this method works around that)
  • The addresses starting "bc1" are not normal addresses. They are brand new, and only work with Segwit
  • With addresses starting "bc1", it doesn't matter if you USE UPPER CASE. or if you use lower case. bc1bech32segwitaddressescanbeupperorlowercase is the same address as BC1BECH32SEGWITADDRESSESCANBEUPPERORLOWERCASE, neither your wallet software or the blockchain will care


3) How are the fees low compared to other addresses?

There are no guarantees. Bitcoin isn't like going to Walmart (where a price is the only price you can get), it's like going to an auction house. The miners control whose transactions they include in blocks, and they can do it any way they like, even totally crazy ways that lose them money.

But, you could expect to pay fees of ~50% less than non-Segwit transactions, for a regular transaction where you pay from just one address to one address (with one change address). Why? Sort of complicated, but I can explain if you like.


4) If i upgrade from 2.9.3 to 3.0 will i have old addresses or it will swipe them?

No. Old addresses can exist alongside Segwit addresses in the same wallet.

If you're nervous about this, just use a new wallet for all Segwit transactions. But Electrum's approach to wallet specs is flexible enough to allow it, and also the standard way of doing it, it has alot of fail safety built into the design. It should be fine (Disclaimer: I don't use Electrum wallet)
That's really clear and helpful. Your explanation is awesome.

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord    ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
tubainaman
Member
**
Offline Offline

Activity: 130
Merit: 32


View Profile
February 10, 2018, 06:23:27 PM
 #32

Can I send bitcoins from a standard wallet (starting with 1, i.e: 1dr4Jindendl....) to a SegWith address starting with bc1?

If yes, can I do it on electrum?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6885


Just writing some code


View Profile WWW
February 10, 2018, 07:03:15 PM
 #33

Can I send bitcoins from a standard wallet (starting with 1, i.e: 1dr4Jindendl....) to a SegWith address starting with bc1?
Yes.

If yes, can I do it on electrum?
Yes.

tubainaman
Member
**
Offline Offline

Activity: 130
Merit: 32


View Profile
February 10, 2018, 07:28:31 PM
 #34

Can I send bitcoins from a standard wallet (starting with 1, i.e: 1dr4Jindendl....) to a SegWith address starting with bc1?
Yes.

If yes, can I do it on electrum?
Yes.

Thanks.
FrueGreads
Legendary
*
Offline Offline

Activity: 1582
Merit: 1059


View Profile
February 11, 2018, 12:43:56 PM
 #35

I also have a question regrading segwit. Although I keep my "old" wallet with non segwit address, I've also created a new one that has native segwit addresses (the bech32 P2WPKH type, so addresses starting with bc1). I was aware that I would probably not be able to send or receive from non segwit addresses, but I decided to go for this option anyway, since I heard they are more efficient, so I preferred them over the "transitional" P2SH addresses.

My question is, will I be able to send/receive coins between my bech32 P2WPKH, and the P2SH addresses?

The thing is that segwit adoption is taking a lot of time, so I'm afraid that the "transitional" P2SH addresses get more "popular", and it will take a while for me to be able to really use my bech32 P2WPKH addresses.

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE ! 

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
February 11, 2018, 01:46:57 PM
Merited by FrueGreads (1)
 #36

I was aware that I would probably not be able to send or receive from non segwit addresses, but I decided to go for this option anyway, since I heard they are more efficient, so I preferred them over the "transitional" P2SH addresses.

My question is, will I be able to send/receive coins between my bech32 P2WPKH, and the P2SH addresses?
The thing is that segwit adoption is taking a lot of time, so I'm afraid that the "transitional" P2SH addresses get more "popular", and it will take a while for me to be able to really use my bech32 P2WPKH addresses.

Bech32-type addresses are more efficient, yes.
But you don't have any problems with sending/receiving to/from any address.
You can send/receive to/from any address you wish. Everything will work as before.

The problem with the slow adoption is that some wallets/exchanges/service provider won't allow you to enter a BTC address starting with bc1..
simply because they have a check-function to make sure you enter a "valid" btc address.
And as soon they check your address is neither starting with 1.. nor with 3.. they will give you an "wrong format" error.

This is just a problem of the exchanges/wallets/...
This has nothing to do with bitcoin/segwit itself.



FrueGreads
Legendary
*
Offline Offline

Activity: 1582
Merit: 1059


View Profile
February 11, 2018, 03:02:07 PM
 #37

Bech32-type addresses are more efficient, yes.
But you don't have any problems with sending/receiving to/from any address.
You can send/receive to/from any address you wish. Everything will work as before.

The problem with the slow adoption is that some wallets/exchanges/service provider won't allow you to enter a BTC address starting with bc1..
simply because they have a check-function to make sure you enter a "valid" btc address.
And as soon they check your address is neither starting with 1.. nor with 3.. they will give you an "wrong format" error.

This is just a problem of the exchanges/wallets/...
This has nothing to do with bitcoin/segwit itself.

Ok, I got it. I thought that was strange as well, since segwit came out of a soft fork, so I actually expected that the "old addresses" would still be compatible with the segwit ones, but I then heard things about those compatibility issues, and I wasn't fully understanding them. So it's all software related, so we just need to wait for wallets to be updated. I heard that the new version of Bitcoin Core wallet due to complete by May 1, should help solving these "problems".

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE ! 

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
February 11, 2018, 04:02:28 PM
 #38

Ok, I got it. I thought that was strange as well, since segwit came out of a soft fork, so I actually expected that the "old addresses" would still be compatible with the segwit ones, but I then heard things about those compatibility issues, and I wasn't fully understanding them.

Nested Segwit (starting 3) will work anywhere, all wallet software understands it. It's only the bc1 addresses that won't work backwards compatibly, and that's kind of irrelevant seeing as there aren't many wallets that use bc1 addresses. So it's all software related, so we just need to wait for wallets to be updated.

Best advice is to use nested 3-starting addresses for Segwit now, because they're completely backwards compatible for all services and wallets. So there's no need to wait for others to wait to update, you can use Segwit now backwards compatibly.


I heard that the new version of Bitcoin Core wallet due to complete by May 1, should help solving these "problems".

No, Bitcoin Core 0.16 will be available something like next week, I would guess. It's the Segwit wallet release, and has been expedited a little.

Vires in numeris
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
February 11, 2018, 06:57:19 PM
 #39

It's only the bc1 addresses that won't work backwards compatibly, and that's kind of irrelevant seeing as there aren't many wallets that use bc1 addresses.

Best advice is to use nested 3-starting addresses for Segwit now, because they're completely backwards compatible for all services and wallets. So there's no need to wait for others to wait to update, you can use Segwit now backwards compatibly.

You seem to confuse the meaning of backwards compatibility.
Bech32 addresses are backwards compatible.
This means:
- Transactions between legacy and bech32 addresses are compatible.
- "Old" nodes do "understand" those transactions from/to bech32 addresses
- There aren't any (network-)problems with bech32.

Wallets/Exchanges/Online service provider not accepting bech32 yet is due to not upgraded software (non-network related).
This has nothing to do with backwards compatibility. They just didn't update the software to accept those addresses.



patt0
Legendary
*
Offline Offline

Activity: 1694
Merit: 1005


Betting Championship betking.io/sports-leaderboard


View Profile
February 11, 2018, 08:55:22 PM
 #40


Wallets/Exchanges/Online service provider not accepting bech32 yet is due to not upgraded software (non-network related).
This has nothing to do with backwards compatibility. They just didn't update the software to accept those addresses.


Are there any known reasons for the time it's taking for wallets to update their software in order prevent all these problems and confusions related to segwit? I was considering updating to segwit as well, but I'm delaying this step because I would like to use electrum, and from what I've read they use the bech32 addresses, but they seem to be the only ones doing it (maybe there are more, but definitely not the majority).

I heard that coinbase, an exchange that I use when I need to cash out some coins, is finally going to update to segwit. I have no idea what type of addresses they will be using. But since they are updating to segwit, does this mean that even if they use the P2SH I will be able to make transfer to them if I use the bech32 addresses from electrum?

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