by codeflo · 12y ago · 0 comments
Why is there extra data that's part of the transaction hash, but not part of the cryptographic signature? (This fact seems to be the source of the problem.)
This is probably not by accident, so what does this design accomplish? Why isn't every bit of the transaction signed?
Why is there any choice in how the signature is encoded? Why is there some sort of "script" (I'm not sure I understand this part) that's important enough to be hashed, but not important enough to be signed? This looks like a very deliberate design decision.
If the developers want to avoid transaction malleability, they will not be able to include the signature in the hash.
Would that be a problem? Since a transaction is already uniquely identified by the inputs, why not hash everything that's signed and use that as the identifier in (tx, index) pair?
Bitcoin has good/interesting reasons for using scripts inside transactions, but AIUI these are separate from the signature script.