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-formatSegWit 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/#entropyRefThe 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.