6

Bitcoin Cash apparently uses sighash_forkid, such that if you don't implement that into your raw transactions, the bitcoin cash network won't accept it. How would one need to alter (what to add and how to get it) a transaction made to bitcoin tx specifications, to make it work on the Bitcoin cash chain?

It has been suggested that in an answer to this question:

The SIGHASH_FORKID is an addition to the sighash type and simply means that the sighash type must have bit 6 set.

What is it to "have bit 6 set"? And set to what? What is an example of it being "set" and not being "set"? Instead of "01" can I just type ĹéêŤ or does it need to be a "01" or a "02" or what can it be or not be?

1 Answer 1

3

Bitcoin Cash changes the sighash preimage to the one that is used by segwit. This is specified in BIP 143. OP_CHECKSIG on the Bitcoin Cash chain must use this new sighash preimage creation algorithm, but OP_CHECKSIG on Bitcoin uses a different sighash preimage creation algorithm (the original one), so they are incompatible with each other.

The SIGHASH_FORKID is an addition to the sighash type and simply means that the sighash type must have bit 6 set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.