<?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 Anjaneya Mishra on Medium]]></title>
        <description><![CDATA[Stories by Anjaneya Mishra on Medium]]></description>
        <link>https://medium.com/@anjaneya.mishra?source=rss-76ee78c9b1eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_1oPlk5tTXJC6yiN6HPbTw.jpeg</url>
            <title>Stories by Anjaneya Mishra on Medium</title>
            <link>https://medium.com/@anjaneya.mishra?source=rss-76ee78c9b1eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:44:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anjaneya.mishra/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[Why Tariffs Are Good (And Why Trump Might Know Exactly What He’s Doing)]]></title>
            <link>https://medium.com/@anjaneya.mishra/why-tariffs-are-good-and-why-trump-might-know-exactly-what-hes-doing-5dbe7b8e31a5?source=rss-76ee78c9b1eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dbe7b8e31a5</guid>
            <category><![CDATA[tariffs]]></category>
            <category><![CDATA[trump]]></category>
            <dc:creator><![CDATA[Anjaneya Mishra]]></dc:creator>
            <pubDate>Wed, 05 Feb 2025 08:48:11 GMT</pubDate>
            <atom:updated>2025-02-05T08:48:11.980Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Why Tariffs Are Good (And Why Trump Might Know Exactly What He’s Doing)</strong></p><p>The news cycle is flooded with talk of tariffs — Donald Trump slapping them on Mexico, Canada, and China like a man making a high-stakes bet at the poker table.</p><p>At first glance, tariffs seem like a bad deal. They drive up prices, making everyday goods more expensive for consumers. No one likes that. Higher costs for businesses and households? Sounds like economic self-sabotage.</p><p>But step back, and you’ll see the strategy. Tariffs make it expensive to import, but Trump isn’t just throwing up trade barriers and calling it a day. He’s pairing tariffs with incentives for companies to manufacture in the U.S. The message is clear: want to avoid tariffs? Move your factories here. Bring back jobs. Rebuild American industry.</p><p>And it might just work.</p><h3>A Playbook That’s Been Used Before</h3><p>Historically, protectionist policies have been a lever for economic transformation. The U.S. itself used tariffs heavily in the 19th century to nurture its industries before becoming a global powerhouse. China did the same in modern times, imposing restrictions on foreign companies to build its own industrial base. Now, Trump is using tariffs as a modern-day economic weapon — not just against foreign competitors, but as a bargaining chip to lure companies back home.</p><h3>The Trade-Offs</h3><p>Yes, tariffs can hurt consumers in the short term. Prices rise, businesses reliant on imports struggle, and trade partners retaliate. But Trump’s gamble is that the short-term pain leads to long-term gain — manufacturing resurgence, job creation, and economic security. If companies bite and move production to the U.S., the effect compounds. More factories mean more jobs, which means stronger domestic demand, which eventually softens the sting of higher costs.</p><h3>Does Trump Know Exactly What He’s Doing?</h3><p>He’s been playing this game for decades. Love him or hate him, Trump understands business. He knows leverage. He knows negotiation. Tariffs aren’t just about trade — they’re about reshaping the economic landscape to his advantage, using pressure to force corporations into making moves they might not otherwise consider.</p><p>The real question is: will it work? If companies start bringing factories back, if jobs flood into the U.S., then the pain of higher prices may well be worth it. If not, well — history will be the judge.</p><p>One thing’s for sure: Trump isn’t acting on impulse. This is strategy. And it’s one worth watching.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dbe7b8e31a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A New Era of Collaboration: The Sociological Impact of Blockchain Technology]]></title>
            <link>https://medium.com/@anjaneya.mishra/a-new-era-of-collaboration-the-sociological-impact-of-blockchain-technology-df732b9d7ce3?source=rss-76ee78c9b1eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/df732b9d7ce3</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[sociology]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Anjaneya Mishra]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 16:48:31 GMT</pubDate>
            <atom:updated>2023-04-25T17:32:08.719Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>#Bitcoin</strong> is the cryptocurrency of pre-eminence, rivaled only by <strong>#Ethereum</strong>. Since the Bitcoin whitepaper was published in 2008, there has been a Cambrian explosion of blockchains and applications.</p><p>A lot of work has gone into understanding and simplifying the underlying technology or the cryptographic algorithms that power blockchains. I too dipped my toes in this <a href="https://medium.com/@anjaneya.mishra/unboxing-bitcoin-db96894069e5">well</a>. However, there is relatively little literature analyzing this technology for its cultural and sociological impact.</p><p>An important condition of any crypto project’s success and continuity is its resistance to attacks. An attack would be if a large organization — government or private — controls enough GPU or resources to “own” the network and publish transactions for themselves. An example would be spending the same bitcoin twice, thereby, creating value where there was none.</p><p>While the technology architecture provides for provisions that help safeguard against such attacks, a very large part of the security is derived from the <strong>#community</strong> supporting the projects. A community made up on technical and non-technical participants.</p><p>Bitcoin early adopters and miners, motivated by their belief in a decentralized system or spirit of entrepreneurship, helped support the technology in its infancy. They either contributed their GPU resources through mining or helped spread awareness and understanding through research, articles, or events — all contributing towards mass-adoption. Vitalik for example wrote about bitcoin for a now defunct website — bitcoin magazine in <a href="https://en.wikipedia.org/wiki/Bitcoin_Magazine">2011</a>.</p><p>These adopters and early protagonists were then rewarded for their efforts. This reward was either directly through the issue of the bitcoin (reward for miners) or indirectly through an increase in price of the crypto. Every burst of activity in the ecosystem would be reflected in the price of cryptocurrency, which like a phoenix, always seems to rise out of the ashes of its last fall. Each flight in price attracting waves of different actors — from institutional investors to the man on the Clapham omnibus.</p><p>What is incredible is that it all started with a white paper — the blueprint written by Satoshi Nakamoto. A model of incentives and deterrents arranged in a manner to protect the value of a coin and an operational model for minting. All miners from that point on (Satoshi included) used <strong>#technology</strong> to productize these algorithms and mint an online currency. Using retail-category processors, regular folk bent technology to their will. They cooperated with one another, separated geographically, and often in complete anonymity in the pursuit of a common goal.</p><p>From a human civilization perspective, this is the first time that the responsibility of creating a purely online organization, was spread equally between so many individual contributors. <strong>#Incentive engineering</strong> and <strong>#game theory</strong> regulated and rewarded the behavior of individual actors. Decisions were made without red-tape or bureaucratic process. The stakeholders were involved in nearly all decisions through democratic consensus — imagine if the drivers voted on Uber’s compensation models.</p><p>As this technology evolves and becomes <strong>#productized</strong>, we now have the means to create a world where you or I may end up contributing towards an organization run almost entirely by incentives. These incentives will be guarded by the intelligence and “votes” of an active community. Theoretically, the more active the community, the more valuable the organization.</p><p>You would have the absolute freedom to contribute in any way and from anywhere. Your “salary” would be a function of discrete work and time. You would have the freedom to pursue any field or invest time across multiple projects. Identity providers will help create a non-fungible digital identity. These identity service providers could be centralized — a standard company — or be a community themselves.</p><p>I think we are beginning to see the rise of <strong>a new kind of organization</strong> — one where individual rights, identities, and roles over the internet are secured by algorithms and towers of math, as opposed to a large, centralized organization like Google, etc.</p><p>For the first time, large scale technological endeavors can be created not by a small group yielding enormous processing power and capital, but by a community of people who see the world the same way. <strong>This is a new age of mass-cooperation!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df732b9d7ce3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The three tiers of a north star metric — II (Quality)]]></title>
            <link>https://medium.com/@anjaneya.mishra/the-three-tiers-of-a-north-star-metric-ii-quality-3482072c7289?source=rss-76ee78c9b1eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3482072c7289</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Anjaneya Mishra]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 16:50:38 GMT</pubDate>
            <atom:updated>2022-12-27T16:50:38.756Z</atom:updated>
            <content:encoded><![CDATA[<h3>The three tiers of a north star metric — II (Quality)</h3><p>In my previous <a href="https://medium.com/@anjaneya.mishra/the-three-tiers-of-the-north-star-metric-part-i-bc4f3b1a7369">article</a>, I laid out the thinking for deriving a north-star product metric for a multi-sided marketplace platform.</p><p>I was the Founder and CEO of a food-technology company that started as a delivery kitchen. A model where we would make food in a large central kitchen and then deliver it to the client’s address.</p><p>In such a kitchen, most of the tasks are manual, and working conditions are tough, not to mention the heat in India. It is often difficult to maintain employee morale. Sustaining a very high degree of quality is challenging and becomes harder as you scale.</p><p>A few months into my journey as a CEO. I realized that the business model was not designed for scale. At the time, we ran three delivery kitchens, a marketing and a logistics vertical. We transitioned to a model where we operated a multi-sided marketplace platform. One that connected food entrepreneurs with customers.</p><p>Here is a tl:dr for the previous article -</p><p>I broke down the north-star metric into frequency and quality metrics. I then divided each of them into two tiers. Each tier was a step towards greater granularity and specificity. The goal was to reflect customer experience. We did that by taking a transaction and understanding the customer action behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wOipoeK11JeE7IVr5V4jA.png" /></figure><p>Now for the quality metrics.</p><p><strong>Tier II metrics: Quality</strong></p><p>The previous article outlines the relationship between transaction metrics and user experience to derive insight. Finally, it draws a link between insight and business decisions.</p><p>We saw that an increase in frequency is a powerful statement that speaks to the product value. For digital businesses, the initiation and completion of a transaction constitute success. Yet, for physical products, success is leaving the customer with a positive feeling.</p><p>Since the goal is “customer success”, any company-wide metric must incorporate feedback. For me that feedback is quality.</p><p>Customers rate their experience on a scale of 1 to 5 for each transaction. This rating covers all aspects of the experience like timeliness, taste, and packaging. The illustration below is a snapshot of this headline rating over three months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*hwm4uLrk7afr7DKEHe9QKw.png" /></figure><p>As you can see, there is no discernable pattern in the customer rating for the period. It is a fair argument that the weekly average metric may not be the best indicator of performance. And so, in search of insight, I started looking at outliers.</p><p>Across 90 days, there were 19 instances of low ratings (1’s and 2’s) and 529 instances of 5’s. Diving deeper into the low ratings, it was clear that there were no patterns there. Sometimes people don’t like your product and you can’t do much about it.</p><p>It made sense to look at the customers behind the ratings to isolate the levers for customer success.</p><p><strong>Tier III: User segmentation</strong></p><p>In the previous article, I segmented customers into cohorts based on transaction frequency. There were two primary cohorts:</p><p>a) users with &gt;1 transaction in a month and</p><p>b) users with a single transaction.</p><p>The “&gt;1 transaction” cohort was further divided into three groups —</p><p>i) &gt;1 per week,</p><p>ii) 1 per week and</p><p>iii) &lt;1 per week</p><p>Analyzing customer ratings across cohorts is valuable. A higher frequency cohort implies a greater degree of customer success. It was natural to expect that the customer rating correlates to transaction frequency. From customer receipts, I had the following data points:</p><p>a) Time of transaction</p><p>b) Dishes ordered</p><p>c) Name, phone number, and delivery address of the customer</p><p>d) The kitchen that fulfilled the order</p><p>Since I had the name and phone number of each customer. I could tag transactions to individuals and create a customer profile. With this profile, I could map the customer experience across various action levers.</p><p>Action levers are items that influence “customer success”. They are:</p><p>a) The Dish</p><p>b) Quality of food (flavor, quantity, and presentation)</p><p>c)Delivery time</p><p>d) The kitchen that fulfilled the order</p><p>Looking at each of these action levers led to the following insights:</p><p><strong>The Dish:</strong></p><p>There were dishes that were clear favorites and increased transaction frequency. For example, the Bemakhan Murg — a play on the popular butter chicken- received a 4+ review 88% of the time. The average dish would have a 4+ rating 65% of the time.</p><p>Of the customers that ordered “Bemakhan Murg”, most (97%) ordered again within the same month. These customers may not order the same dish, but they would transact again.</p><p><strong>Delivery Time:</strong></p><p>Customer ratings also shed light on logistics performance. Cross-referencing ratings with delivery time, we learned our customers were not impatient. For transactions with the same dish, a +15 min delay would cause no decrease in customer ratings. A 30 min caused a 0.5 decrease in 15% of cases.</p><p><strong>Kitchen Operators:</strong></p><p>Each kitchen was operated by different entities. To maximise quality, we created a meritocracy. We did that by directing orders toward the closest and highest-rated kitchen.</p><p>On the front end, the customer would not see which kitchen is fulfilling their order. But each customer rating would be tagged to the facility that made it. We would then calculate the score for each kitchen.</p><p>A marketplace model incentivises the strongest operator. With few opportunities to distinguish themselves, kitchen operators would maximise quality. This way they will maximise their revenue.</p><p><strong>Conclusion:</strong></p><p>Using first principles thinking, being data-driven, and optimizing for customer success were the three pillars to develop a successful north star metric for my organization. It helped me tie together different actors within the organization and direct efforts to achieve our goals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3482072c7289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Three Tiers of the North Star Metric — Part I]]></title>
            <link>https://medium.com/@anjaneya.mishra/the-three-tiers-of-the-north-star-metric-part-i-bc4f3b1a7369?source=rss-76ee78c9b1eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc4f3b1a7369</guid>
            <dc:creator><![CDATA[Anjaneya Mishra]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 13:32:25 GMT</pubDate>
            <atom:updated>2022-12-15T13:35:16.796Z</atom:updated>
            <content:encoded><![CDATA[<p>I was shy of 20 years old when I started my company. I set up a cloud kitchen, a fancy term for a kitchen that receives orders, usually through the internet, prepares the dishes and then delivers them to their customer’s address.</p><p>My kitchen prepared North Indian health food. An oxymoron of sorts. Think of traditional Indian dishes but with re-engineered recipes to make them healthier. My target customer was a member of the middle or high-income segment looking for healthier food alternatives.</p><p>When we started, my company (Orange is the New Green) would receive orders, prepare meals, deliver them and do all the marketing/branding work in-house. There were three distinct activities that we performed—</p><p>a) Prepare food — Operations</p><p>b) Deliver the food — Logistics</p><p>c) Marketing and Branding — Growth</p><p>Growth meant scaling all three verticals. While there existed repeatable processes that would help scale the Logistics and Growth verticals, it was a bigger challenge to figure out how to scale up operations.</p><p>We had grown to three kitchens and it was already a challenge to ensure quality at this scale. There are two reasons for this, firstly, the food we made was complicated to prepare and difficult -though not impossible- to break up into repeatable, and consequently optimisable, processes. Secondly, the labour market was disorganised and it was complicated to set up an incentive structure that would encourage kitchen staff to ensure a high-quality dish each time — again not impossible, but very difficult to implement and scale.</p><p>This is when we pivoted the business model. Playing on my strengths, I realised that I had a valuable customer base and a strong last-mile delivery network. I decided to outsource the operations vertical to third parties.</p><p>We would co-invest with aspirational food entrepreneurs who would in turn sell their products to customers through a multi-sided marketplace product. I bet on product-led growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*szLXMSwhVjvFEolCXhuYMw.png" /><figcaption>Evolution of the business model</figcaption></figure><p>Creating and growing a platform is a very different business than the one I was experienced in. It required an entirely different perspective and thinking pattern. To start, I needed to deeply understand my purpose <br>(or value add) to the parties in the marketplace.</p><p>Using first principles thinking, I first looked at the marketplace model. Any marketplace exists to reduce friction. The friction involved in transacting with other parties in the absence of a marketplace. The quantum of friction reduced is directly correlated with the value created by that marketplace. It became clear that I existed to reduce friction between people who wanted to eat healthy food and the people who wanted to sell healthy food. Great!</p><p>The second order of business was then to define success. If I didn&#39;t know what success looked like, I wouldn&#39;t know what the company was moving towards. Which led me to think about the North star for the company and then the product.</p><p>The idea then became to identify a metric that would quantify the value created by my product. It was simple, an efficient marketplace facilitates more transactions than an inefficient one, following which, the number of transactions would reflect the value created by a marketplace.</p><p>This is what I decided would be our north-star metric and our guiding philosophy started looking something like this —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*8iuUqiCVaVWq_4VE-eKXPg.png" /></figure><p><strong>Tier II metrics: Frequency</strong></p><p>The total transactions metric is easy to measure but doesn&#39;t yield actionable insights. For example, my customer orders went down in January 2021, so what? If I wanted a headline metric to unite the stakeholders of my company, this wasn&#39;t it, so I broke it down into Frequency and Quality. This article focuses on frequency metrics. The next one will deal with Quality metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*dyarW-ulTN_D62Ejw_LBIw.png" /></figure><p>Focusing on Frequency shifts attention to customers’ decision matrix and distribution, which could potentially yield more insights. To understand transaction patterns, we segmented customers into cohorts depending on how frequently they ordered in a month. See below a sample customer distribution between March and Jun 2015.</p><p>Customers that fall into the &gt;1 transaction cohort are those that transacted more than once in the period or repeat customers, the other cohort transacted only once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*a7v1UZJU1jb9RHlPZKnbEw.png" /></figure><p>This simple analysis can yield powerful insights. At the very least, it can lead you in the right direction. You can form hypotheses to test out for example.</p><p>In June, we launched a new “Subscribe” product feature that allowed customers to pay a discounted price upfront for the following 3–7 meals depending on the package they chose.</p><p>All things being equal, an increase in customers who order with greater frequency would indicate the success of this feature. This hypothesis can easily be verified by cross-referencing this data with users who opted for the “Subscribe” product.</p><p><strong>Tier III Metrics: User Segmentation</strong></p><p>If the goal is to create a human-centred product, it helps to understand the user behind the data.</p><p>It helps to double-click into a cohort to understand behaviour better. If we were to zoom into the &gt;1 transaction cohort for June vs March, we get the following chart —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*hiypjZJR8mDa3_t42TCTDw.png" /></figure><p>We see that as a result of the “subscription” feature, our &gt;1 cohort doubled. More interestingly, we see that the shift of users has been from the “1 per week cohort” and the &lt;1 per week cohort is unaffected.</p><p>This is actionable intelligence for decision-making. Action that can potentially tie together different verticals of the company.</p><p>My hypothesis was that the “1 per week” cohort is a feeder for the “&gt;1 per week cohort”, a target cohort that I was seeking to expand. My priority would be to push users from the “Single transaction” and “&lt;1 per week” cohort to the “1 per week” cohort. I will prioritise these actions since the new product feature is already effective in pulling in users to the “&gt;1 per week” cohort.</p><p>With this direction, we can decide on a target for the Month/Quarter. Let’s say that we aim to increase the “1 per week” cohort by 25% in the next three months — by the month of September — I will then cascade this target to the operations, product and marketing teams to create an individual strategy and execution plan.</p><p>I will close out this article here. In part II of this piece, I will look at the various tiers of Quality metrics and the actions they inspire. In future articles, we will talk about how product metrics can help design operations, logistics or marketing strategies and execution plans. Stay tuned!</p><p>As always, would love your thoughts and comments. If you like my work, I would be honoured if you share it in your network :)</p><p>My socials are —</p><p>Linkedin — <a href="https://www.linkedin.com/in/anjaneya-mishra/">Link</a></p><p>Twitter — <a href="https://twitter.com/anjaneyacmishra">Link</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4f3b1a7369" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unboxing Bitcoin]]></title>
            <link>https://medium.com/@anjaneya.mishra/unboxing-bitcoin-db96894069e5?source=rss-76ee78c9b1eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/db96894069e5</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Anjaneya Mishra]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 09:04:54 GMT</pubDate>
            <atom:updated>2022-10-04T10:02:14.185Z</atom:updated>
            <content:encoded><![CDATA[<p>This paper intends to understand bitcoin deeply and bring out aspects of the bitcoin architecture that lend various properties essential to create a secure, non-inflationary, digital currency for online commerce.</p><p>This article picks up each feature of bitcoin and attempts to explain the underlying technology to better understand how bitcoin does what it does.</p><p>Since bitcoin is a digital currency or the currency for the internet, it would be helpful to first define a currency. Currency is a medium of exchange that stores value. For a currency to have any practical application, the value of the currency should remain unchanged. For example, one dollar must always be equal to a dollar. This should be contrasted with the effect of inflation — a situation where the same dollar can procure fewer goods with time.</p><p>A transaction is the exchange of this value held within a unit of currency; paying a banknote to a cashier to buy a product is an example of a transaction. Trust is an essential underlying assumption of each transaction. In the cashier example, both counterparts trust that the value of the note is the same as that represented by it. Currently, large organizations such as Visa or MasterCard help facilitate transactions and maintain trust in the ecosystem by creating pathways to share information and maintaining the integrity of these channels.</p><p>Bitcoin’s innovation maintains the integrity of transactions through cryptographically secured logic and code. Since bitcoin is a secure online currency, you can transact freely on the internet without the need of an organization like Visa to move transaction requests around. If you want to send money to your friend in Nigeria (<a href="https://knowyourmeme.com/photos/510807-nigerian-scams">reference</a>) you can simply send this money without having to interact with any third party.</p><p>To understand why bitcoin has the features that it does, we need to look no further than physical currency. Currency is a representation of value. To secure value, mechanisms need to be there to prevent users from spending the same unit twice, i.e., prevent double-spending. One doesn’t face this challenge with a physical currency like bank notes since the change in physical possession of the note represents a transaction, and initial physical possession is essential to spend. However, in the case of a digital currency, double spending is a major risk, since replication over the internet is very simple.</p><p>The bitcoin architecture is designed to maintain a history of authentic transactions and prevent double-spend transactions. Let’s see how. The only way to reliably confirm that a double-spend transaction doesn’t exist is to be aware of all transactions. Bitcoin solves this double-spend issue by publishing each transaction on each computer on the network. The transactions are bundled up in a file of a fixed size, known as a block — the block size is 1 MB in the case of bitcoin.</p><p>The bitcoin transaction contains two identifying elements — the signature of the private key of the previous owner and the public key of the current owner. The private key represents ownership of your coin. The key can be stored on a dedicated thumb drive, written on a piece of paper (called cold storage), or in your head — a colder storage! 😃 If you own a billion dollars worth of bitcoin and you memorize the key, then every time you travel, you do so with a billion dollars with you, without needing a bank account or a credit card.</p><p>To transact in bitcoin, you first declare ownership of your coin by signing your private key and then entering the recipient’s public key — their bitcoin account. Hence, bitcoin is defined as a series of digital signatures. Each signature assigns the coin to a new owner. This record goes back to when the coin was first minted. Each Bitcoin is minted as a reward to “nodes”. Nodes are Central Processing Units (CPUs) or computers that help support the blockchain. Let’s see how.</p><p>When you sign a bitcoin or spend it, the transaction is published to nodes in the network. Nodes inspect each transaction as they receive them. There is a prescribed criterion for transactions to be accepted, and only those that adhere to this criterion are permitted. Permitted transactions are then included in a memory pool for all nodes to include in blocks that they will compile.</p><p>Not all transactions reach all nodes in the network because of message loss. Each node selects transactions from the memory pool and compiles them into blocks. The nodes then work to validate these blocks through a mechanism called Proof of Work (PoW). Miners select transactions from the memory pool based on age — how long ago the coin was spent — and the quantum of the transaction. Larger and older transactions are prioritized over smaller and younger ones. The first node to complete the PoW process then broadcasts the validated block to all the other nodes for them to verify that the block has been validated and include it in the blockchain.</p><p>Miners operate nodes. They verify that the transactions contained in the block are genuine. Once they are satisfied that the block is genuine, they verify it and signify this by working on compiling transactions for the next block. Through this mechanism, we see that as long as all transactions reach a significant number of nodes, they will eventually be included in a block and so transaction message loss is not a concern.</p><p>The validation process involves the previously mentioned PoW. The application of this PoW algorithm is the core of how bitcoin secures trust over the internet. Proof of Work is a process that leverages cryptography to secure bitcoin transactions.</p><p>Proof of Work traces its history back to 1992. It was created as a way to address email spam. PoW works by making it difficult to complete a certain task — like sending an email for example. In the real world, it most closely resembles a postage stamp. If there were no postage stamps, then anyone would be able to send a letter for free, leading to spam that could overload the postal network.</p><p>Proof of Work involves doing a certain piece of quantified and definite “work” that unlocks a reward for doing the work. In the context of bitcoin, this “work” is rewarded in bitcoin.</p><p>This reward process is designed around a secure hash algorithm (SHA). SHA is an irreversible and deterministic algorithm. Deterministic means that each input has a specific output. Additionally, given an output, it is virtually impossible to reach the input it was computed from. The way this algorithm is designed, it also prevents collision events — when two inputs have the same output.</p><p>Bitcoin uses SHA-256, which converts any input into a random 256-bit output. I found a fun calculator that you can use to “hash” out any input <a href="https://xorbin.com/tools/sha256-hash-calculator">here</a>. Miners hash inputs through the SHA-256 algorithm to meet a certain target. Targets have been defined for a set of blocks. This target is defined in terms of the number of zeros at the beginning of a hash. This means that the miner would have to try multiple inputs to get an output that is below a certain number — the target.</p><p>Having a hash target is a way to scale the difficulty of mining blocks. Difficulty increases exponentially with the increase in the number of 0-bits at the beginning of the target hash. This is done to ensure that the rate at which blocks are validated remains at approximately 10 mins. This target hash is changed every 2016 blocks in order to maintain the block-validation rate with the increase in the network computing power.</p><p>The various input values used by miners to validate the block are not random. This information is found in the block header. The block header is the equivalent of a standard receipt for a package you order online. It contains information about the transactions and sets the base for the input value. The block header contains a property called root hash that contains within it all the transactions of the block. Along with this, it contains the ‘nonce*’*, the hash of the previous block, and the target value for that block. Nonce stands for ‘number used once’.</p><p>Miners start working towards the SHA-256 input value when they select a list of transactions to include in their block. Each selected transaction is then hashed. The output hashes of transactions are paired and then re-hashed. This process is repeated till we arrive at a single root hash which is the output of the hash of each transaction. This data structure is referred to as the merkle tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*Gn4Jl1_zB5qKtQjuD9R3vQ.png" /><figcaption>Picturing a Merkle Tree — <a href="https://bitcoin.org/bitcoin.pdf">Link</a></figcaption></figure><p>Since SHA-256 is deterministic, all the transactions in the block are reduced to a single hash, unique to the transactions in that block. This saves on memory requirements and reduces the time required to verify a block after validation.</p><p>When miners arrive at the root hash, they now have the most essential ingredient to the SHA-256 input. This root hash is concatenated with the previous block’s hash, the timestamp, and the nonce. The nonce starts with 0 for the first input and increases with each successive attempt by the miner to meet the block target. The nonce works as a counter for the number of attempts taken to meet target requirements. Since more attempts point to a higher difficulty level, the nonce is an indicator of the difficulty in mining that block.</p><p>When miners start selecting transactions to form their block, the first transaction is to issue themselves the block reward in bitcoin. This is known as the ‘coinbase transaction’ — the inspiration for the name of the crypto exchange. Since each transaction has to go through other nodes, a miner cannot arbitrarily issue any amount of bitcoin to themselves. Doing so would make the transaction a failed one and the miner would lose all the work they have done to run the PoW process, thus incentivizing miners to remain honest.</p><p>Once a block is validated, bitcoin can be said to be minted and rewarded to the successful miner. When bitcoin first started, the block reward was 50 bitcoin — worth nearly USD 1 Mn as on 24th Sept 2022 — in a period, many would call a “crypto winter”. Crypto winter is a phrase used to refer to a prolonged bear market. This reward halves at a regular cadence of 210,000 blocks, an event that occurs every 4 years on average. <strong>This schedule of reducing rewards gives bitcoin its anti-inflationary characteristic.</strong></p><p>When a successful miner has been rewarded, other miners start work on compiling a new block. As an input to their block, they will use the successful output that validated the previous block — the previous block’s hash. Each block thus refers to the block before it, right up until the first or genesis block, thus, forming a chain of blocks called a blockchain.</p><p>Hence, there are three layers of transaction security in the process of bitcoin mining. The first is when transactions are checked before being included in the memory pool, the second is when nodes work to verify a validated block, and the last layer is when miners choose their previous block hash.</p><p>The miner’s decision to choose which parent block to link to is the core of how bitcoin operates as a consensus system. A miner can link their new block to any block existing on the blockchain. The miner can choose to add his block to the main chain — the one with the most proof of work associated with it (or the longest), or a secondary chain. This is how he chooses to “vote”. This voting mechanism has implications during a fork — an event where a group of nodes decides to create an independent chain. Examples of forks are <a href="https://www.investopedia.com/tech/history-bitcoin-hard-forks/">here</a>.</p><p>The longest chain is also the most secure. If a malicious actor were desirous of changing a transaction in any block, not only would they have to do the work to validate the block, but also the work of all the blocks after it. This actor would also have to add blocks at a rate such that it surpasses the main chain in block size. The larger the main chain, the harder this is to accomplish. This renders a block immune to change and the record contained within it secure. The main chain represents the most significant proof of work effort and ensures that all parties to the bitcoin community agree on a single version of history.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db96894069e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>