With segwit there will be two transaction ids wtxid and txid
Can either one of them be used as previous hash or only txid?

1 Answer 1


Inside transaction inputs, you have to refer to previous transactions using the txid. Allowing a wtxid there would be (1) a hard fork and (2) defeating the purpose, as it'd make transactions malleable again.

The wtxid is only used to compute the Witness merkle root, which is committed to in the coinbase.

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.