Bitcoin Technical Learning Part 2 - Hash Pointer and Merkle Tree

Bitcoin Technical Learning Part 2 - Hash Pointer and Merkle Tree

By xuanling11 | Crypto Learning | 2 Jan 2021


This is continuation of the part 1 I wrote.

Hash Pointer

0f2bee6b26bf38a683bc5b98231540970aa64a5f91e6743272b787b2b0d929b2.png

Remember that hash function is:

If H(x) = H(y), then x = y

Hash pointer is simply something that point to x from function H( ). It is a chain property makes blockchain happens!

64f6fba8b76c3c754b0043d9a4210ea9f53ed04bd95be50dd65adddd2cafe1bc.png

Do you wonder why there are many online ledgers automatically post?

All hash (string of numbers and letters) above are generating from hash function H( ) and Hash Pointer is information that link to Hash and its function. It can lead back to its original data set.

Why we need Hash Pointer? Because this property helps us to build data structure of cryptocurrencies (in this case Bitcoin) and create a hash tree called Merkle Tree!

Merkle Tree

4b1211a020d38bca90dcb0d1581307997ab620fedc750e754b222ceae0dbc5be.png

Why we want to grow a tree? Because it creates a blockchain system that automatically track its transaction and user can verify payment without owning entire transaction ledgers.

Merkle Tree is a binary hash tree because it runs with factor 2.

In Bitcoin case, you need two sets of key, private and public. You use public key to receive payment and private key to validate transaction.

If and only if your private key matches your public key, your transaction is validate and it will go through Merkle Tree to make sure there is not discrepancy between the cryptocurrency you sent (or hash function you used).

That is it for Part 2!

If you unfamiliar with hash function, you can reference back to my Part 1 article.

Thanks for reading and I hope you learn something today!

 

 

How do you rate this article?

6


xuanling11
xuanling11

Check out https://www.xuanling11.com/.


Crypto Learning
Crypto Learning

All article was written by a delusional author who is possibly a nut job without any questions whatsoever about expertise in the subject matters.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.