Post
Topic
Board Development & Technical Discussion
Re: Bip143 hashing examples question
by
Valle
on 07/01/2018, 22:08:16 UTC
Is this really a bug in the example or I miss something?
You are missing something. The first input is not a segwit input, so the hash calculation for that was ignored and skipped over. The second input is a segwit input, and is P2WPKH. This means that the scriptSig will be empty. The txwitness field contains the signature for the second input.

OK, thank you!