Skip to content

Instantly share code, notes, and snippets.

@Sakalya100
Sakalya100 / Blockchain.txt
Last active June 30, 2021 08:34
MLH INIT Blockchain
### Blockchain
There is a great hype about Bitcoin around the world. The main technology that is operating behind Bitcoin is Blockchain.
We can consider Blockchain as series of connected blocks that are used to mine currencies which are not tangible and are in the form of digital.
Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack, or cheat the system.
I hope everyone have heard of a data structure called Linked List. Okay if you havent I will tell you.
Linked List is basically containers connected with each other such that each container have two values, one is the adress of previous block and other is the value stored in that block.
This way the series continues. Now if we want to tamper the value in middle, we have to go through all the blocks that take me up to that because the adress of that block is not available.