<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Drsound on Medium]]></title>
        <description><![CDATA[Stories by Drsound on Medium]]></description>
        <link>https://medium.com/@drsound31?source=rss-6b813cf9343f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*653AnMfbhUftqRNNVdqPtg.jpeg</url>
            <title>Stories by Drsound on Medium</title>
            <link>https://medium.com/@drsound31?source=rss-6b813cf9343f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:52:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@drsound31/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Short Notes on Merkle Tree and Proofs]]></title>
            <link>https://medium.com/@drsound31/short-notes-on-merkle-tree-and-proofs-b91a36adc108?source=rss-6b813cf9343f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b91a36adc108</guid>
            <dc:creator><![CDATA[Drsound]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 13:04:56 GMT</pubDate>
            <atom:updated>2026-01-28T13:04:56.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ASCfijuqE-SaDrEK.jpg" /><figcaption><a href="https://www.ginachoy.com/merkle-tree">Gallery 3 — Gina Choy 蔡金娜</a></figcaption></figure><p>Do you ever wonder how your crypto wallet can validate a certain transaction on the blockchain with speed and without having to download the entire blockchain onto your devices? Merkle Trees is the secret sauce behind this blockchain capability, it is a genius way to prove that something exist in a massive pile of data by only providing a tiny piece of data (the leaf hash). In this article I aim to explain Merkle Trees and Merkle proof to both technical and non-technical readers.</p><p>Here are some key terms you should have at the back of your palms as we proceed;</p><p><strong>Hash Functions</strong>: A hash function is like a mathematical blender or paper shredder for digital information. When you put in any data(a word, picture, a file etc ) it outputs a unique, fixed-length string of characters called the hash-value (something like this; 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824). It is also important to note that the virtually impossible to regenerate the original data from the hash value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/0*I1iq4ZMegbC3qjkK" /><figcaption>Hash Illustration — Researchgate</figcaption></figure><p><strong>Root hash:</strong> The root is a commitment of the hashes of the entire dataset in a merkle tree. If any single byte changes anywhere in your data, the root hash changes completely. This makes it perfect for detecting tampering. Now moving on,</p><p>A Merkle tree is an upside down tree structure used to verify a piece of data exists at any point on the structure. Think of it like a family tree diagram where every parent node is a hash of the two children below. Let us make a custom Merkle tree example to drive it home</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*aLL0L5GEZTjFzso6.jpeg" /></figure><p>say we have 4 piece of data in this case 4 users that performed transactions on the blockchain;</p><ul><li>Transaction A: Alice sends 2 ETH to Bob</li><li>Transaction B: John deploys a DeFi contract</li><li>Transaction C: Eve does a token swap on <a href="https://medium.com/u/01bb30729276">Jumper Exchange</a></li><li>Transaction D: Patrick mints an NFT</li></ul><p>To add their individual data to the Merkle Tree you first have to hash (blend/shred) the data to produce a fingerprint of the data. Ethereum primarily uses the Keccak-256 hash function we talk about this in another post. This hashes of our participants form what is known as the “Leaf Node”.</p><p>Hash(Alice’s txn) = 0x81376b…</p><p>Hash(John’s txn) = 0xbc994…</p><p>Hash(Eve’s txn) = 0x75a9cc…</p><p>Hash(Patrick’s txn) = 0x4c6373…</p><p>Now that we’ve gotten the hash of each transaction to obtain the adjacent Parent or Branch node we have to merge the hash of two user and then hash the result of this merge. So it would typically look like this;</p><p>[Parent 1] = Hash(hash(Alice) + hash(John) )= 0x4db792</p><p>[Parent 2] = Hash(hash(eve) + hash(Patrick) ) = 0x7059566</p><p>The final boss is the Root Node which is obtained by hashing the two parent or branch node -</p><p>[Root Node] = Hash(0x4db792.. + 0x7059566..). This is what represents the entire data input on the blockchain and is what is used proof that a certain data exists on the blockchain.</p><figure><img alt="Merkle tree — Wikipedia" src="https://cdn-images-1.medium.com/max/500/0*RykXkGWpU9CngbJF.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Merkle_tree">Merkle tree — Wikipedia</a></figcaption></figure><p>The Merkel proof system is a very important concept used to validate the existence of a particular data or transaction in a large chunk of data, this not only solve the problem of excessive storage requirements for node operators, it also cuts down on transaction/computational cost, improves security and transparency. How this works is by providing the hash of the sister node and the parent hash of the neighbouring nodes.</p><p>So, to prove that Alice’s transaction exists on the block chain, you need to provide the hash of John’s transaction and the parent hash of Eve and Patric transaction. To put this in scale, instead of going through a list or downloading the individual data of 300 transactions, using the merkle system, you only need to provide the hash of about 8–10 transactions.</p><p>The computational/mathematical complexity of a merle proof is 0(log₂n), where n is the number of leaf nodes in the system. So basically in plain text you need 10 hashes to prove a data exists in a list of 1000 transactions, but checking 1,000,000 transactions would only need 20 hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*70_jsmH_spHwoiDE.jpg" /></figure><p>Asides verifying transactions on the block chain Merkle proof has a whole range of usecases we can see its applications in the following;</p><ul><li>Airdrops and Whitelisting: Merkle trees can be used to create a tree of eligible addresseds to verify a users inclusion in a massive list on-chain and significantly reduce the gas fees compared to other tools.</li><li>Cross-chain Bridges: Merkle is also used to verify and secure data transfer across different blockchain networks.</li><li>Distributed Storage(IPFS): P2P file systems like IPFS use merkle to securely share and synchronise data onchain.</li></ul><p>Let’s check this out IRL, Go to <a href="https://etherscan.io/">etherscan</a> and pull up any random Ethereum block. Click on a transaction let’s say it’s transaction #47 out of 150 in that block. To prove that transaction is legit, you don’t need all 150 transactions. You only need like 7–8 sibling hashes (since log₂(150) is roughly 7.2) plus the transaction itself. A bunch of Ethereum node services like Infura will actually send you these proofs with some API calls this way you can verify stuff without having to run your own node.</p><p>In conclusion, Merkle Trees lets you prove a data exist in a huge data set by only checking a number of hashes. Once you understand the concept and know what to look for you can see the practical applications of merkle tree and where they can potentially be applied.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b91a36adc108" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>