Bitcoin Forum
May 04, 2024, 12:59:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 [4]  All
  Print  
Author Topic: Difference between SegWit addresses  (Read 9494 times)
cfbtcman
Member
**
Offline Offline

Activity: 264
Merit: 16


View Profile
August 06, 2019, 12:16:12 AM
Merited by OmegaStarScream (1), ABCbits (1), joniboini (1)
 #61

Hy guys,

I hope you give me some help, i was reading this posts but i still with doubts!

Im thinking about trying Segwit Addresses because we pay less fee and is suposed to be the future but im confused.

I noticed there is 2 types of Segwit addresses starting by bc1, like for example in this webpage:

https://allprivatekeys.com/bitcoin-address-format

SegWit mainnet (P2WPKH address): bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4

and

SegWit mainnet (P2WSH address): bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3


What are diferences between this 2 and where can i use a online address generator for both?

I can only find for 1st example in this website:

https://segwitaddress.org/bech32/#entropyRef
1714827567
Hero Member
*
Offline Offline

Posts: 1714827567

View Profile Personal Message (Offline)

Ignore
1714827567
Reply with quote  #2

1714827567
Report to moderator
1714827567
Hero Member
*
Offline Offline

Posts: 1714827567

View Profile Personal Message (Offline)

Ignore
1714827567
Reply with quote  #2

1714827567
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714827567
Hero Member
*
Offline Offline

Posts: 1714827567

View Profile Personal Message (Offline)

Ignore
1714827567
Reply with quote  #2

1714827567
Report to moderator
1714827567
Hero Member
*
Offline Offline

Posts: 1714827567

View Profile Personal Message (Offline)

Ignore
1714827567
Reply with quote  #2

1714827567
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
August 06, 2019, 02:09:48 AM
Merited by joniboini (2), bones261 (2), ABCbits (1)
 #62

Hy guys,

I hope you give me some help, i was reading this posts but i still with doubts!

Im thinking about trying Segwit Addresses because we pay less fee and is suposed to be the future but im confused.

I noticed there is 2 types of Segwit addresses starting by bc1, like for example in this webpage:

https://allprivatekeys.com/bitcoin-address-format

SegWit mainnet (P2WPKH address): bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4

and

SegWit mainnet (P2WSH address): bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3


What are diferences between this 2 and where can i use a online address generator for both?

I can only find for 1st example in this website:

https://segwitaddress.org/bech32/#entropyRef
The first one is for P2WPKH: Pay to witness pubkey hash. This is your standard address type where you have a pubkey and can spend using that pubkey. The second type, P2WSH, is Pay to witness script hash. This is for anything else where you want to have some sort of script, such as multisig.

The distinction between the two types is exactly the same as the distinction between P2PKH and P2SH addresses. P2WPKH is analogous to P2PKH and P2WSH is analogous to P2SH.

Just like traditional P2SH (ignore Segwit wrapped P2SH), you can't just generate a P2WSH address from a private key. You need to have a script which then becomes the P2WSH address.

baro77
Member
**
Offline Offline

Activity: 90
Merit: 91


View Profile WWW
October 14, 2019, 10:05:19 PM
 #63

Hi everybody!

while studying addresses types and locking/unlocking scripts I ended up with an hand-written messy cheatsheet... I've gotten a PDF from it, hope it can helps!

https://medium.com/@baro77/btc-locking-and-unlocking-scripts-cheatsheet-ff6d515447de
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
October 17, 2019, 02:05:48 PM
 #64

So there are only two different SegWit addresses, the first one is called Legacy Compatible, because it will work with all older software and old exchanges that have not updated and old wallets. These begin with the number 3.

As another user has said, you can't tell that it's a Segwit address or a multisig address until a transaction is spent from it, but because it begins with a 3, all older stuff will accept it.

The other address format is called Native SegWit, it uses Bech32, and it starts with bc1q or BC1Q and is not case sensitive.

QR codes with Native Segwit addresses are smaller if you encode them as ALL CAPITALS. Not all exchanges support sending to them.

All wallets don't care where inputs come from, so you can safely spend from SegWit addresses to pay to ancient format addresses that begin with a 3 or a 1.

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!