1
1
There are three parts to this.
Shown here.
Part 1. This string is found at the final form of the raw tx:
494830450221008b9d1dc26ba6a9cb62127b02742fa9d754cd3bebf337f7a55d114c8e5cdd30be022040529b194ba3f9281a99f2b1c0a19c0489bc22ede944ccf4ecbab4cc618ef3ed01 eeffffff
But there is no explanation on how to get it or what it is nor does it appear to be from any other part of the tx. What is it and how do I get it from the data provided? Or is it merely the signature for the 1st input?
Part 2. This string is the preimage for the "sighash":
0100000096b827c8483d4e9b96712b6713a7b68d6e8003a781feba36c31143470b4efd3752b0a642eea2fb7ae638c36f6252b6750293dbe574a806984b8e4d8548339a3bef51e1b804cc89d182d279655c3aa89e815b1b309fe287d9b2b55d57b90ec68a010000001976a9141d0f172a0ecb48aee1be1f2687d2963ae33f71a188ac0046c32300000000ffffffff863ef3e1a92afbfdb97f31ad0fc7683ee943e9abcf2501590ff8f6551f47e5e51100000001000000
Why is it lacking the 1st input but has the hash that was derived from both the first and second inputs? How does one handle that part if your transaction only has 1 input? Or is this just the preimage for the second input?
Part 3. The above preimage for the sighash produces a signature. This signature of
02 47304402203609e17b84f6a7d30c80bfa610b5b4542f32a8a0d5447a12fb1366d7f01cc44a0220573a954c4518331561406f90300e8f3358f51928d43c212a8caed02de67eebee01 21025476c2e83188368da1ff3e292e7acafcdb3566bb0ad253f62fc70f07aeee6357
Why does this go at the bottom of the transaction in the "witness" preceded by a "02" and doesn't correlate with the input that it was created from (if it is indeed considered to be the signature for the 2nd output). If that is proper, then what does one do to create this "witness" thing at the end if one only has one input? And what does the "02" mean or what is it in reference to?
I was thinking of breaking this up into multiple questions but I think that would have gotten messy, not to mention I think these correlate with one another.
see also similiar request from you: https://bitcoin.stackexchange.com/questions/58251/what-is-a-serialized-signed-transaction/60907#60907
– pebwindkraft – 2017-10-18T18:49:29.450