In the section: P2SH-P2WPKH
hashPrevouts:
dSHA256(db6b1b20aa0fd7b23880be2ecbd4a98130974cf4748fb66092ac4d3ceb1a547701000000)
= b0287b4a252ac05af83d2dcef00ba313af78a3e9c329afa216eb3aa2a7b4613a
The last 4 bytes "01000000" are not clear to me where they come from.
[/quote]It's "
Option 2".
It's the
TXID and
VOUT of the input(s), it's basically the same as
You can refer to the other examples which work similarly but used different sighash code that are different from the prevIndex.