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

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