Do I understand correctly that both inputs are to be signed
So first, we sign the first one, then the second one. To sign an input
we replace scriptSig for this input with the scriptPubKey, that locks
this input. ScriptSig for the other one remains blank. It this
But in both threads in step 13 something is appended at the end ...