<p>There are transactions, and blocks. Both have their own unique identifiers, which are calculated as a hash of all the data in it.</p>
<p>When a transaction is included in a block, its hash (txid) doesn't change. It just becomes part of a block. That block also has a hash, which depends on the hash of the parent block, as well as on the hash of all transactions included in it.</p>
<p>So no, not all transactions share the same hash. Their hash is simply the hash of their data, and once created and signed, that hash cannot change without invalidating the signatures. Including it in a block doesn't change that.</p>

CC BY-SA 4.0
2021-01-11T07:52:02.133Z
Hi Pieter, thanks for answering. So each transaction has its own hash?
Probability_Sarah
CC BY-SA 4.0
2021-01-11T17:33:10.073Z
Yes, exactly. It's called the txid, and it only depends on the transaction itself (not on what block it's included in).
Pieter Wuille
CC BY-SA 4.0
2021-01-11T02:20:53.230Z
2021-01-11T02:20:53.230Z
Pieter Wuille
<p>From what I have read, when a transaction is settled, the record is added to a block among with other records. The block is given a new hash as well as a hash from previous block.</p>
<p>So does that means that all the records in the same block share the same hash? Why isn't this significant at all?</p>

<blockchain><block>
Do all of the records in the same block share the same hash?
Probability_Sarah
# Do all of the records in the same block share the same hash?

(Asked by: username_0 on 2021-01-11)

From what I have read, when a transaction is settled, the record is added to a block among with other records. The block is given a new hash as well as a hash from previous block.

So does that means that all the records in the same block share the same hash? Why isn't this significant at all?

**Tags:** blockchain, block


---

## 1 answers

### Answer by username_1 on 2021-01-11. Score: 4

There are transactions, and blocks. Both have their own unique identifiers, which are calculated as a hash of all the data in it.

When a transaction is included in a block, its hash (txid) doesn't change. It just becomes part of a block. That block also has a hash, which depends on the hash of the parent block, as well as on the hash of all transactions included in it.

So no, not all transactions share the same hash. Their hash is simply the hash of their data, and once created and signed, that hash cannot change without invalidating the signatures. Including it in a block doesn't change that.

> **Comments:**
> **username_0**: Hi Pieter, thanks for answering. So each transaction has its own hash?  
> **username_1**: Yes, exactly. It's called the txid, and it only depends on the transaction itself (not on what block it's included in).  

---

