And in particular, how do I make the sighash, also called preimage?
I know BIP143 has a lot of details on this, but I am personally having trouble creating valid transactions by following it.
Step-by-step guides in the style of https://medium.com/coinmonks/creating-and-signing-a-segwit-transaction-from-scratch-ec98577b526a are appreciated.