Bip16 P2WSH and Bip141 P2SH
Firstly, both
Pay 2 Witness Script Hash ( P2WSH) and
Pay 2 Script Hash (P2SH) and they contain the
Pay 2 Multisig (P2MS) locking ScriptBip16 P2WSH and Bip141 P2SH
Firstly, both
Pay 2 Witness Script Hash ( P2WSH) and
Pay 2 Script Hash (P2SH) are Multisig type are script hashes that can use hash of a multi-sig redeem script as well as hash of any other redeem script type, they contain the
Pay 2 Multisig (P2MS) locking ScriptHere's a quick overview of
Multisig wallet P2WSH and P2SH address P2SH was used before the introduction of Seqwit which also brought about the use of P2WSH,the idea of P2WSH was to replace P2SH as it's much more standard
P2SH address starts with 3 and usually have 34 chars
Testnet starts with 2
-----------‐------------------------------------------------------------
P2WSH address starts with bc1q just like the P2WPKH both are segwit version 0 but P2WSH is 62 chars.
Testnet starts with tb1q
P2WSH and P2SH Unlocking Script The Unlocking Script is always used to unlock the output of their transaction.
The Script sig contains the Unlocking Script(I.e the Unlocking code & the Reedem Script) for P2SH
The Witness field Contains the Unlocking Script(Witness script)for P2WSH which needs be hashed using SHA-256 to attempt the Script Hash
Ref ==
https://learnmeabitcoin.comHere's the little I've learned about them so far as I have been reading throughout my stay on the forum
All Corrections and additions are welcome
[Addit]
P2TR
P2TR or Taproot exist today which allow lower transaction size and slightly better privacy, so there's no strong reason to keep using P2SH and P2WSH unless you can't find software which use P2TR (with specific spending condition you impose) or you perform transaction with someone else who use software which doesn't support P2TR.