Bitcoin Forum

Other => Beginners & Help => Topic started by: I Am Hero on April 20, 2017, 02:33:30 AM



Title: "SegWit moves the signatures out of the transactions", where?
Post by: I Am Hero on April 20, 2017, 02:33:30 AM
i read that they say "SegWit moves the signatures out of the transactions".

so does this mean there will be another block that contains the signatures and another to contain the remaining part of the transaction?


Title: Re: "SegWit moves the signatures out of the transactions", where?
Post by: Michael Syrett on April 20, 2017, 02:51:24 AM
I think it moves on its own chain. Next to the blockchain like one lane over.


Title: Re: "SegWit moves the signatures out of the transactions", where?
Post by: achow101 on April 20, 2017, 02:52:38 AM
No, this statement is a very simple abstraction of what segwit does but is actually completely false.

In transactions that spend segwit outputs, segwit changes the transaction format to include a new field known as txwitness. txwitness comes after the outputs and before the nlocktime. This is the transaction format and it goes in blocks as is. For segwit nodes, they will receive blocks and transactions with transactions that spend segwit outputs serialized with the segwit transaction format. With non-segwit nodes, they will get blocks and transactions in the normal transaction serialization format (i.e. no txwitness and other marker bytes for segwit).

There is no extra block for the txwitnesses, they go in the transaction that they belong to.