P2WSH
P2WSH, or Pay to Witness Script Hash, is a type of Bitcoin script that locks coins to the hash of a witness script. In a P2WSH output, the scriptPubKey uses a SegWit version 0 witness program, which effectively commits to the 32-byte hash of a redeem (witness) script rather than the script itself.
To spend a P2WSH-output, a transaction must provide a witness that contains two parts: the witness script
P2WSH is a native SegWit alternative to P2SH (Pay to Script Hash). While P2SH stores the hashed
Common use cases include complex multisig arrangements, timelocks, and other sophisticated spending conditions where the script