Post
Topic
Board Development & Technical Discussion
Re: Why cant get RSZ from Bitcoin Transaction?
by
nc50lc
on 06/01/2024, 05:19:02 UTC
In the section: P2SH-P2WPKH
Code:
  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.