How does a blockchain work – Simply Explained


Blockchains are improbably popular nowadays. But what is a blockchain? How do they use, what troubles do they solveand how can they be used? Like the specify indicates, a blockchain is achain of blocks which provides information. This technique was originally described in1 991 by a group of researchers and was originally intended to timestamp digital substantiates sothat its not possible to backdate them or to tamper with them. Almost like a notary. Nonetheless it went by predominantly unused until itwas adapted by Satoshi Nakamoto in 2009 to create the digital cryptocurrency Bitcoin.A blockchain is a circulated ledger thatis completely open to anyone. They have an interesting property: once somedata has been recorded inside a blockchain, it becomes very difficult to change it. So how does “whos working”? Well, gives take a closer look at a block. Each block contains some data, the hash ofthe block and the hash of the previous block. The data that is stored inside a block dependson the type of blockchain.The Bitcoin blockchain for example storesthe details about a transaction in now, such as the sender, receiver and extent of silvers. A block also has a hash. You can compare a hash to a fingerprint. It distinguishes a block and all of its contentsand it’s always unique, just as a fingerprint. Once a block is organized, its hash is beingcalculated. Changing something inside the block will causethe hash to change. So in other words: hashes are very usefulwhen you want to detect changes to blocks. If the fingerprint of a block changes, itno longer is the same block. The third element inside each block is thehash of the previous block. This effectively composes a series of blocksand its this technique that makes a blockchain so secure.Let’s take an example. Now we have a chain of 3 blocks. As “youre seeing”, each block has a hash andthe hash of the previous block. So block digit 3 points to block number 2and list 2 points to digit 1. Now the first block is a bit special, it cannotpoint to previous blocks because it’s the first one. We announce this the genesis block. Now let’s say that you tamper with the secondblock. This causes the hash of the block to changeas well.In turn that will do block 3 and all followingblocks invalid because they no longer store a legitimate hash of the previous block. So varying a single block will make all followingblocks invalid. But consuming hashes is not enough to preventtampering. Computers these days are very fast and cancalculate hundreds of thousands of hashes per second. You could effectively tamper with a blockand recalculate all the hashes of other blocks to prepare your blockchain valid again.So to mitigate this, blockchains have somethingcalled proof-of-work. It’s a mechanism that slows down the creationof brand-new blocks. In Bitcoins case: it takes about 10 minutesto calculate the required proof-of-work and supplemented a brand-new block to the chain. This mechanism procreates it very hard to tamperwith the blocks, because if you tamper with 1 block, you’ll need to recalculate the proof-of-workfor all the following blocks. So the security of a blockchain comes fromits imaginative expend of hashing and the proof-of-work mechanism. But there is one more way that blockchainssecure themselves and that’s by being distributed. Instead of using a central entity to managethe chain, blockchains utilization a peer-to-peer network and anyone is allowed to join. When person affiliates this network, he gets thefull copy of the blockchain. The node can use this to verify that everythingis still in order. Now let’s see what happens when someone createsa new block. That new block is send to everyone on thenetwork.Each node then attests the block to makesure that it hasn’t been tampered with. If everything checks out, each node computes thisblock to their own blockchain. All the nodes in this network procreate consensus. They concur about what blocks are valid andwhich aren’t. Blocks that are tampered with will be rejectedby other nodes in the network. So to successfully tamper with a blockchainyou’ll need to tamper with all blocks on the order, redo the proof-of-work for each blockand take control of more than 50% of the peer-to-peer network. Only then will your manipulated block becomeaccepted by everyone else. This is almost impossible to do! Blockchains are also constantly evolving.One of the more recent developments is thecreation of smart contracts. These contracts are simple planneds that arestored on the blockchain and allows us to automatically exchange coins based on certainconditions. More on smart contracts in a later video. The creation of blockchain technology peakeda lot of peoples interest. Soon, others “ve learned that” the technologycould be used for other things like storing medical record, creating a digital notaryor even obtaining taxes. So now you know what a blockchain is, howit works on basic degree and what problems it solves. Want to learn how you can implement a simpleblockchain with Javascript? Then checkout this video here.And as always: thank you very much for watching ..

As found on YouTube

Get in touch for your NFT project

What's your reaction?

In Love
Not Sure

You may also like