0

We know that the hash of the previous block is included in the header of the next block. So, if an adversary change the data in the block no. 10, then they hash of it will be changed and the header of the block no. 11 will be no longer true. But, in the textbooks that I read to understand the blockchain, the said that the change in block no. 10 will change the whole blocks till the header of the genesis block prevent. Why the change of the data do backward from no 10 to the first not from no. 10 to 11 and so?

See this for example: Imagine this for a second, a hacker attacks block 3 and tries to change the data. Because of the properties of hash functions, a slight change in data will change the hash drastically. This means that any slight changes made in block 3, will change the hash which is stored in block 2, now that in turn will change the data and the hash of block 2 which will result in changes in block 1 and so on and so forth. This will completely change the chain, which is impossible. This is exactly how blockchains attain immutability.

1 Answer 1

1

The current block is the child and the previous block the parent. If the parent changes in any way then this will cause a change in the previous block hash pointer of the child. So the change does not ripple back to the genesis block. However what this does do is that once a block has many generations following it then it makes it very difficult to change. So the genesis block as the first block is impossible to change because changing it would make it necessary to change the previous hash of every block that followed it.

0

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.