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 Exam...

RBI Regulated Organisations Barred From All Cryptocurrency-Related Services

"We have decided to ring-fence the RBI regulated entities from the risks of dealing with virtual currencies. These operators are required to stop having a business relationship with the entities dealing with virtual currencies forthwith and unwind the existing relationships within three months"                                                          - BP Kanungo                                                              (Deputy Governor,  RBI) After issuing premonitory warnings RBI finally doomed cryptocurrency exchanges by banning all RBI regulated organisations to provide services to cryptocurrency-related entities form 5th July, 2018 As per press circular released by ...

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...