Skip to main content

Block-chain- explained in a simple way

Block-chain as the name suggests is combination of two words, Block-Chain. It is called so because it consists of chain of blocks. Blocks that store data in them. Earlier this technique was used in distributed ledgers for storing the dates in the blocks so that data could not be stored on back date.



What does Block contains?

A Block stores data, Hash and Hash of previous block.

Data: It can be anything that you want to store in blocks. For eg. in Bitcoins Blocks contain transaction information like 'From', 'To' and 'Amount'.

Hash: It is a unique entity like fingerprints. Whenever a block is created it is assigned a unique Hash that separates it from other blocks. Changes made to Block results in changing the Hash of the Block. This is the important feature of Block-Chain technology.

Hash of previous Block: This is the important feature of Block-Chain technology as this forms the chain of blocks.

How does it work?
As each block contains Hash of previous block, therefore the very first block also needs to store some value in 'Hash of previous Block'. First block does not point to any previous block and '0000' is stored for previous hash value, thus first block is known as Genesis Block.



Consider a chain of 3 blocks say A,B and C. If anyone makes changes to block B then its Hash will be changed. As a result block C will become invalid as the value stored in previous Hash would not match with any entry.

It means making changes to any one block will result in invalidating all the following blocks in chain. Because of this feature storing data in block chain is safe.

Hashes are used to prevent tampering. But our computers can calculate 1000 Hashes per seconds, therefore all the following Hashes can be easily re-calculated for making the block-chain valid again.

To overcome this Block-chain introduces 'Proof-of-Work'. Its a mechanism that slows down the creation of new blocks. In Bitcoin, ten minutes are required to calculate Proof of Work and add new block to chain. As a result if changes are made to any block, then recalculating all following blocks will require more time with Proof-of-work.

Another way to security:
Block-chain uses P2P network i.e. everyone is allowed to join the network. On joining everyone gets full copy of block-chain. Node is used to verify if everything is still in order. Whenever anyone adds new block, it is sent to everyone on network. Each node will verify the new block to make sure it has not been tampered. If everything is good, each node will add this block to Block-chain. All nodes in network crates 'Consensus', they agree about which blocks are valid and which are not. Tampered blocks are rejected by other nodes in network.

Therefore with P2P network it is hard to add/tamper any block in the network.

What happens on tampering any block?
Tampering will change all the blocks on network thus block-chain redo Proof-of-work for all blocks. It then takes report of about 50% of P2P network. If approved only then the block will be added to the chain otherwise it is rejected.

Blocks also involve 'Smart Contracts', these are simple programs that re stored on Block-chain. It can be used to automatically exchange coins based on certain conditions. Therefore this technology can also be used for Medical records, e-notary and Collecting taxes.

Comments

Popular posts from this blog

How IoT will impact online gaming industry.

Internet of Things, also known as IoT, is a hot tech that is on everybody’s lips. It is a network of physical devices such as vehicles, home appliances and other electronic devices through internet connectivity which enables these objects to connect and exchange data. There are endless opportunities in IoT, when you start connecting things with things, humans with humans, or humans with things. Nowadays this hot tech has become an important part of our lives. Companies are earning huge amount of money by connecting devices and their revenue chart have skyrocketed. Gaming industry is one of the major industry which is impacted by IoT, and it’s most significant impact is on online gaming, whether they are consoles or online gambling. Impact of IoT on Casinos: One of the key area which has flourished over time is gambling industry. Online casinos have been effected by the growth of IoT. Playing poker or blackjack remotely without going to the casinos is of huge advantage as peop...

How to make Explosion Box

This is something which is more attractive and breathtaking to be given as a gift, the Explosion Box. As the name explains, it explodes with a lot of things in it on opening. It includes various items in it which adds to its beauty. If you are a crafts person, then you are going to love this. Grab your scissors and papers and try your hands on this. Be ready with these: - a pair of scissors - colored sheet of paper Follow these steps: 1. Take a sheet of paper of size 9cm X 9cm as shown in figure i. 2. Now fold inward at gap of 3cm in both directions horizontally and vertically as shown in figure ii. 3. Make diagnal folds outward as shown in figure iii and keep this aside. 4. Now take another sheet of paper of dimensions 8cm X 8cm and repeat step 2. 5. Cut along the edges marked in yellow in figure iv. 6. After cutting, place the pink portion marked in figure v over the yellow portion and paste making a pocket and figure will appear like figure vi. 7. Take one more sheet...

Mediatek Dimensity 1000 vs Snapdragon 865 | Which is better?

Qualcomm is the king of smartphones processors and all the major flagship devices use Snapdragon processors. Now  MediaTek is back in the flagship segment with its new chip the MediaTek Dimensity 1000. But the big question remains how does MediaTek Dimensity 1000 specs compares with Qualcomm Snapdragon 865. Qualcomm Snapdragon 865 vs MediaTek Dimensity 1000 specs   Snapdragon 865 Dimensity 1000 CPU Config 1x 2.84GHz (Cortex A77) 3x 2.4GHz (Cortex A77) 4x 1.8GHz (Cortex-A55) 4x 2.6GHz (Cortex A77) 4x 2GHz (Cortex A55) GPU Adreno 650 Mali-G77 MP9 AI Hexagon 698 Hexagon Tensor Accelerator hexa-core APU 2x heavy cores 3x medium cores 1x ligh t core Process 7nm 7nm Camera support 200MP snapshot / 64MP single with Zero Shutter Lag 24MP dual camera 80MP single / 32 and 16MP dual Video capture 8K @ 30fps, 4K UHD @ 120fps, 720p @ 960fps 4K UHD @ 60fps Charging Quick Charge 4+ Quick Charge AI Pump Express Modem X55 5G & RF system 7500 Mbps down 3000 Mbps up mmWave Sub-6Ghz Helio M70...