Why is a double hash of the previous transaction included in Txin?

2

In Txin, there is a double hash of the previous transaction.

Why? What purpose does that serve? How is this data used later?

user5107

Posted 2014-01-01T07:32:06.147

Reputation:

Answers

1

I believe it is one of the principles of Bitcoin, to make transactions you first have to have a valid transaction it stems from. If the previous transaction is not valid than the first transaction isn't valid as well.

John T

Posted 2014-01-01T07:32:06.147

Reputation: 2 759

It's hashed as to provide a summary of the entire transaction, sort of like an id. The hash can be used to verify that whatever transaction in plaintext you have is indeed the hash the person claims. You could put the full transaction in but that's not efficient.John T 2014-01-02T00:05:30.880

Referenced by id? The txid of a transaction is the double hash.John T 2014-01-02T00:15:31.437

@Gracchus It's due to efficiency and ease of checking. The Bitcoin network would get slowed down by massive transactions that had thousands of addresses linked to it whenever one node simply wanted to check if another node had the transaction if there where no hashed txid.John T 2014-02-18T02:20:52.650

There can be thousands of addresses in a transaction, a txid hash will always be 64 characters.John T 2014-02-18T19:59:29.060