<?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 Zak Ayesh on Medium]]></title>
        <description><![CDATA[Stories by Zak Ayesh on Medium]]></description>
        <link>https://medium.com/@zakayesh?source=rss-fd5b7c5e3e65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O91YsUEHeEBQvsUcHBbZVw.jpeg</url>
            <title>Stories by Zak Ayesh on Medium</title>
            <link>https://medium.com/@zakayesh?source=rss-fd5b7c5e3e65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:37:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zakayesh/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[Building My First Chainlink Adapter]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/chainlink-community/building-my-first-chainlink-adapter-996ab51dfe9?source=rss-fd5b7c5e3e65------2"><img src="https://cdn-images-1.medium.com/max/1229/0*HLD-Cajn2k2jResN" width="1229"></a></p><p class="medium-feed-snippet">An easy way to contribute to the Chainlink code</p><p class="medium-feed-link"><a href="https://medium.com/chainlink-community/building-my-first-chainlink-adapter-996ab51dfe9?source=rss-fd5b7c5e3e65------2">Continue reading on Chainlink Community »</a></p></div>]]></description>
            <link>https://medium.com/chainlink-community/building-my-first-chainlink-adapter-996ab51dfe9?source=rss-fd5b7c5e3e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/996ab51dfe9</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[chainlink-english]]></category>
            <dc:creator><![CDATA[Zak Ayesh]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 15:24:17 GMT</pubDate>
            <atom:updated>2021-01-25T20:03:54.306Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Chainlink and Randomness: A Needed Security Layer]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/swlh/chainlink-and-randomness-a-needed-security-layer-28ceff098c52?source=rss-fd5b7c5e3e65------2"><img src="https://cdn-images-1.medium.com/max/1200/0*MiuAU6yu7u_oQ-ke.jpg" width="1200"></a></p><p class="medium-feed-snippet">The Missing Security Feature from Chainlink&#x2019;s Roadmap</p><p class="medium-feed-link"><a href="https://medium.com/swlh/chainlink-and-randomness-a-needed-security-layer-28ceff098c52?source=rss-fd5b7c5e3e65------2">Continue reading on The Startup »</a></p></div>]]></description>
            <link>https://medium.com/swlh/chainlink-and-randomness-a-needed-security-layer-28ceff098c52?source=rss-fd5b7c5e3e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/28ceff098c52</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Zak Ayesh]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 02:28:11 GMT</pubDate>
            <atom:updated>2020-08-17T02:02:38.978Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Blockchain and DAO’s: Value in Decentralized Organizations]]></title>
            <link>https://medium.com/@zakayesh/blockchain-and-daos-value-in-decentralized-organizations-895e8db88cbc?source=rss-fd5b7c5e3e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/895e8db88cbc</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Zak Ayesh]]></dc:creator>
            <pubDate>Wed, 29 May 2019 20:19:25 GMT</pubDate>
            <atom:updated>2020-01-23T22:50:37.408Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blockchain and DAOs: Value in Decentralized Organizations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IWdAL34LHDpgZTdy" /><figcaption>Photo by <a href="https://unsplash.com/@matt_j?utm_source=medium&amp;utm_medium=referral">Matthieu Joannon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a blockchain enthusiast that has tried to explain the benefits of blockchain and smart contracts many times; there’s a lot to explain. Decentralized protocols are complicated and confusing so why not just rely on centralized business models? Please note, when referring to decentralization, I am referring to <a href="https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274">political and architectural decentralization</a>.</p><p>In this article I will provide an argument on the inherent value of blockchain and decentralized organizations due to: automatic execution of agreements, unprecedented competition, transparency, increased operational efficiency, and enormous network effects. Finally I will discuss some common counterpoints to decentralized organizations. As always, I welcome critical feedback and try to keep an open mind. If you disagree, let your opinion be known and lets have a fruitful discussion! Now, let us the lay the foundation of why decentralization in blockchains is a valuable property.</p><h4>Blockchain, Bitcoin, Ethereum and DAO’s</h4><p>Let us begin by covering a <em>brief</em> history and development of blockchain technology and the decentralization movement (<a href="https://medium.com/coinmonks/a-brief-history-of-blockchain-70c519d3053">at this point there are many great articles written on this history</a>). October 30th, 2008 marked the advent of Bitcoin by the anonymous Satoshi Nakamoto when they published the <a href="https://bitcoin.org/bitcoin.pdf">Bitcoin Whitepaper.</a> The global economy was reeling from the effects of the 2008 housing crisis and many lost faith in the banking industry. Satoshi responded by proposing a decentralized system, powered by the complex beast that is a blockchain, that would allow society to store and transmit value electronically without relying on the banks as middlemen.</p><p>Five years later, in late 2013, Vitalik Buterin (then just 19 years old) would propose the Ethereum blockchain. The goal of Ethereum was to take the decentralization aspect of Bitcoin and allow software developers to generalize decentralization to <em>any</em> application, not just to store and transmit value. In order to accomplish this, Ethereum implemented a programming language and virtual machine on top of its blockchain; Solidity and the Ethereum Virtual Machine (EVM) respectively. This freedom to develop any decentralized application on top of a blockchain led to the concept of the Decentralized Autonomous Organization (DAO).</p><p>A DAO is essentially an entire business that has no central authority and is managed completely by smart contracts. It is an organization where every stakeholder can profit and have input on its development. You may hear the term decentralized application (dapp) which is a more basic form of a DAO. A dapp can be considered any decentralized application (no matter how simple), while a DAO can be considered a dapp relying on, and being governed by, its operators. Now let’s look at how DAOs can add value over traditional centralized organizations.</p><h4>Value in DAOs vs. Traditional Organizations</h4><ol><li><strong>Automatic and Fair Execution of Agreements (a.k.a. <em>Trustless Execution</em>)</strong></li></ol><p>In Bitcoin one of the most interesting properties in the decentralized protocol is the guaranteed execution of value transfer (assuming you actually have the funds and after probabilistic finality is reached of course). Let us take insurance as an example of how this guarantee could be generalized and useful in other applications. When you sign up for an insurance plan you agree to pay a certain amount per month (the premium), and if certain agreed upon events occur that cause a loss to the plan holder (such as a hurricane, medical expense, theft) the insurance company will cover all or part of that expense.</p><p>However <a href="https://www.justice.org/sites/default/files/file-uploads/InsuranceTactics.pdf">insurance companies have a history of delaying and skirting payouts to their customers when they need it most.</a> A properly designed decentralized insurance protocol could avoid this by automating claim payouts and using game theory to properly decentralize the work needed to process claims. <a href="https://etherisc.com/">Etherisc</a> (<a href="http://hurricaneguard.io/">and a product built on their protocol; hurricane guard</a>) are a good example of a project working towards a decentralized insurance protocol on top of Ethereum.</p><p>2. <strong>Unprecedented Competition Reducing Prices</strong></p><p>DAOs typically involve (or hope to eventually involve) decentralized nodes competing to complete some type of value adding work for the user of the protocol. As I discussed in my <a href="https://medium.com/@zakayesh/quantstamp-value-in-decentralized-smart-contract-security-eafcbeb4d539">Quantstamp article,</a> nodes participating in their automated security auditing protocol compete to complete computationally intensive scans of smart contracts to find possible security flaws. This causes all the nodes to compete on the price of the audit and, once sufficiently decentralized, should drop the price of an audit to the point it is marginally above the cost to actually perform the audit. When the accessibility of running a node is low, anyone can essentially perform the service and earn income, encouraging more participants to join (I elaborate more on this in part of five of this section).</p><p>3. <strong>Transparency Reducing Information Asymmetry</strong></p><p><a href="https://en.wikipedia.org/wiki/Information_asymmetry">Information asymmetry</a> can result in traditional companies with higher quality data than the public, greater volumes of information, and a better understanding of this data utilizing this power imbalance to offer consumers less than efficient prices. It also makes it much more difficult for consumers to pursue legal action against companies when they do not have access to the same level of information as said companies. Referring to insurance companies again, plans are typically priced based on complex mathematical models of risk that are opaque to the consumer. Thus it can be very difficult for the consumer to determine if their rates are fair, and insurance companies can more easily <a href="https://www.economicsonline.co.uk/Business_economics/Cartels.html">form cartels to overprice their services</a>. How could the average person hope to discover an agreed upon pricing structure when everything is so opaque?</p><p>A DAO could force the insurance plan providers to show the risk model they use to value the price of the plan, and consumers could then pick the plan they find the most fair. At the same time, insurance providers are incentivized to create plans that are profitable (or they will go out of business) while still being competitive to attract customers (yeah I know this is economics 101 bear with me). This also results in it being much more difficult for providers to form cartels as it would be much more apparent they were forming with the transparency of a blockchain.</p><p>4. <strong>Increasing Operational Efficiency and Reduction of Coordination Costs</strong></p><p>In any particular process we can define the individual process steps as either: value adding, value enabling, or waste. A value adding step in a process is a step the customer is willing to pay for. Value enabling may not directly be something the customer wants to pay for but enables the value adding steps to exist or makes them more efficient. Last is waste, which could be completely removed out of a process with proper design. Let’s take an example of the manufacturing of an automotive widget.</p><p>Forming the widget out of raw material can be considered value adding, it’s what the customer desires and pays for. Proper tracking of the status of the widget is value enabling; the customer may not be paying you to do that directly, but it is needed to provide the customer good quality parts at the correct quantity. Finally having the parts transported back and forth between the different stations in the manufacturing plant is waste, the customer would rather not pay for this (and will look for a manufacturer who reduces this waste and thus cost). Companies look to completely remove wasteful process steps, reduce value enabling steps, and improve the efficiency of value adding steps.</p><p>Job positions in a company can also be viewed in the same light. In the making of automotive widgets, you have the operators running/programming the machines (who are actually making the part) and the designers/engineers conceptually creating new products; these are examples of value adding roles. Managers, accountants, finance teams, and supply chain specialists are examples of value enabling roles (in a manufacturing environment); they do not directly contribute to the creation of what the customer is paying for, but without them the company would not be able to operate efficiently or scale. And more rarely you can find positions in a company that are essentially a complete waste (“What does Jim do again? He’s always in the break room or on the toilet”).</p><p>As companies scale they tend to composes less of value adding positions (as a percent of total employment ) and more of value enabling and wasteful positions. These increased amount of positions that are not value adding are due to <a href="http://portal.idc.ac.il/en/main/research/caesareacenter/annualsummit/documents/as12-5.pdf">increased coordination costs</a> (the costs to manage an organization). As a worst case scenario a company may even face <a href="https://www.investopedia.com/terms/d/diseconomiesofscale.asp"><em>diseconomies of scale</em></a>. Many of these coordination costs can be automated in the form of well designed smart contracts and game theory. Smart contracts essentially manage the participants in a DAO while incentivizing the participants to act as needed and dis-incentivizing any <a href="https://en.wikipedia.org/wiki/Byzantine_fault">byzantine behavior</a>.</p><p>5. <strong>Enormous Network Effects from the Freedom of Access and Open-Source Code</strong></p><p>Finally, in combination with the above points, the open nature of blockchains and DAO’s can create <a href="https://en.wikipedia.org/wiki/Network_effect">unprecedented network effects</a>. As various cash-in/cash-out systems are built around crypto, the need for a bank account to access all of these online services will begin to disappear, allowing access to these services by the b<a href="https://www.centerforfinancialinclusion.org/new-global-findex-sixty-nine-percent-of-global-population-is-banked/">illions of unbanked around the world.</a> Even KYC and AML laws will become increasingly difficult to enforce as<a href="https://itnext.io/build-a-simple-ethereum-interplanetary-file-system-ipfs-react-js-dapp-23ff4914ce4e"> front ends can be decentralized </a>away (there would be no central servers a government,or anyone, could shut down).</p><p>The open source nature of smart contracts also encourages users to utilize a DAO/dapp that is the most efficient design for the intended use case. For example, if a specific dapp takes 20% of all fees that go to the creators original address, then stakeholders can simply fork the code and remove the fee. Without the fee, operators can provide their services cheaper and users will logically move away from the more expensive less efficient service.</p><p>Thus I theorize that clear winners will emerge for specific use cases and as the market spirals to maximum efficiency, these will gather most of the network effects at a global scale. Please note I am not arguing that there will necessarily be one “master chain/protocol” to rule them all, but specific chains and protocols will dominate certain use cases. This is similar to how most of us use Google today, but there are still (much smaller) alternative search engines that focus on <a href="https://duckduckgo.com/">properties such as privacy</a>.</p><h4>Criticisms of Smart Contracts/DAOs</h4><ol><li><strong>Smart Contracts are Hack-Able</strong></li></ol><p>This is a belief often espoused by purported <a href="https://medium.com/coinmonks/top-10-bitcoin-maximalist-tweets-of-all-time-8857bc28767c">Bitcoin maximalists,</a> and the <a href="https://medium.com/swlh/the-story-of-the-dao-its-history-and-consequences-71e6a8a551ee">infamous DAO hack is often used as the main point</a> in favor of this view. While trivially true (nothing is completely 100% secure) this does not mean we cannot engineer better security for smart contracts. The<a href="https://www.smartcontractsecurityalliance.com/"> smart contract security alliance </a>was formed to bring better security standards to the industry. As the space evolves, security will continue to get stronger and hacks will become increasingly more difficult. In addition please remember, <a href="https://www.zdnet.com/article/us-government-releases-post-mortem-report-on-equifax-hack/">trusting centralized organizations is also not always the safest be</a>t in regards to keeping your data hacker proof.</p><p>2. <strong>Smart Contracts are Designed and Programmed by Humans</strong></p><p>If smart contracts are designed and programmed by humans, and attempt to organize humans in a fair way, won’t they also contain flaws brought on by human nature? Of course this is true. There is no perfect system that everyone will find absolutely fair, and Blockchain/DAOs are no different. As I argue in point five above, due to the open and decentralized nature of blockchains, the market should spiral to the most fair and efficient solutions available for a given problem, getting as close as possible to “completely fair”. If the definition of what is “fair” ever changes, then the blockchain and DAOs can also change via forking of the protocols. Humans design systems for humans and, if/until the singularity, this will not change.</p><p>3. <strong>Isn’t too much transparency bad for certain applications?</strong></p><p>Yes, but there are currently engineering efforts to address this (it’s leaving the realm of R&amp;D already). Check out <a href="https://eprint.iacr.org/2019/550.pdf">ZK-Snarks</a>, <a href="https://www.aztecprotocol.com/">Aztec Protocol</a>, <a href="https://coincentral.com/zk-starks/">Zk-Starks</a>, and <a href="https://finance.yahoo.com/news/ernst-young-release-nightfall-ethereum-150001329.html">Nightfall by Ernest and Young</a>.</p><p>4. <strong>Centralization Results in Faster Innovation and is More Efficient in Certain Applications</strong></p><p>I completely agree with this statement. I believe it will be a very large amount of time before a DAO completely decentralizes the manufacturing of a car, or construction of a skyscraper. What they <em>can immediately </em>benefit are any services that are currently digital including: <a href="https://media.consensys.net/the-100-projects-pioneering-decentralized-finance-717478ddcdf2">finance</a>, <a href="https://www.ccn.com/bolivar-bitcoin-volumes-record-high-venezuela-crisis">store of value,</a> <a href="https://swarm-guide.readthedocs.io/en/latest/introduction.html">file storage</a>, <a href="https://omisego.network/">currency and tokenized asset exchange</a>, <a href="https://etherisc.com/">insurance</a>, <a href="https://bloom.co/">credit scoring</a>, <a href="https://golem.network/">generalized computations</a>, <a href="https://livepeer.org/">video encoding</a>, <a href="https://civil.co/">journalism</a>, and much more. Theoretically as technology improves, we could create whole DAO based manufacturing companies or even governments but I’ll leave that to the realm of sci-fi for now.</p><p>There are still many other issues that need to be worked before we see full force DAOs, but these problems are not outside the grasp of engineering to solve. In many ways I see blockchain as similar to AI several year ago. Many people thought it would take over the world immediately and others scoffed at AI ever replacing humans. Both were wrong, but the former was just wrong in their time frame. All you have to do is look at Tesla, Waymo, Google DeepMind, and the prevalence of big data positions opening up at large companies to see that AI has certainly made an impact on our lives; and so too shall blockchain.</p><h4>Conclusion: Near Perfect Free Markets</h4><p>It is difficult (<a href="https://www.investopedia.com/terms/p/perfectcompetition.asp">practically impossible</a>) to guarantee this level of true competition in traditional capitalistic markets as companies <a href="https://books.google.com/books?hl=en&amp;lr=&amp;id=K0h0sEm15vYC&amp;oi=fnd&amp;pg=PR7&amp;dq=cartels+economics&amp;ots=vMFbVuwIqX&amp;sig=1qtRKB5q9woYUMqtOQPp4q_gjws#v=onepage&amp;q=cartels%20economics&amp;f=false">have natural incentives to try and form monopolies and cartels to control prices and increase profits. </a>Government regulation to force true competition can also be avoided (<a href="https://hbr.org/2016/05/lobbyists-are-behind-the-rise-in-corporate-profits">or even worse manipulated)</a> if the individuals within the government begin acting selfishly and solely in their best interests. The government is also a system composed of selfish (in the economic sense of the word) and corruptible humans just as companies are after all.</p><p>This is one topic where the left and the right sides of the current U.S.A.’s (and a lot of the world’s) political spectrum cannot seem to reach an agreement. On the extremes, one side proposes giving total freedom and power to centralized organizations and allowing the free market to moderate these organizations. The other side proposes giving increasingly more power to the government to control these organizations. Both sides then point to the other and show how the systems/organizations they put trust in have shown corruption.</p><p>With smart contracts, anyone can look at the code and rules of the protocol and decide whether they trust the economics of the protocol. The decentralized and open aspects of DAOs will assure that only the most fair succeed and that the people truly decide what “fair” is defined as. Blockchains and DAOs certainly are not a panacea for all of our ills but, in a political and social climate where we are dealing with increasing power centralization and automation, they can be an important piece of the solution. A solution that is a free market, capitalistic method to democratize the power and value of centralized organizations to everyone.</p><h4>Resources and Further Reading</h4><ul><li><a href="https://blog.oceanprotocol.com/nature-2-0-27bdf8238071">Nature 2.0</a></li><li><a href="https://blockgeeks.com/guides/what-is-blockchain-technology/#What_is_Blockchain_And_What_New_Applications_Will_It_Bring_Us">What is Blockchain Technology? A Step-by-Step Guide For Beginners</a></li><li><a href="https://medium.com/universablockchain/decentralized-autonomous-organization-what-is-a-dao-company-eb99e472f23e">Decentralized autonomous organization — What is a DAO company?</a></li><li><a href="https://etherisc.com/">Etherisc</a></li><li><a href="https://media.consensys.net/real-world-banking-and-finance-case-studies-with-enterprise-ethereum-703dfc914b20">Real World Banking and Finance Case Studies with Enterprise Ethereum</a></li><li><a href="https://www.economicsonline.co.uk/Business_economics/Cartels.html">Cartels: Price fixing agreements | Economics Online</a></li><li><a href="https://unchainedpodcast.com/to-the-moon-and-back-with-polychains-olaf-carlson-wee/">To the Moon and Back With Polychain&#39;s Olaf Carlson-Wee - Unchained Podcast</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=895e8db88cbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Consensus Algorithms: What are their Properties?]]></title>
            <link>https://medium.com/@zakayesh/blockchain-consensus-algorithms-what-are-their-properties-7400407975b8?source=rss-fd5b7c5e3e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/7400407975b8</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Zak Ayesh]]></dc:creator>
            <pubDate>Fri, 03 May 2019 23:48:23 GMT</pubDate>
            <atom:updated>2019-05-17T14:36:54.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kKxdu-dtHzDPKUYR" /><figcaption>Photo by <a href="https://unsplash.com/@cytonn_photography?utm_source=medium&amp;utm_medium=referral">Cytonn Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the biggest innovations of Bitcoin was the use of the, now well known, Proof-of-Work (PoW) consensus algorithm. A consensus algorithm is what allows different nodes in a distributed network to come to an agreement on the state of the system (blockchain in this case) despite not knowing or trusting each other. Since the advent of Bitcoin and PoW, there has been an explosion of different consensus algorithms, each with their own trade-offs.</p><p>I plan on creating a series of articles going into detail on some of the biggest blockchains and their various tradeoffs including their consensus algorithms. Before that however, I would like to cover some foundations. In this article I will cover a quick overview of the theory of consensus algorithms and their properties. Consensus algorithms are not the only important component of blockchains, so do not think understanding them is the only thing you need to make informed decisions on blockchains, they are simply one piece of the puzzle.</p><h4>Distributed and Decentralized Computing</h4><p>Consensus algorithms are a topic in the field of <a href="https://en.wikipedia.org/wiki/Distributed_computing">distributed computing</a>. This is a field that studies computers and programs that must communicate to achieve a goal. The systems can be separated but still in close proximity to each other (i.e. the many computers in an airplane). However, the vernacular is that distributed systems refer to components that are separated by a large distance. One example of this type of distributed computing system is a massively multiplayer online video game (MMO). In a MMO there are various servers, usually physically separated, that must: work together to balance the game traffic, store the game state, and connect players together. We also have the computers the players utilize to actually play the game, which could be located over the entire planet. All of these computers must communicate to create the experience the designers wanted for the players.</p><p>Almost all computer systems involve some form of distributed computing; after all the internet itself is simply computers that are geographically distributed and communicating with each other to share information. Thus blockchains are definitely considered distributed computing systems. However a key feature in public blockchain infrastructure is that they are not just physically distributed; they tend to be <a href="https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274"><em>politically decentralized</em></a><em> </em>(in various degrees which I will discuss later). Referring back to the previous MMO example, a game has several distributed servers communicating with each other and many user’s computers connecting and disconnecting from these servers. However the game itself, and all of the data relating to it, is stored in the servers controlled by the company who owns the game. <em>It is politically centralized.</em></p><p>This results in the state of the game and all of its properties in control of the game makers and not the players. The users collectively put trust in the game owner/owners (a middleman) to maintain the game, handle their personal data, and moderate when there are problems between players. The big value proposition of Bitcoin was that it removed that very middleman, so users could transact with each other without relying on a trusted intermediary. However, in truth, we are replacing the middleman with tens of thousands of independent “middlemen”, all competing with each other and following the same algorithmic process to come to the same truth. We call these “middlemen” nodes in the network. Depending on the circumstances of these nodes, they may also be called “full nodes”, “miners”, or “validators”. What are the algorithmic processes I was referring to? Consensus algorithms.</p><h4>Consensus Algorithm Properties</h4><p>Here I go into the important properties consensus algorithms have:</p><p>1.<strong> Fault Tolerance and Economic Security</strong></p><p>Security in a consensus algorithm typically refers to how fault tolerant it is. Blockchain security is actually a composite of many different properties but that’s an article for another day. Fault tolerance is a property of a system that is able to handle some amount of its components malfunctioning. Referring back to my MMO example, the servers are usually designed with fault tolerance in mind. If one server goes down, traffic is re-routed to other servers and the entire game doesn’t shut down. We often store our data in a fault tolerant way by backing up our data in multiple locations (internal hard drive, external hard drive, flash drive, cloud, etc.) to assure that one device failing doesn’t cause permanent loss to our files. There are many types of faults that could cause a system to malfunction, such as a software bug like a stack overflow or an important hardware component failing due to fatigue. If you’ve been in the blockchain space for any amount of time, you’ve surely heard the term <em>Byzantine Fault Tolerance </em>(BFT).</p><p>A <a href="https://en.wikipedia.org/wiki/Byzantine_fault">byzantine fault</a> is one that is unique to a distributed system which is attempting to reach consensus between its nodes. If a node/component in a distributed system is producing: false information, inaccurate information, or even no information at all, it can be considered a byzantine fault. Essentially if a node exhibits any behavior that is deviating from the desired behavior, it is considered a byzantine fault. As you see, this type of fault covers a huge amount of possible failures thus making them extremely difficult to contend with. Also, how do we know if the information is bad if we haven’t achieved consensus? This is what makes designing a BFT algorithm non-trivial. BFT derives its name from the famous “<a href="https://people.eecs.berkeley.edu/~luca/cs174/byzantine.pdf">Byzantine Generals Problem</a>”.</p><p>A more traditional BFT algorithm requires that greater than two thirds of the nodes in the system be “non-byzantine” or acting desirably (properly, honestly, and accurately). Examples of these are: <a href="https://en.wikipedia.org/wiki/Byzantine_fault">Practical Byzantine Fault Tolerance (pBFT), Tendermint Consensus, minBFT and more.</a> Not all require this though; Bitcoin and Ethereum’s consensus algorithms require 50% of the nodes be non-byzantine to maintain security. With proper design considerations and assumptions, we can even create an algorithm that is 99% fault tolerant, <a href="https://vitalik.ca/general/2018/08/07/99_fault_tolerant.html">as discussed in Vitalik’s excellent blog post </a>(the question then becomes what are the trade-offs we made to achieve that level of fault tolerance).</p><p>As a quick note, economic security is how expensive is it for a bad actor to create a fault in the system. Examples of this could be: how much money would it take to bribe 1/3 of the EOS validators to act in your favor, or how much money would it take to buy 51% of the hash rate on Bitcoin/Ethereum? The more expensive, for the same possible reward an attacker may receive, the greater the economic security and thus less probability of nodes acting byzantine. It could be argued this is actually a macro property of blockchains themselves, and not just the consensus algorithm, however I feel as if it’s coupled enough to consensus algorithms to be considered one of their properties.</p><p>2<strong>. Consensus Node Permissioning (The Number of Decision Making Nodes and The Degree of Political Centralization)</strong></p><p>Who is allowed to become a node and participate in the consensus algorithm?One node is completely centralized, twenty one nodes slightly less so, and hundreds of thousands would be considered decently decentralized by most. All else in a blockchain equal, if there are more consensus nodes in a network the less the transactions per second (tps) throughput is due to the increased amount of messages that need to be sent. Lets look at a quick <a href="http://pmg.csail.mit.edu/papers/osdi99.pdf">example using pBFT </a>(again I don’t desire to go into many specifics in this article so we will keep it brief) :</p><p>Assuming a <a href="https://medium.com/coinmonks/pbft-understanding-the-algorithm-b7a7869650ae">minimum of amount of messages,m, of</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*JyiTy_5F0jtlrCWlDAeSTw.png" /></figure><p>Where f is the number of faulty nodes. This simplifies to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*ujVjRycvhaX25e1X63xyww.png" /></figure><p>We then equate f to the total amount of nodes, n, in the network:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*M7KWECKei7MJkqEzQ9NGFg.png" /><figcaption>Rounded down to the nearest integer. The minimum amount of nodes must be less than 1/3rd to achieve BFT.</figcaption></figure><p>Then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*ktpDSDbuWs5b6_1kBDxZRA.png" /></figure><p>Using Big-O notation we can say the algorithm scales at:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*TB9x8AFzheUalu3zqdFd7Q.png" /><figcaption>where n is number of nodes.</figcaption></figure><p>As you can see, if you increase the number of nodes by a factor of 10, then the number of messages increases by a factor of 100! Thus some blockchains choose to permission their consensus nodes, and keep the number small in order to increase tps capability (Ripple) while others choose permissionless nodes in order to prevent cartels and censorship (Bitcoin and Ethereum). Others, in order to reduce the power of permissioned nodes, allow non-consensus contributing nodes to vote who they would like to contribute to consensus (EOS). I will discuss my personal opinion on these trade-offs in a future article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yJZ17Q-scNgISqYlqPU6A.png" /></figure><p>3.<strong> Finality (Latency for Users)</strong></p><p>Finality is a property that describes the irreversibly of a consensus decision. How can we trust a decision if it constantly changes? If a customer is at a store and pays with a VISA card, once the transaction is approved (which takes about 3 seconds), you know the sale occurred and that fact will not change (barring the customer filing a complaint to VISA later on). If vendors knew that VISA had a tendency to approve a transaction and then five minutes later change that decision; no vendor would accept VISA for fear of selling something without receiving payment. Some algorithms guarantee finality, while others probabilistically guarantee finality. This results in a trade-off on how fast a transaction can be considered final, and appears as latency to the users of the network. Of course we can design an algorithm that doesn’t ever reach finality (that doesn’t sound very useful though). Overall finality is an extremely important property of a consensus algorithm.</p><p>4. <strong>Synchronicity</strong></p><p>Synchronicity describes the timing of how consensus nodes actually reach consensus. As an example lets imagine we are a node, out of a total of 4 nodes, connected to each other. The nodes are connected in such a way that we know that when messages are broadcast to each other, they will take no longer than 10 seconds to be received. If we then send out a message to the other 4 nodes simultaneously, we know that after 10 seconds all 4 nodes will have received the message. We can then give them 10 seconds to process/think about the message and then send out another one. In other words the network works in defined and discrete chunks of time: T=message sent, T+10 = message received and processing, T+20 = new message sent, etc.</p><p>The above example is called a fully synchronous timing model. This is an idealistic model in most scenarios; it is almost impossible to guarantee messages will be received by a specific time in every scenario. What if the physical wires connecting the computers get re-routed causing an increase to the delay? Or what if the nodes are connected over the internet, and the internet for a node slows down, or even completely goes offline leaving the node disconnected? Thus this is not a very realistic timing model outside of very small, meticulously designed, and highly controlled scenarios. For my thermodynamics fans out there this is very similar to the “<a href="http://hyperphysics.phy-astr.gsu.edu/hbase/thermo/carnot.html">carnot engine”</a>; it would be convenient if our designs worked as close to this engine as possible, but physics dictates it is impossible to achieve (although we can get close).</p><p>There are several timing models ranging from fully synchronous to asynchronous. Depending on what model we pick for our algorithm, we can make different trade-offs (to be discussed in future articles). Almost all public blockchains would fall under the asynchronous assumption. You can see a chart I re-created from <a href="https://medium.com/mechanism-labs/synchrony-and-timing-assumptions-in-consensus-algorithms-used-in-proof-of-stake-blockchains-5356fb253459">this medium article</a> (which is an excellent read for a little more detail).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElzRbSXO7I6rS-1RT-q7UA.png" /><figcaption>Based on a chart from: <a href="https://medium.com/mechanism-labs/synchrony-and-timing-assumptions-in-consensus-algorithms-used-in-proof-of-stake-blockchains-5356fb253459">https://medium.com/mechanism-labs/synchrony-and-timing-assumptions-in-consensus-algorithms-used-in-proof-of-stake-blockchains-5356fb253459</a></figcaption></figure><p>5. <strong>Safety and Liveness</strong></p><p>Safety and liveness actually make a trade-off trifecta, along with fault tolerance, in an asynchronous network. You can only have two of these properties. Almost all blockchains need some amount of fault tolerance so it usually comes to favoring either safety or liveness. This is proven in the famous <a href="https://groups.csail.mit.edu/tds/papers/Lynch/jacm85.pdf">FLP impossibility</a>. Safety, in terms of a blockchain consensus algorithm, is essentially resistance to a fork occurring. Liveness is the ability of an algorithm to continue the consensus process no matter the disturbance. A safety favoring algorithm would never cause a fork in the network in protocol, but consensus may halt (<a href="https://unchainedpodcast.com/want-to-connect-blockchains-cosmos-has-tools-for-coders/">Tendermint consensus can be used as an example</a>). A liveness favoring network will continue running even if the occasional fork occurs in protocol (<a href="https://www.investopedia.com/terms/u/uncle-block-cryptocurrency.asp">Ethereum and Bitcoin PoW as an example</a>).</p><p>6. <strong>Energy Consumption</strong></p><p>This wasn’t an important property of consensus algorithms until Bitcoin and PoW became popular. Integral to PoW was the use of energy intensive calculations, and as the number of consensus nodes grew exponentially <a href="https://www.economist.com/the-economist-explains/2018/07/09/why-bitcoin-uses-so-much-energy">so too did the energy consumption.</a> Many consensus protocols that came after Bitcoin PoW specifically sought to solve this problem, and thus energy consumption has become an important consideration for blockchain consensus design.</p><h4><strong>Conclusion</strong></h4><p>There are many trade offs that can be made when designing just the consensus protocol in a blockchain. Fault tolerance, economic security, node permissioning, finality, synchronicity, safety, liveness, and energy consumption are some of the most important properties in a blockchain consensus algorithm. In future articles I will go into more detail into specific blockchains, their corresponding consensus algorithms, and what decisions the developers made with these various properties. Understanding these properties, and their trade off spaces, can help designers design the best blockchain for their users, and also help curious users make informed blockchain decisions.</p><h4>Resources</h4><ul><li><a href="https://medium.com/mechanism-labs/synchrony-and-timing-assumptions-in-consensus-algorithms-used-in-proof-of-stake-blockchains-5356fb253459">Synchrony and Timing Assumptions in Consensus Algorithms Used in Proof of Stake Blockchains</a></li><li><a href="https://blog.cosmos.network/consensus-compare-tendermint-bft-vs-eos-dpos-46c5bca7204b">Consensus Compare: Tendermint BFT vs. EOS dPoS</a></li><li><a href="https://www.stellar.org/blog/safety_liveness_and_fault_tolerance_consensus_choice/">Safety, liveness and fault tolerance-the consensus choices</a></li><li><a href="https://medium.com/codechain/safety-and-liveness-blockchain-in-the-point-of-view-of-flp-impossibility-182e33927ce6">Safety and Liveness — Blockchain in the Point of View of FLP Impossibility</a></li><li><a href="https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274">The Meaning of Decentralization</a></li><li><a href="https://hackernoon.com/consensuspedia-an-encyclopedia-of-29-consensus-algorithms-e9c4b4b7d08f">ConsensusPedia: An Encyclopedia of 30+ Consensus Algorithms | HackerNoon</a></li></ul><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//arxiv.org/pdf/1707.01873.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/18c315eae8bd35afff5ad3bb56813719/href">https://medium.com/media/18c315eae8bd35afff5ad3bb56813719/href</a></iframe><p><a href="https://allquantor.at/blockchainbib/pdf/vukolic2015quest.pdf">http://allquantor.at/blockchainbib/pdf/vukolic2015quest.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7400407975b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>