Skip to main content

Hash Funcation in Blockchain

Almost everyone has heard about blockchain. But not every one understands how it works. This blog shows that understanding blockchain is a five finger exercise .



Let's Imagine there are ten friends(ram, shyam, ben, clarks, Roni, Johnny, Golu, Tony, Gatsby & Ann) who have came into an agreement that whatever monetary transaction they are doing shall be recorded by Ram

Ram recorded following transactions:-

1. Ben gave $200 to Roni
2. Roni gave $50 to Gatsby
3. Johnny gave $150 to Ann
4. .........

Now lets suppose Gatsby decided to change the entries

1. Ben gave $200 to Roni
2. Roni gave $50 $60 to Gatsby
3. Johnny gave $150 to Ann
4. .........

Ram Noticed that someone has changed the entries. So he decided to come up with a way such that he converted every statement into a code. Each new statement is converted into a code in such a that it made from code of previous code and code of new statement.

1. Ben gave $200 to Roni  - 059fa39a6995d4b9be5831efeecac273

2. Roni gave $50 $60 to Gatsby - 3579c246cad30148864861e29428b701

For generating final code for 2nd statement ram inserted code generated by previous statement code+ current statement code

   8a198a43b29739922a3c3d102e4c23d5

And so on .........

This code is called as hash. So if now Gatsby tries to change hash so he has to change all the hashes. When there are multiple transaction this becomes very difficult as to crack very last hash person hash to crack all the hashes. 

Comments

Popular posts from this blog

The Beginning Of Crypto Revolution

“With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless.”                                                                                                        - Satoshi Nakamoto The Bitcoin whitepaper, Bitcoin: A Peer-to-Peer Electronic Cash System, was published in 2008 by Satoshi Nakamoto. Bitcoin is revolutionizing the global payments industry and people around the world are rethinking the meaning of their money. Moreover, the underlying technology and network that process Bitcoin transactions, known as blockchain, is transforming industries as varied as banking, farming, logistics, healthcare, elections and manu...

Is Bitcoin A Bubble?

  On 7th Dec, 2017 Bitcoin crossed a $14,000 barrier and within 10 hours of crossing that barrier it was being traded at outrageous price of $15,200. But, this wasn't the highest ever price. Just after few days bitcoin broke another record, on 17th Dec, 2017 its value soared to $20,000.    Ever since then value of Bitcoin has plunged to $6500.  Will it rise or fall further? Why it may rise ? Reason 1: If we study graphs of past 3 years it suggests us that Bitcoin starts gaining momentum in the month of October and maintains this bullish rally till 1st or 2nd week of january. Reason 2: Whales may start buying. Whales are holders of large amount of Bitcoin. They are major worry for investors as they are directly involved in speculation. It is considered that whales may start buying Bitcoin which will help to surge price Bitcoin. Why it may fall or burst ? Reason 1: The first thing that we should all remember is that Bitcoin is a currency. Treating Bitcoin as a...

India Uninc.

"The India Uninc. is engine of our economic growth" What is India Unincorporated ? India Unincorporated is very Indian spirit with which we live. Its the India which we believe in. India  unincorporated are those unorganized businesses which appear in every nook & corner of modern India. Its the iron fist of Indian  economy, our answer to west world. it is the real reason why we stand strong when west sinks, cause our middle and low class stand strong.     In spite of this it is abandoned and often called as unwanted. Unorganised sector is not the residual sector of Indian  economy rather it is the dominant one. whensoever inflow of FDI (foreign direct invest) increases in indian economy it is celebrated, lauded & glorified  but its contribution to indian economy has never been more 9%. Where as unorganised sector holds a humongous share of 40%. Informal sector employs more than 93% of our total workforce...