Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Bip143 hashing examples question
by
achow101
on 07/01/2018, 21:55:13 UTC
⭐ Merited by ETFbitcoin (2)
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.