segregated witness – What kinds of transaction malleability exist and which one in all them does SegWit remedy?

0
57


I’m little confused about what kinds of transaction malleability exist in bitcoin and which one in all them does SegWit remedy.

Right here Antoine Poinsot talks about txid malleability and third-party malleability and says that SegWit solves solely txid malleability. Within the touch upon that query, Murch talked about first-party malleability. Moreover, Grasp bitcoin third version talks about third-party and second-party malleability. On this reply Pieter Wuille says that SegWit does not stop malleability (that’s, in some ways the precise transaction information can nonetheless be modified by third events).

all this, I am a bit confused.

What I do know is that the transaction malleability comes from the truth that the digital signature doesn’t cowl the unlock script discipline (scriptSig), so if a 3rd celebration (or anybody) modifications its content material (for instance, provides one thing further to the stack that won’t have an effect on the unlock validity of the referenced UTXO) it’s attainable to vary the transaction ID and subsequently if this transaction is accepted as a substitute of the unique one, it could invalidate all transactions within the descendant chain. In fact, that is solely attainable if we’re working with an unconfirmed transaction and referencing its unconfirmed ID. SegWit solves this by shifting the digital signature from the unlocking script (enter portion of transaction) to separated witness information and subsequently digital signature shouldn’t be the a part of transaction ID. So referencing the sort of unconfirmed transaction is ok since its ID cannot be modified (no less than not by this manner).

So my questions are the next:

  1. What kinds of transaction malleability exist and what conditions do they symbolize?
  2. What sort/kinds of transaction malleability does SegWit remedy?
  3. If SegWit doesn’t remedy all kinds of transaction malleability, how these different varieties are overcome, if there’s a answer for them?
  4. What sort of transaction malleability does the scenario I described symbolize? (I suppose I am going to discover out on my own from the reply to the primary query)

LEAVE A REPLY

Please enter your comment!
Please enter your name here