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

Blockchain - The Tech Behind Cryptocurrency

8th October 2008, Satoshi Nakamoto released the white paper of bitcoin. This white paper wasn't any other authoritative document but it was beginning of an biggest ever digital revolution man kind will ever see. 3rd January, 2009,  The bitcoin network came to life , Nakamoto did first transaction and produced the genesis block of bitcoin.  But bitcoin wasn't the "THE BIGGEST EVER DIGITAL REVOLUTION" I was talking about. It was the tech behind bitcoin, BLOCKCHAIN . People think Nakamoto invented blockchain because of bitcoin but what I think is just the opposite of it.  What is blockchain ? Blockchain is a new type of internet. Unlike internet blockchain is distributed, public ledger. Just like facebook is an application of internet blockchain is of application of  blockchain. Major difference between internet and blockchain is that internet is an network based on intermediaries whereas blockchain is a peer - to - peer network.  For Example le

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 commodity spoils th

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 manufacturing, to name a few. Bitcoin creator, Satoshi Nakamoto discusses the web’s reliance on trusted third parties such as banks and credit card companies to process electronic payments. The traditional method may work for most transactions but problems do occur whe