0

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?

1 Answer 1

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.

2
  • Hi Pieter, thanks for answering. So each transaction has its own hash?
    – Sarah V.P
    Jan 11, 2021 at 7:52
  • Yes, exactly. It's called the txid, and it only depends on the transaction itself (not on what block it's included in). Jan 11, 2021 at 17:33

Your Answer

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

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