<?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 Arundhati Singh on Medium]]></title>
        <description><![CDATA[Stories by Arundhati Singh on Medium]]></description>
        <link>https://medium.com/@arundhatisingh171003?source=rss-bfc76f29019f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sDsyptGmlhsnHOQs6Aw6DQ.png</url>
            <title>Stories by Arundhati Singh on Medium</title>
            <link>https://medium.com/@arundhatisingh171003?source=rss-bfc76f29019f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:37:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arundhatisingh171003/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[Mitigating Arbitrage Using Blockchain — And Why It Changes Everything for SaaS]]></title>
            <link>https://medium.com/@arundhatisingh171003/mitigating-arbitrage-using-blockchain-and-why-it-changes-everything-for-saas-d04b6485293e?source=rss-bfc76f29019f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d04b6485293e</guid>
            <dc:creator><![CDATA[Arundhati Singh]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 02:41:41 GMT</pubDate>
            <atom:updated>2026-06-13T02:41:41.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Let&#39;s say you own a successful SaaS company that provides consumers with very valuable information, including the intrinsic value of a stock based on multiple parameters, including the current traded volume, historical fluctuations (i.e., if it has not IPO’d recently), risk-reward proportions of investing in that stock, how the investments must be allocated/interleaved to minimize this risk, and so on. Let’s assume your platform tells its consumers whether or not they would be able to break even with the amount invested for subscribing to the platform over a year.</p><p>With an increase in the value that your platform can provide comes an increase in the arbitrage opportunity. Arbitrage, in its most primitive form, is “smuggling”. The traditional definition of Arbitrage is to profit from a temporary price difference induced by geological or exchange rate differences. Coming back to our example, let’s say you were able to sell your subscription to a fund management firm that has multiple departments, including people working in the “foreign exchange” department.</p><p>Any guesses for what the right move might be here, for the fund manager?</p><p>Exploit the exchange rates! Purchase the subscription using a currency that is weaker relative to the dollar, even though your investments are dollar-denominated, effectively paying less for the platform than its intended price and widening your profit margin from the get-go.</p><p>Blockchain is the key to solving this issue of Arbitrage. It is an existing issue that has not been mitigated, and I will talk about why and how we are able to remove arbitrage from SaaS using blockchain technologies, which can otherwise induce a significant amount of losses.</p><p>For a quick example of how arbitrage can be utilized to compound the upside, let us assume 2 currencies — currency A and B.</p><p>Let us assume 1 unit of Currency A trades for 150 units of Currency B. The foreign exchange desk at the fund management firm predicts a further fall in the value of Currency B against Currency A by 50 units, thus leading to 1 unit of Currency A being traded for 200 units of Currency B. This informs their decision to purchase the SaaS subscription for 150,000 B — equivalent to 1,000 units of A at the current exchange rate.</p><p>Now consider what happens next. After the value of Currency B drops, the subscription cost in Currency A drops from 1,000 units to 750 units, thus increasing their profit-to-expense ratio by design. Meanwhile, the platform creator has effectively lost 250 units of A in revenue. Thus, the actual upside will be more than the breakeven figures reported by the SaaS product!</p><p>Currency arbitrage, however, is not the only loophole in subscription models. There are many such loopholes, including the high fee charged by centralized authorities on transactions going through them, thus incentivizing payers to consolidate their payments into huge amounts instead of breaking down the payments.</p><p>Any idea why this could be bad for the SaaS service?</p><p>This circles back to the arbitrage case we discussed above. If monthly installments were permissible based on the transaction fee charged, the SaaS company would be able to absorb the losses induced by arbitrage better.</p><p>Here is how —</p><p>If the fund management were to pay monthly installments instead of a fixed fee, the loss incurred from the drop in value of currency B would be absorbed in the monthly installments paid by the fund management in subsequent months, which would be adjusted by the prevailing exchange rate.</p><p>However, if SaaS pushes its consumers to purchase the monthly subscription model instead of the annual model, they may lose their user base due to the high transaction fee that will be incurred consequently.</p><p>Blockchain, here, hits 2 birds with one stone.</p><p>The transaction fee incurred upon using blockchain is considerably low, compared to transactions administered by a central authority. But how can blockchain help mitigate arbitrage while keeping the privacy of these transactions intact?</p><p>Using smart contracts!</p><p>A smart contract refers to a program, essentially a constructor, that is invoked to verify a transaction using its assigned cryptographic hash. While these smart contracts may not be enough for verifying the mismatch between geographical location and the primary currency traded, they can verify whether the wallet to which this cryptographic hash is assigned is valid and that it qualifies for all the T &amp; C of the platform to which the user wishes to subscribe. While this is wonderful to limit the exchange of sensitive credentials on the web, mitigating arbitrage requires participation from regulatory firms.</p><p>Similar to on-chain KYC, regulatory bodies need to partake in being present on-chain to be able to verify granular details, including the central operating body, to catch companies who misuse foreign exchange rates to create arbitrage in the market using their subsidiaries in subpar jurisdictions.</p><p>However, this is not a distant phenomenon. Many countries are actively increasing regulatory presence on-chain for the same reason. For instance, based on <a href="https://lablockchainsummit.com/blockchain-challenges-and-critiques/blockchain-regulations-by-country">Julian Smith</a>’s blog, the “Financial Services Agency” in Japan, the “Monetary Authority of Singapore”, and the “Swiss Financial Market Supervisory Authority” in Switzerland. These regulatory bodies have established strict KYC frameworks for blockchain activity, thus laying the groundwork for the kind of on-chain verification that could structurally prevent subsidiary-based arbitrage in the future.</p><p>By enforcing the verification of jurisdiction at the wallet level alongside KYC data, these regulatory frameworks could ensure that the mode of payment is cryptographically matched to the payer’s current jurisdiction, thus making it programmatically difficult to route these payments through a weaker subsidiary to create arbitrage.</p><p>While jurisdiction and identity verification constraints can be enforced in a centralized system hosting these transactions, such systems and their databases remain vulnerable to manipulation, and the incentives to do so are endless. Thus, decentralized systems are the future of subscription models — irreversible and programmatic verification of transactions coming from a designated crypto wallet enhances security while decentralizing control, making payments fairer.</p><p><strong>References</strong></p><p>Smith, J. (2024, October 17). <em>Revealing blockchain regulations by country: Insights &amp; challenges</em>. LAB Blockchain Summit. <a href="https://lablockchainsummit.com/blockchain-challenges-and-critiques/blockchain-regulations-by-country">https://lablockchainsummit.com/blockchain-challenges-and-critiques/blockchain-regulations-by-country</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d04b6485293e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get Away With Theft (Crypto Version)]]></title>
            <link>https://medium.com/coinmonks/how-to-get-away-with-theft-crypto-version-49245e4c21d0?source=rss-bfc76f29019f------2</link>
            <guid isPermaLink="false">https://medium.com/p/49245e4c21d0</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Arundhati Singh]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 19:00:40 GMT</pubDate>
            <atom:updated>2026-06-11T05:32:46.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*SwTmddXYZRyl9cy8mJhiFQ.jpeg" /><figcaption>A simple analogy presented in the form of a Lego Brick War, where the kid strategically reveals his fort to stay tall and mighty. Image makes more sense as you read through!</figcaption></figure><p>In my previous article, “<a href="https://medium.com/coinmonks/blockchain-and-its-commitment-issues-765aa4768fd8">Blockchain and Its Commitment Issues</a>”, I discussed how colluding miners can work together to occupy a larger share of the hash rate. If they follow the simple blockchain protocol, the colluding party needs to constitute a majority of the miners — i.e., at least 51%.</p><p>However, if we distribute the gains equally among the colluding miners, how do we realize the upside? Easy — occupying a majority of the hash rate (say x%) assures the colluding party of discovering roughly x out of every 100 blocks. It reduces the variance compared to a node working alone. The entire colluding party gets to earn a piece of the cake at more steady intervals. The proportions align over time as the total number of blocks increases.</p><p>But what if the colluding party wanted to increase their reward even further? Or better yet — what if they could trade some of that predictability for earning disproportionately larger shares of rewards using significantly less hash power (considering revenue earned by occupying majority hashrate and following the Bitcoin protocol as the benchmark)?</p><p>This is where we get into the specifics of “How to Get Away with Mm..Theft :)”.</p><p>Collaboration is the key to success, but strategic collaboration is even better. Let’s say my friend and I are competing in a petty Lego Brick War, where we earn cash proportional to the height of whichever fort is chosen as the winner — with one condition: whenever we compare forts (that is, when either kid makes their fort public), we must adopt the taller one as the new standard, rendering all effort on the shorter fort completely worthless (sobs).</p><p>In this case, the kid mimicking the selfish mining pool would utilize the height differential strategically, keeping his fort private and only revealing it at the right moment. Every time the honest kid’s fort gets rejected, all his effort is rendered worthless. The selfish kid makes bank not by building faster, but by timing his reveal to ensure the honest kid’s work never counts. This is one of the ways of gaming the system while still following a globally compliant version of the blockchain protocol.</p><p>Let’s go deeper into how the timing of revealing the blockchain is decided by the selfish miner. It really is a game of numbers — just as the selfish kid assesses his lead to decide when to reveal, the different states (determined by the selfish mining pool’s lead over the honest pool) are organized into a Markov chain by Eyal and Sirer. This helps derive the minimum hash rate the colluding party needs to profit from selfish mining.</p><p>In a distributed system that resolves forks by choosing the longest chain, the private colluding pool can only strategically choose when to make its version public by keeping it secret. Otherwise, the network may adopt the honest pool’s chain, wasting the entire withheld chain and diminishing their earnings.</p><p>Now let’s come to the different states that decide what action to take. I will describe the expected value of each state, which together help determine the minimum hash rate threshold required for selfish mining to be profitable.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Note</strong>: The subscript numbers (e.g., S₀, S₁, S₂…) indicate the <strong>lead</strong> the selfish pool currently has over the honest pool in terms of private blocks.</p><ul><li><strong>α</strong> = probability that the selfish pool discovers the next block.</li><li><strong>1 − α</strong> = probability that the honest pool discovers the next block.</li><li><strong>γ</strong> = probability that, in the event of a tie (both pools publish competing chains of equal length), honest miners mine on the selfish pool’s chain first.</li><li><strong>1 − γ</strong> = probability that honest miners continue mining on their own (public) chain.</li></ul><p>The number of blocks earned in each phase within a pool is subject to whether or not we publish it. The private pool is typically the one that publishes its forked chain strategically, timing its reveal to maximize the blocks earned while rendering the honest pool’s work worthless. The honest pool, on the other hand, only ever earns 1 block at a time, accounting solely for the block just discovered, never its accumulated past work, since it never gets the chance to publish its full chain before the selfish pool overtakes it.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xYxKrxtyvE5odWm5IXX61w.png" /><figcaption>Markov Chain</figcaption></figure><p><strong>S₀ (the “square one” state): </strong>This is the state where the selfish pool holds no private blocks and both pools are even. It is typically encountered at the beginning, or after the selfish pool publishes its withheld chain, forcing the honest pool to discard its own and adopt the longer one, resetting both to square one.</p><ul><li>Selfish mines next block → blocks earned in selfish pool = 1<br>EV: α × 1 × P(S₁) = <strong>α </strong>× <strong>P(S₁)</strong></li><li>Honest mines next block → blocks earned in selfish pool = 0<br>EV: (1−α) × 0 × P(S₀) = <strong>0</strong></li><li>Honest mines next block → blocks earned in honest pool = 1<br>EV: (1−α) × 1 × P(S₀) = <strong>(1−α) × P(S₀)</strong></li></ul><p><strong>S₀’ (The “race condition”): </strong>This is the state where the honest pool catches up with the selfish pool, forcing a tie. The selfish pool must now play its next move carefully to ensure the honest pool’s efforts get discarded. Who wins the race comes down to the value of γ. If γ equals 1, honest miners will always build on the selfish pool’s chain during the race in the case that they discover the next block, meaning the selfish pool wins every tie.</p><p>What would be the minimum threshold for the selfish mining pool in this case?</p><p>In the contrary case, where the selfish pool discovers the next block first, it earns two blocks — the tied block it had been withholding and the newly discovered one. It must publish its chain at this moment to cash out both blocks, since waiting any longer risks losing everything if the honest pool takes the lead.</p><ul><li>Selfish mines next block → blocks earned in selfish pool = 2 (the tied block + new one) EV: α × 2 × P(S₁) = <strong>2α × P(S₁)</strong></li><li>Honest mines next block → lead drops to 0, both chains tied, race begins (γ case — selfish wins race, earns 1)<br>EV: (1−α) × γ × 1 × P(S₁) = <strong>(1−α)γ × P(S₁)</strong></li><li>Honest mines next block → lead drops to 0, selfish immediately publishes, race begins (1−γ case, honest chain wins, selfish pool earns 0)<br>EV: (1−α) × (1−γ) × 0 × P(S₀) = <strong>0</strong></li><li>Honest mines next block → lead drops to 0, selfish immediately publishes, race begins (1−γ case, honest chain wins, honest pool earns 1)<br>EV: (1−α) × (1−γ) × 1 × P(S₀) = <strong>(1−α)(1−γ) × P(S₀)</strong></li></ul><p><strong>S₁ (narrow lead): </strong>This is the state where the selfish mining pool is 1 block ahead of the honest pool, i.e., it is withholding 1 block from the honest pool. This case could either lead to P(S₂) or P(S₀’), based on whether or not the selfish mining pool discovers the next block. If the honest pool catches up in this state, the selfish pool will feel threatened and immediately publish its withheld block to force a tie, entering the race condition at S₀’. From there, the outcome depends on γ.</p><ul><li>Selfish mines next block → blocks earned in selfish pool = 1 <br>EV: α × 1 × P(S₂) = <strong>α × P(S₂)</strong></li><li>Honest mines next block → lead drops to 0, selfish immediately publishes, race begins (γ case — selfish wins race, earns 1)<br>EV: <strong>(1−α) × γ × 1 × P(S₀’)</strong></li><li>Honest mines next block → lead drops to 0, selfish immediately publishes, race begins (1−γ case, honest chain wins, selfish pool earns 0)<br>EV: <strong>(1−α) × (1-γ) × 0 × P(S₀’) = 0</strong></li><li>Honest mines next block → lead drops to 0, selfish immediately publishes, race begins (1−γ case, honest chain wins, honest pool earns 1)<br>EV: <strong>(1−α) × (1-γ) × 1× P(S₀’)</strong></li></ul><p><strong>S₂ (absolute lead): </strong>This is the state where the selfish pool is 2 blocks ahead of the honest pool, i.e., it is withholding 2 blocks from the honest pool. This case could either lead to S₃ or S₀, based on whether or not the selfish mining pool discovers the next block. If the selfish pool were to discover the next block, it would move from S₂ to S₃, having earned a single block since there is no need to redeem its efforts and computation just yet!</p><p>However, if the honest pool discovers the next block, it will feel threatened and publish its chain, leading to S₀, square one.</p><ul><li>Selfish mines next block → blocks earned = 1<br>EV: α × 1 × P(S₃) =<strong> α × P(S₃)</strong></li><li>Honest mines next block → selfish immediately publishes a 2-block lead, resetting the state to <strong>S₀ </strong>→ blocks earned = 2<br>EV: (1−α) × 2 × P(S₀) = <strong>2(1−α) × P(S₀)</strong></li></ul><p>Thus, it really just becomes a game of when to redeem the pool’s efforts for building the secret chain. The higher the threat from the honest pool, the greater the chances of redeeming efforts to ensure we don’t “lose it all”.</p><p>Coming back to my previous question of what the minimum threshold should be if γ were equal to 1. Well, there wouldn’t be a minimum threshold! We could have any number of miners in the selfish mining pool, and the pool would still be able to stay ahead at all times, since in the race condition, honest miners always build on the private chain’s block with a probability of 1.</p><p>In reality, γ is decided by how quickly and how many miners in the honest pool the selfish mining pool is able to reach with its version of the chain. If the honest miners see the selfish pool’s chain first and happen to discover the next block, they will add that block to the selfish pool’s chain, putting it at a lead and helping it redeem its efforts and computation.</p><p>This allows the selfish pool to manipulate the value of γ by allocating the majority of the hardware in their pool solely to broadcast their blockchain to the honest pool during a race condition, thus artificially bringing the value of γ close to 1 or at least higher than what it was before, thus reducing the minimum threshold for the number of members needed in the selfish mining pool.</p><p>To counteract this loophole, Eyal and Sirer in their paper proposed setting the value of γ to 1/2. This way, miners in the honest pool make an equal choice between whether to append their discovered block to the selfish mining pool’s chain or their own, regardless of how strong the network is, increasing the minimum threshold to a decent value of 25% (anything is better than no threshold at all!).</p><p>Eyal and Sirer calculate the minimum threshold by finding the value of α at which the expected blocks earned by the selfish mining pool divided by the total expected blocks earned across both pools exceeds α, which is the selfish pool’s hash rate and what it would have earned under honest mining. When this ratio exceeds α, selfish mining becomes more profitable than playing by the rules.</p><p>Well, if you were an honest miner watching your peers get ahead of you, would you join their scam? This is the biggest threat to decentralized systems — the exploitation of loopholes in protocols that entice all the nodes to join in, making it centralized eventually!</p><h4><strong>References</strong></h4><ol><li><strong>Eyal and Sirer’s paper</strong> — “Majority is not Enough: Bitcoin Mining is Vulnerable” by Ittay Eyal and Emin Gün Sirer, 2014. <a href="https://arxiv.org/abs/1311.0243">https://arxiv.org/abs/1311.0243</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49245e4c21d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/how-to-get-away-with-theft-crypto-version-49245e4c21d0">How to Get Away With Theft (Crypto Version)</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain and Its Commitment Issues]]></title>
            <link>https://medium.com/coinmonks/blockchain-and-its-commitment-issues-765aa4768fd8?source=rss-bfc76f29019f------2</link>
            <guid isPermaLink="false">https://medium.com/p/765aa4768fd8</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Arundhati Singh]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 22:11:06 GMT</pubDate>
            <atom:updated>2026-06-08T05:01:27.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*ENipnLxIe16IZE9J0dARiw.jpeg" /><figcaption><strong>This farmer’s confusion will make a lot more sense by the end.</strong></figcaption></figure><p>We have taken a huge leap, starting from the barter system to generating paper notes to transact for goods. The barter system, funnily enough, can be thought of as the closest cousin of Bitcoin, since both these forms of exchange include decentralized transactions without a centralized authority overseeing them to ensure they are atomic. Hence, over the past 5,000 years, we have taken a leap from decentralized systems to centralized systems, and back to decentralized systems again. Moreover, we were eventually able to make the centralized systems of paper currency electronic, encouraging the scaling up of businesses and increasing their customer base to the whole world via the internet.</p><p>It would be fair to make a direct comparison between blockchain and the barter system, given they share a common thread — they are both decentralized. If we were to think of the downsides of the barter system, there are many. It was highly localized; neither did each person have access to a customer base willing to exchange, say, “a horse for 10 bags of wheat”. However, in blockchain, we are exchanging cryptocurrencies with each other (can exchange multiple currencies with each other, or exchange currencies for money depending on the exchange rate), without a central entity overseeing this transaction. While the brains behind this, <a href="https://bitcoin.org/bitcoin.pdf">Satoshi Nakamoto</a>, was able to build this wonderful “internet-supported” decentralized system, the real question is whether the benefits of a decentralized system outweigh the security vulnerabilities introduced by the coordination of multiple blockchain nodes — artificially resulting in an eventually consistent blockchain that does not include transactions that have already been executed, thus resulting in a transaction showing as complete even though the payer never lost money and the payee never received money (a.k.a. double spending).</p><p>The blockchain, after all, is a “Big Mathematical Beauty” (the only ‘Big Beautiful’ thing I’ll be talking about), and I say that having built a prototype myself. Before I dive into the specifics of my own project, I want to talk a little more about how this decentralized system works, and I am willing to confess the few errors I made during its architectural ideation.</p><p>The decentralized system relies on a few artifacts that make transactions irreversible, thus negating the possibility of a “half-done” transaction, which would be another variation of double spending. While rollbacks are impossible by design, vulnerabilities in the system can still produce the same damaging outcome — the point where things get interesting. I’ll come back to how that vulnerability can be combated later on, or in a follow-up article. But for now, I would like to focus on the upsides of decentralized systems (blockchain), mainly emphasizing how these rollbacks are prevented.</p><p><em>The chain of events can simply be explained as follows </em>—</p><p>Every transaction has a set number of attributes, including a digital signature generated by the private key of the payer and the public key of the payee. It would be helpful to understand why this is so, instead of simply assuming it as a given. Each blockchain node stores a local “linked list” that need not be consistent with the version stored in other blockchain nodes. This is a common feature in distributed systems, where inconsistent data structures are stored across all nodes, eventually becoming consistent via protocols like the “<a href="https://highscalability.com/gossip-protocol-explained/">gossip protocol</a>”, as can be seen in Kafka and other big data tools. In fact, the whole of blockchain can be thought of as very similar to Kafka, including the broadcasting of events to multiple queues, the sequential ordering of those events, and the eventual consistency of data across all participating nodes. Much like Kafka’s commit log, the blockchain maintains an append-only record of transactions. While they share a lot of mechanical similarities, Kafka is <em>not </em>decentralized. While Kafka guarantees ordering via “<a href="https://www.confluent.io/learn/zookeeper-kafka/">Zookeeper</a>”, the ordering in blockchain is contingent on the ordering of timestamps on the node that successfully solved the PoW puzzle and hosts the longest blockchain (this will become clearer in the next two scenarios).</p><ol><li>Now, let us assume a scenario where there are only two nodes — Node A and Node B — that store inconsistent versions of the transaction history. Person A wants to execute transaction <em>i</em> with Person B. Node A happens to solve the Proof-of-Work (PoW) puzzle faster than Node B, and hence Node A appends the transaction to its own local linked list before broadcasting it to Node B.</li><li>There could be two specific scenarios in the scenario mentioned in Point 2. In the first, the timestamp of the previous block in Node A to which transaction <em>i</em> gets appended is an earlier timestamp than the latest timestamp of the transaction on Node B. Since Node A was able to solve the PoW puzzle first and, for the sake of this example we will assume it hosts the longest blockchain version, the blocks with timestamps falling between Block A(n-1) and the timestamp of transaction <em>i</em>, which were originally not in Node A, will get dissolved/orphaned from the eventually consistent version of the blockchain adopted by both nodes after appending transaction <em>i</em>. However, if it were the other way around, where the latest timestamp on Node B was earlier than that of Node A prior to appending transaction <em>i</em>, Node B would need to pull those missing blocks from Node A via the <a href="https://highscalability.com/gossip-protocol-explained/">gossip protocol</a> before Node A broadcasts transaction <em>i</em> to Node B. Hence, all in all, the chain that represents the <em>most cumulative computational effort</em> (i.e., the longest chain built through the most successful Proof-of-Work solutions) decides the <em>fate of each transaction</em>.</li><li>For all those who are confused about the PoW puzzle that is to be solved by each of the blockchain nodes, it can simply be understood as a “game” or a “puzzle piece” where you are to guess the number of zeroes that are prepended in the hashed version of a specific number (hashed using SHA-256). This is the component of distributed systems alongside the hosting of a peer-to-peer distributed network that consumes the most amount of compute and hence implicitly consumes the most amount of power, water, and electricity.</li><li>Now, let us carefully simulate an attack in this decentralized system. In the case where my friend and I consumed a majority of the power supplied to the entire peer-to-peer distributed system, for the sake of this scenario, we must consider a larger number of participants. For simplicity, let us consider three participants — me, my friend, and a third random blockchain node. Let us say Person A has the resources to collude with my friend and me, while Person B is naive and simply wants the transaction to go through! My friend and I are indeed consuming a majority of the CPU power (66%). Person A would be considered lucky if he manages to execute a transaction <em>i</em> without a deduction from his crypto wallet!</li><li>I (Block x) begin colluding with my friend (Block y) on how we can somehow dissolve transaction <em>i</em> from the eventually consistent blockchain. Block x unexpectedly solves the PoW puzzle and broadcasts it to Block y — but the version of the blockchain we are privately growing does not include transaction <em>i</em>. At this point, two competing chains exist — the honest chain, held by the third node, which includes transaction <em>i</em>, and our fraudulent chain, held by Block x and Block y, which does not!</li><li>The network always adopts the longest chain as the truth. Since Block x and Block y together control 66% of the <a href="https://www.dci.mit.edu/projects/51-percent-attacks">hash rate</a> (a.k.a. a majority of the total computational power on the network), we will statistically solve subsequent PoW puzzles faster than the honest node controlling only 33%, thus aggressively growing our fraudulent chain until it becomes the longest. Once it does, the network adopts our version as the truth, transaction <em>i</em> gets dissolved, Person A never loses his crypto, and Person B never receives it. This is what is known as the <a href="https://www.dci.mit.edu/projects/51-percent-attacks">51% attack</a>!</li></ol><p>(Please note that the <a href="https://arxiv.org/pdf/1311.0243">linked paper</a> suggests the upper threshold that enables a double-spending attack can be as low as 33 and a third percent, which is far below the 50% requirement for a classic attack. However, for ensuring intuitiveness and uniformity across the article, we will assume the lower threshold for double-spending to be 51%. We can dive deeper into this in the subsequent articles)</p><ol><li>The next time you want to execute a transaction, you might want to wait for at least <a href="https://blog.lopp.net/how-many-bitcoin-confirmations-is-enough/">6–10 confirmations</a> (for transactions ranging around $10,000 to $1,000,000 according to the linked website) from blockchain nodes confirming that your transaction has successfully been appended to the blockchain. This in turn reduces the chances of a <a href="https://www.dci.mit.edu/projects/51-percent-attacks">51% attack</a>, since most nodes have already accepted the broadcasted transaction — giving it greater statistical importance and making it far more likely to be chosen as the eventually consistent blockchain!</li></ol><p>I will be talking more about my implementation of Satoshi Nakamoto’s paper in the next article, and as promised, I will be revealing the errors in my architectural ideation. I wanted to get a little creative by utilizing lambda functions (serverless architecture) to solve the PoW puzzles. Any guesses for why that would not work? Check out my next article if you’re still curious — or just ask Chat haha.</p><p>Funnily enough, the 51% attack could also be realized in the barter system, which only brings these two systems closer in commonality than one might otherwise assume. If I were to send a pigeon to a faraway land with a small chit stating that I am willing to ship 12 bags of grain in exchange for 7 cows, but never ship those commodities in the first place, while the 7 cows make their way to me, would that not be double-spending in its most ancient form?</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>References</strong></p><ol><li>Nakamoto, S. (2008). <em>Bitcoin: A peer-to-peer electronic cash system</em>. <a href="https://bitcoin.org/bitcoin.pdf">https://bitcoin.org/bitcoin.pdf</a></li><li>High Scalability. (2023). <em>Gossip protocol explained</em>. <a href="https://highscalability.com/gossip-protocol-explained/">https://highscalability.com/gossip-protocol-explained/</a></li><li>Confluent. (n.d.). <em>ZooKeeper and Apache Kafka explained</em>. <a href="https://www.confluent.io/learn/zookeeper-kafka/">https://www.confluent.io/learn/zookeeper-kafka/</a></li><li>MIT Digital Currency Initiative. (n.d.). <em>51% attacks</em>. <a href="https://www.dci.mit.edu/projects/51-percent-attacks">https://www.dci.mit.edu/projects/51-percent-attacks</a></li><li>Eyal, I., &amp; Sirer, E. G. (2013). <em>Majority is not enough: Bitcoin mining is vulnerable</em>. arXiv. <a href="https://arxiv.org/pdf/1311.0243">https://arxiv.org/pdf/1311.0243</a></li><li>Lopp, J. (2023). <em>How many Bitcoin confirmations is enough?</em> <a href="https://blog.lopp.net/how-many-bitcoin-confirmations-is-enough/">https://blog.lopp.net/how-many-bitcoin-confirmations-is-enough/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=765aa4768fd8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/blockchain-and-its-commitment-issues-765aa4768fd8">Blockchain and Its Commitment Issues</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>