How does a blockchain work - Simply Explained
Blockchains are incredibly popular nowadays but what is a blockchain?
How do they work what problems do they solve and how can they be used like the name indicates, a blockchain is a chain of blocks that contains information this technique was originally described in 1991 by a group of researchers and was originally intended to timestamp digital documents.It becomes very difficult to change it so how does that work well let's take a closer look at a block each block contain some data the hash of the block and the hash of the previous block the data that is stored inside a block depends on the type of blockchain. the Bitcoin blockchain, for example, stores the details about a transaction in here such as the sender-receiver and the amount of coins a block also has a hash you can compare a hash to a fingerprint it identifies a block and all of its contents and it's always unique just as a fingerprint, once a block is created its hash is being calculated changing something inside the block, will cause the hash to change so in other words hashes are very useful when you want to detect changes to blocks if the fingerprint of a block changes it no longer is the same block as the third element inside each block is the hash of the previous block and this effectively creates a chain of blocks and it's this technique that makes a blockchain.
let's take an example
Blockchains use a peer-to-peer network and everyone is allowed to join when someone joins this network he gets a full copy of the blockchain the node can use this to verify that everything is still in order now let's see what happens when someone creates a new block that block is sent to everyone on the network each node then verifies the block to make sure that it hasn't been tampered with and if everything checks out each node adds this block to their own blockchain all the nodes in this now or create consensus they agree about what blocks are valid and which aren't blocks that are tempered with will be rejected by other nodes in the network so to successfully tamper with a blockchain you'll need to tamper with all the blocks on the chain redo the proof of work for each block and take control of more than 50% of the peer-to-peer network only then will your tampered block become accepted by everyone else so this is almost impossible to do block chains.
Blockchains are also constantly evolving one of the most recent developments are the creation of smart contracts these contracts are simple programs that are stored on the blockchain and can be used to automatically exchange coins based on certain conditions more on smart contracts in a later blog the creation of blockchain technology peaked a lot of people's interests soon others realized his technology could be used for other things like storing medical records creating a digital notary or even collecting taxes.
so, now you know what a blockchain is how it works on a basic level and what problems it solves.