Open In App

Why is it Difficult to Modify Records in Blockchain?

Finding a valid block is the hard work that bitcoin miners are doing when they mine. BlockChains have what’s called a difficulty, which is essentially an arbitrary setting that determines how hard it is to create blocks. This is where all the value comes from. If anyone could create blocks and throw them on the chain, there would be no value there, and networks would never agree on which block should go on the chain. 

Having created a block means miners must have done a bunch of work. That’s what proof-of-work means. By finding a block that is valid, it is proven that work has been done. For blockchains like Bitcoin and Ethereum, the difficulty level can change in order to ensure that blocks are created at regular intervals.



One can only change the block data and see if a valid hash is obtained, and do it over and over again. But what data can you change in your block?

Below is a simple diagram of a Block:

SIMPLE BLOCK DIAGRAM

Problem With Recalculating Hash in Blockchain

The critical part of including a block into a blockchain is the inclusion of a cryptographic hash. A cryptographic hash function is an algorithm that accepts an arbitrary quantity of data as input and creates a hash value, which is a fixed-size output of encrypted text of the previous block.



Example: Now, Suppose a malicious person, Alex, was trying to alter the transactions on the chain. As it is known, that one can’t just change data because that will create a new hash which would create an invalid block. 

It can be concluded that it’s nearly impossible to change records in blocks since all of the blocks are linked through the inter-relationships of all of their hashes, and any modification in a block anywhere in the chain invalidates all subsequent blocks.

Article Tags :