Sunday 31 December 2017

BLOCK CHAIN TECHNOLOGY

what is block chain?

before going into deep lets first understand some basic terminology about blockchain.

what is block?
a block is basically a piece or a small chunk that contain some information.
for an example, bitcoin block contains 512-bit data in each block.

what is a chain?
a chain is basically a thing that is to be used to join two stuff.
for an example, in block chain technology, a hash pointer is playing the role of chain that is to be used to join two blocks.


so now we able to answer, what is blockchain?
the answer is the chain of blocks where hash pointer keeps the record of each and every block.

 why blockchain technology more secure?

 because each and every block data is encrypted.

 how block data is encrypted? 
 by using a hash function, data is encrypted.
 a hash function is a function that is used for data encryption.

hash function includes three step for data encryption.
1) take any string as an input.
2) apply algorithm ( bitcoin used hash-256 algorithm for data encryption)
3) generate output. 
Awesome Inc.
Note: each and every block data is encrypted by a hash function.

One thing I want to mention that, there are many algorithms to generate hash function( MD-5, sha-256, sha-512) etc.

Now the question is:
is there any possibility that for two blocks of data, hash value Are same or hash function generated same hash value for the block?

The answer is no, the hash function never generated same hash value for the different block of data.