Dusty
Active Member
- Mar 14, 2016
- 362
- 1,172
The last bolded part is the usual P2SH script that defines a 20-byte hash for a certain script.
That script is a segwit address of the form OP_0 <32-byte-hash>. This script is a P2WSH witness program, and in turn that's like a P2SH address, but with 32 bytes hash instead of 20.
So you have two nested hash, and to calc them you need the witness.
The scriptPubKey you find in the transaction is the latest one:
(0xA914{20-byte-hash}87)
the other is an explaination to understand how it's built
That script is a segwit address of the form OP_0 <32-byte-hash>. This script is a P2WSH witness program, and in turn that's like a P2SH address, but with 32 bytes hash instead of 20.
So you have two nested hash, and to calc them you need the witness.
The scriptPubKey you find in the transaction is the latest one:
(0xA914{20-byte-hash}87)
the other is an explaination to understand how it's built