P2WSH (Pay to Witness Script Hash)
As with P2PKH/P2WPKH, the only difference between P2SH and P2WSH is about the location of what was previously in the scriptSig
, and the scriptPubKey
being modified.
The scriptPubKey
is changed from something like:
OP_HASH160 10f400e996c34410d02ae76639cbf64f4bdf2def OP_EQUAL
To:
0 e4d3d21bab744d90cd857f56833252000ac0fade318136b713994b9319562467
That you can print with the following code:
With what was previously in the scriptSig
(signature + redeem script), moved to the witness
:
As the P2SH payment explained previously, P2WSH uses ScriptCoin
in exactly the same way to be signed.
Last updated