How blockchain data is stored and secured

How blockchain data is stored and secured hero resized 1900x400.png

Understand how blockchain data is kept manageable and secure to accommodate a constantly growing database

Blockchain works by including the identifier of the last block into the identifier in the following block to create an unbreakable and immutable chain. But as more and more blocks are added, how does the data remain manageable?

The key to keeping blockchain data manageable – and secure – is through an algorithm called hashing in combination with a consolidating data structure known as a Merkle Tree.

What is hashing?

When a transaction has been verified and needs to be added to a block in a chain, it will be put through a hash algorithm to convert it into set of unique numbers and letters, similar to what would be created by a random password generator. Then two transaction hashes will be combined, and put through the hash algorithm to produce another unique hash. This process of combining multiple transactions into new hashes continues until finally there remains just one hash – the ‘root’ hash of several transactions.

What makes hashes unique, and a key security feature for blockchains, is that they only work one way. While the same data will always produce the same hash of numbers and letters, it is impossible to ‘un-hash’, or reverse the process, using the numbers and letters to decipher the original data.

What is a Merkle Tree?

If the hashing process is epeated with exactly the same transactions, exactly the same hashes will be created. This allows anyone using the blockchain to check that the data has not been tampered with, because ANY change in any part of the data will result in a completely different hash, affecting every iteration of hashes all the way to the root. This is known as a Merkle Tree.

A Simplified Merkle Tree Diagram | Blockchain Explained - How blockchain data is stored and secured | Euromoney Learning

Merkle Trees serve the purpose of significantly reducing the amount of data required to be stored and transmitted or broadcast over the network by summarising sets of hashed transactions into a single root hash. As each transaction is hashed, then combined and hashed again, the final root hash will still be a standard size.

Gift this article
Learn what blockchain is and why there is so much hype around it
Understand the process to authenticate and authorise a transaction.
Many people wrongly conflate the two. Do you know the difference?
Understand the three main risks associated with public blockchains
What banks and businesses are using private blockchains today and why?
Explore our Blockchain and FinTech Courses

Explore our Blockchain and FinTech Courses

Euromoney’s FinTech training courses are led by world-leading experts and cover a variety of topics including private and public blockchains, cryptocurrency, alternative fundraising strategies, and the role of AI, machine learning and big data in banking.

Browse through some of our available course listings, or contact us about our bespoke Fintech training programmes via the provided form.

bsp courses by topic widget
×