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

Tesla Roadster: Worlds fastest production car.

Elon Musk surprised everyone by unveiling the upcoming Roadster which will be second generation car as the first roadster came into production in 2008 and was discontinued in 2012 ending its four year journey. First generation Roadster was the first car unveiled by Tesla and its success was crucial for the company's future. Model S was launched using the money earned after selling first generation Roadster. Since the production of Roadster first generation everyone questioned Musk about the second generation Roadster. To their answers Musk unveiled it during Tesla Semi launch and surprised everyone. According to Musk base model of car will do 0 to 100kmph in 1.9 seconds making it the fastest production car and also first car to break under 2 seconds record. It would travel quarter mile in mere 8.9 seconds . More importantly, it is four seater car and rear seats will have enough space for kids to sit. Currently Koenigsegg Agera R is worlds fastest production car. It is powe

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