How blockchain data is stored and secured

As more and more blocks are added, how does the data remain manageable?
How blockchain data is stored and secured | Blockchain Explained | Euromoney Learning
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 repeated 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. 


Understanding Libra

Understand how Facebook leveraged specific aspects of blockchain technology to launch a new cyrptocurrency called Libra, and its potential impact on the banking and finance sector.

Blockchain Explained

Jump to another post in the Blockchain Explained series but clicking on one of the tiles below.

Euromoney Learning On-Demand

Powered by Finance Unlocked

The world's first on-demand video learning platform designed by finance professionals, for finance professionals.

Euromoney Learning On-Demand is a comprehensive, high quality and engaging video learning platform covering all areas of banking and finance from fundamental concepts to advanced theory

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. Contact us about our bespoke Fintech training programmes via the form below.