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

Monitors and TV: Similarities and Differences

Monitors have faster response time than TVs and have higher refresh rates, lower input lag which make them better choice for gaming. Lot of us are confused whether, we should buy TV or monitor or can we interchange each other. We sometimes play games on HDTV or watch movies on computer monitor but that doesn't make them the same device. TVs have features not included in monitors, and monitors are generally smaller than TVs. However, TV and monitor have lot of similarities and have of dissimilarities. How They are Similar Following are the similarities in both Monitor and TV Screen Size When buying a new TV people prefer bigger screen size. However, screen resolution and panel type, play important role in image quality of device. As nowadays more content is in 4K hence while buying brand new TV nowadays, it should definitely support 4K. Overall, you can buy smaller 4K 43″ monitor or a 4K 50″-55″ TV by spending same amount of money. Screen Resolution TVs are availab

Healthy Snack Recipes | Lockdown Cooking

While we all are stuck at home due to lockdown, at some point we crave for eating somehting except for the regular meals of day. Since, we don't have access to any of the delicious snacks available at restaurants, people have started cooking a variety of dishes at home for satisfying their taste. 'Pani Puri', 'Pav Bhaji', 'Jalebi', 'Rasgulla' etc are some of the Indian dishes which most have us have already cooked at home. And now, people are worried that they might put on some weight during lockdown because of lack of physical activities and eating different snack. So here we came to your rescue. We brought some recipes which will not compromise either your health or taste. 1. Protein Tikki Ingredients: - Chickpeas : 1 cup - Besan: 1 tbps - Corriander: 1 tbsp - Ginger-Garlic paste: 1 tbsp - Salt: 1/2 tbsp - Green Chilli (as per taste) - Oil Steps: - Soak Chickpeas overnight. - Cook soaked Chickpeas in pressure cooker