What is the "sequence" and its details as referenced for the segwit application?

0

On the segwit page there is a reference that the "feffffff" is the "sequence". What does the "sequence" represent in relation to what? Does it always have to be "feffffff"? What happens if it's "feffffff" instead of "ffffffff"? Does it help anything, does it hurt anything? Am I just fine using just "ffffffff" instead of "feffffff" What other options are there and what do they mean?

Mine

Posted 2017-08-17T20:22:02.137

Reputation: 1 142

Answers

3

Sequence is part of any input, before segwit as well. feffffff is the hexadecimal number 0xfffffffe because the bytes need to be reversed. This sequence number, as per BIP 125, is because:

Wallets that don't want to signal replaceability should use either a max sequence number (0xffffffff) or a sequence number of (0xffffffff-1) when then also want to use locktime;

So this sequence number uses the locktime but does not signal replaceability

If instead you used 0xffffffff, the sequence number would have no effect on the transaction.

If you don't know what locktime is, check out this question: What is Bitcoin's locktime feature exactly? How can it be used?

MeshCollider

Posted 2017-08-17T20:22:02.137

Reputation: 8 735

So, "What [actually] happens if its 'feffffff' instead of 'ffffffff'?" "Does it help anything, does it hurt anything? Am I just fine using just 'ffffffff' instead of 'feffffff'?". and what does "locktime" mean?Mine 2017-08-18T21:01:41.353

Use feffffff if you want to use the locktime functionality in your transaction. Asking what locktime is is a distinct question, should not be a comment https://bitcoin.stackexchange.com/questions/43067/what-is-bitcoins-locktime-feature-exactly-how-can-it-be-used

MeshCollider 2017-08-18T21:20:54.613

I would put forth that that is not necessarily the case. Thank you for the update to your answer and the link.Mine 2017-08-18T22:48:54.233