Post
Topic
Board Development & Technical Discussion
Re: Why cant get RSZ from Bitcoin Transaction?
by
MixMAx123
on 05/01/2024, 22:44:18 UTC
I would need some help at one point.
It is about the documentation of: https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki
In the section: P2SH-P2WPKH
Code:
  hashPrevouts:
    dSHA256(db6b1b20aa0fd7b23880be2ecbd4a98130974cf4748fb66092ac4d3ceb1a547701000000)
  = b0287b4a252ac05af83d2dcef00ba313af78a3e9c329afa216eb3aa2a7b4613a
The last 4 bytes "01000000" are not clear to me where they come from.
There are two possibilities that could be confused.
Option 1: It could be the HashCode. "01000000"
Option 2: It could be the index of the previous transaction. (prevIndex) "01000000".
In both options, it would be "01000000". And there would be an error in my implementation if the prevIndex has a different value.
Thank you very much