<?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 brrabski on Medium]]></title>
        <description><![CDATA[Stories by brrabski on Medium]]></description>
        <link>https://medium.com/@brrabski?source=rss-ca65b2fad7d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rqp8h4-srR9AakWN.png</url>
            <title>Stories by brrabski on Medium</title>
            <link>https://medium.com/@brrabski?source=rss-ca65b2fad7d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:24:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brrabski/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[Blockchain Myth 6: Proof of Work is slow]]></title>
            <link>https://medium.com/@brrabski/blockchain-myth-6-proof-of-work-is-slow-8f0a4e0bca2b?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f0a4e0bca2b</guid>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Sun, 29 May 2022 08:30:33 GMT</pubDate>
            <atom:updated>2022-09-20T09:50:11.155Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the sixth and final post in a six part series about prevailing myths in blockchain implementations. The previous myths are on:</em></p><ol><li><a href="https://link.medium.com/dfEUNG2jHU"><em>Blockchain vs bitcoin,</em></a></li><li><a href="https://link.medium.com/gIKviFYjHU"><em>Blockchains and data sharing,</em></a></li><li><a href="https://link.medium.com/JxFKVUEjHU"><em>Blockchains and privacy</em></a><em>,</em></li><li><a href="https://medium.com/@jangrabski/blockchain-myth-4-public-blockchains-are-too-slow-for-insert-use-case-92207b9d9e01"><em>Blockchains and speed</em></a>,</li><li><a href="https://medium.com/coinmonks/blockchain-myth-5-proof-of-work-wastes-energy-a848000aea9a"><em>Blockchains and security offered by Proof of Work.</em></a></li></ol><p>In this article you will find out that Proof of Work is not only not slow, but that it is the fastest consensus algorithm possible, bar none.</p><p>First, a short mention of the last article, where I described how PoW is efficient in what it does, which is to provide security. Yes, it uses lots of energy, but that energy is directly proportional to the security it provides. Any decrease in use of energy, and security goes lower. What is the optimum level of security, and therefore energy use? How secure should a decentralized protocol which no one party can control be? These are things you should consider for yourself.</p><p>Now its time to consider, whether with the high energy use comes a speed penalty? When talking about speed in computer systems there are two measures: throughput and latency. Throughput is measured in the amount of data that can be sent every second, while latency is measured in time. How long does it take between when a piece of information is sent and when it is received?</p><p>Throughput is a matter of technology more than a matter of physics. It is about how much data we can cram into a transmission channel in a short span of time. While physics are a limiting factor, the technology is about all kinds of tricks we can use to cram more in before the physical limitations of the medium start to limit us.</p><p>Latency, especially at large distances, is a matter of physics more than of technology. It deals with how long it takes for the data to travel in a medium. Once we have figured out how to make data travel at the speed of light, the fastest speed there is, we lost the ability to improve much on latency. It takes light 0.07 seconds to travel along the equator to the other side of the Earth from where we are. Data cannot travel faster than that. How long is 0.07 seconds in computer time? Eons. Average internet connected computers can pack a network wire with about 70MB in that time (the speed of a 1Gbps connection) and the first bit will be halfway across the world before the last bit is sent. This is about an hour’s worth of music. Can we send more data in that period of time? Yes, but it won’t get halfway across the world.</p><p>Engineers have a saying that one can never underestimate the throughput of a stationwagon full of blueray discs. Average BD disc stores 4.5 terabytes (TB) of data, which is a very high quality full feature film or about 8.5 years’ worth of music! If we pack a car full of BD discs, we end up with… you get the picture and I don’t want to calcuate how many BD discs fit in a car.</p><p>So a car carrying BD discs has, quite literally, billions of times the throughput of a network wire. But it can only travel about 100km/h (60 mph), so it will take a while to get across the world, if it can find a road.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*sfk1sIGgDiiqXWdzotkhUg.jpeg" /><figcaption>A very high throughput, but high latency (slowly travelling), data packet.</figcaption></figure><p>This is the difference between throughput and latency and computer networks require two way communication, so the limiting property of global networks are not throughput, but latency. Not technology, but physics.</p><p>Now to the point. Computers operating blockchain networks need consensus algorithms to agree on what history is the only correct history to store. How quickly can they do this? There are many ways that people have tried to synchronise databases over distances, but most ways invented involve the computers talking between each other to agree on what is the final record. The fastest databases in existence rely on a single source of truth in one location; a centralised database. This type of solution assumes there is an authority and that authority receives information that it needs to record then decides on what sequence it will be recorded in, and sends it out to everyone interested. This is arguably the fastest way to sequence transactions and it’s probably well accepted that centralised databases with authority are quick.</p><p>The financial industry relies on the centralisation concept to settle transactions, but not at all in the way most people think. That is to say, the credit card companies do not process money quickly. It actually takes days or weeks for the money to reach the recipient. More on that in a bit, but let’s first get back to the topic on how to make a distributed database fast.</p><p>If one wants to arrive at a distributed consensus algorithm, some compromise in speed is required. The physics of latency demand it. For example, in proof of stake consensus algorithms transactions are collected by nodes that have vote weights determined by their token balance, or stake. This requires that all voting nodes send their vote to all other voters on the network, a tally is made (probably by each node), and then the nodes agree that a certain majority of them have the same opinion. There is no one-way communication algorithm that:</p><ul><li>would allow the nodes to set up the voting candidates,</li><li>agree on what is the subject of the vote (a proposed block),</li><li>collect all eligible votes, and</li><li>penalise or exclude misbehavers / attackers</li></ul><p>that would be quicker than a single authority with no voting requirement.</p><p>Except there is such an algorithm, and it is Proof of Work, where each block is actually proposed by a single authority that gets to dictate what everyone else must accept without question.</p><p>PoW does not require any chatter, because the winning block is determined only on its own merit in that it solves a difficult puzzle and the receiver must only decide if they have received a better proposal from anyone else.</p><p>This mechanism is predicated on the assumption that it is difficult enough to generate a block that in a given span of time there will realistically only be one candidate new block produced on the entire network, and so we can accept it as the official history and wait for the next one. If sometimes there is a competing block produced, we just wait for which of the equal competitors gets another valid block added and go with that while throwing away the “shorter” chain.</p><p>What is the latency of a PoW consensus algorithm? It’s the quickest that a new block can travel one way across the network. Coincidentally, this is the quickest way that physics (not technology) allows. For example, in a blockchain that spans the solar system up to Mars, the time for a block proposal to travel one way is equal to the time it takes light to travel across the maximum possible distance that can separate Earth and Mars, which is about 20m. Any back and forth, and the latency of each new block goes up in 20m increments.</p><p>So, the lowest latency long range synchronisation protocol must be the one, where a valid true history is instantly known by any member of the network, without even knowing how many members of the network there are. This is only possible in schemes, where the party sending the proposed new block can “prove” that they have the authority to determine that it is valid and that a competitor is not likely to exist. Centralised arrangements are the best at this, because there is only one authority, but PoW comes close in that if another authority (with a valid solution to the PoW puzzle) arises, we just wait for a tie-breaker. I.e. a block added to either one or the other candidate.</p><p>Now on to throughput. How much data can a block contain? That’s a matter of agreement. Considering that relevant portions of history must be stored by all nodes on the network, this question can be answered by the storage capability of the average network node and how much it can receive in the time it takes to generate a new block on the network. For Ethereum the block size limit (throughput) is how much can be sent in about 15s, which is the average block time. Since this is about 1GB of data and we need to store all of it, the throughput limit more about the answer to the question, how much are we willing to store rather than how quickly can we receive it?</p><p>For bitcoin, whose block latency is 10m, the maximum possible block size is … you can transmit a lot of data every 10m. But the answer is more or less the same. And is determined by how much data is the community willing to store with each new block. On Bitcoin the amount of data is roughly 2500 transactions every 10 minutes (about 4 transactions per second) while on Ethereum it’s roughly 1M gas every 15s (which is about 47 transactions per second if ethereum stopped processing smart contracts for a moment). These values were chosen purely on the appetite for storage that was considered reasonable by their communities and not by the speed of the consensus technology.</p><p>In summary because of their lack of chatter requirement, PoW networks present the <em>fastest consensus algorithm possible</em> in terms of latency and are limited in throughput only by the appetite of its community to store all the transactions.</p><p>Now back to the often cited speed of credit card networks. What is their throughput and what is their latency? Credit card networks rely on decentralization and separation of authority to do their trick, but they don’t actually do settlement, which means they solve a completely different problem than blockchains do. The 20k tps number often cited is just the sum of all the transactions happening at any given time, but on that network each bank is its own authority on what money it authorises to be promised and relies on a system of pre-approvals. There is no one master sequence of transactions like a blockchain will have, because the card networks do not handle settlement. Cards tps and blockchain tps are apples and oranges.</p><p>All the banks participating in a payment network still need to synchronise settlement transactions between each other in a process that is conducted for each national currency with their central bank. The credit card companies brag about speed, but that is just the speed of as-yet-unrealised <em>promises to pay</em>. Actual <em>settlement</em> of card transactions, the equivalent of a blockchain transactions, happens on national and international inter-bank settlement networks like SWIFT or SEPA and usually takes days or even weeks for reasons that are out of scope of this discussion. Note that SWIFT is an international messaging system and most SWIFT messages aren’t actually settlement messages, and while SEPA is able to settle faster, it does so because it was delegated with the authority to handle EUR settlements.</p><p>Suffice it to say, credit card companies could use blockchain settlement to improve some of their settlement times if they wanted to, but as discussed in Myth 2, blockchains are not actually a competitor to credit card transaction processing and anyone promising a blockchain settlement network that operates at credit card messaging speeds is, at best, misinformed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f0a4e0bca2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Myth 5: Proof of Work wastes energy]]></title>
            <link>https://medium.com/coinmonks/blockchain-myth-5-proof-of-work-wastes-energy-a848000aea9a?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a848000aea9a</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[proof-of-stake]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[proof-of-work]]></category>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Fri, 30 Aug 2019 17:19:48 GMT</pubDate>
            <atom:updated>2020-08-26T11:54:37.593Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the fifth post in a six part series about prevailing myths in blockchain implementations. The previous myths are on:</em></p><ol><li><a href="https://link.medium.com/dfEUNG2jHU"><em>Blockchain vs bitcoin,</em></a></li><li><a href="https://link.medium.com/gIKviFYjHU"><em>Blockchains and data sharing,</em></a></li><li><a href="https://link.medium.com/JxFKVUEjHU"><em>Blockchains and privacy</em></a><em>,</em></li><li><a href="https://medium.com/@jangrabski/blockchain-myth-4-public-blockchains-are-too-slow-for-insert-use-case-92207b9d9e01"><em>Blockchains and speed</em></a><em>.</em></li></ol><h3>TL;DR</h3><ol><li>All security is defined by the amount of energy required to break it, and security can only be manufactured with the use of an amount of energy that is equal to or greater than the energy of the best attack.</li><li>Proof of Work is the most efficient way of generating blockchain security precisely because it requires a known (although variable) amount of energy to solve a cryptographic puzzle and provides no alternate attack vectors.</li><li>A PoW mining market with ASICS and large data centres is a highly specialized system for building ever more sophisticated energy barriers to defend the chain. An advantage this year does not mean that the miner maintains the advantage next year, for another competitor could develop better tech. This type of market is therefore decentralized <em>over time</em>.</li><li>The PoS security mechanism relies on a static and low amount of energy used to secure it. This is manifested in it being hostage to the physical security of the stakers and, more importantly, to the security of the software that stakers must run. Therefore PoS and other non-energy intensive incentive mechanisms do not enhance blockchain security and probably decrease it specifically because they aim to lower energy use (and they try to do this inefficiently).</li><li>Tell me, why I’m wrong. A valid counterargument can be in the form of a counterexample of a real life security model, where ultimate security relies on an energy investment and ongoing energy expenditure that is <em>lower</em> than the energy of the most energy efficient attack against such a framework.</li></ol><h3>Preamble</h3><p>In this avant garde article, I explore the meaning of security and have a go at defining some basic principles about how it works and what that means for the Proof of Work (PoW) vs Proof of Stake (PoS) debate. The news is not good for PoS, as PoW might just be the most efficient way possible at achieving security, bar none.</p><p>Throughout the article I frequently refer to Bitcoin as an example of a purist blockchain, but the concepts can be applied equally to other blockchains that rely on PoW for security, including the current version of Ethereum 1.x (ETH), Monero (XMR), or Zcash (ZEC).</p><p>I’ve been mulling over posting this more widely since April 2018, because I wanted it to settle in my head and to hear if there are any arguments out there that could persuade me to doubt what I’m about to write.</p><p>Unfortunately, I haven’t found anyone who could argue the opposite side of this argument well. If you do have such an argument, feel free to let me know. You might be surprised to know that the most common counterargument that I have heard is an unsupported declaration that I’m wrong, sometimes hastily followed up by more prominent detractors with a comment on my understanding of what energy is, or that I mistake energy for financial cost. Neither bothered to respond that energy is defined in Joules or kWh and that is what the work is in PoW, nor that cost is mostly a proxy for energy anyway (mostly, because cost variance can also be attributed information asymmetry).</p><p>Having said this, I must also say that ever since reading the Ethereum whitepaper I have considered it to be a superior concept to Bitcoin. A Turing Machine on top of a permissionless blockchain allows an arbitrary ecosystem to evolve on top of the protocol, and to piggyback on its security. An example of this ecosystem is Decentralized Finance (DeFi) with MakerDAO’s DAI stablecoin as a manifestation of the brilliance that such a platform can support. Through the Turing Complete EVM Ethereum became a true multi-purpose platform for a new financial system. In order to continue its success it is crucial that Ethereum continues maintain the highest attainable levels of security. I wish the ecosystem well and I hope to be able to participate in it for a long time to come.</p><p>The largest flaw in this article is its length. I have considered cutting it shorter, but have opted to keep the arguments as they are, since some of the concepts might not be familiar to some readers. You should be able to evaluate, whether a given section is obvious to you or not, and feel free to skip to the next one. The main points are highlighted anyway.</p><h3>What do security and energy have in common? Everything, because energy defines security.</h3><p>The basic argument goes like this: at the base of <em>any</em> security mechanism is an energy tradeoff and any attack must take this tradeoff into consideration. It is because of this that the most robust security mechanisms are ones where the energy tradeoff of an attack is known and large.</p><p>There have been many articles that argue that bitcoin is secured by energy, and this is an established fact, but since energy use is considered wasteful and harmful to our environment, crypto projects the world over have tried to create more energy efficient, or less energy hungry, ways of attaining security levels comparable to bitcoin’s PoW. I will argue here that a more energy efficient way to secure a blockchain does not exist <em>by definition,</em> because <em>energy defines security in general.</em><a href="#361b">¹</a></p><h3>A short story on how nature cheats.</h3><p>I’ll tell you a story that motivates the questions I ask by revealing how limited our models are relative to how complex systems actually function. It starts with a Scientific American, or maybe it was Popular Mechanics, article that I read when I was a teen. A cursory google search did not yield the article, but I was able to find the <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.50.9691&amp;rep=rep1&amp;type=pdf">source research paper here</a>. On rereading it after all this time, I still think it’s a great piece of research. Here’s a short summary.</p><p>Dr. Adrian Thompson designed an experiment to implement evolution of a physical digital circuit that was to differentiate between a 1kHz and a 10kHz signal. The circuit used was an FPGA, which is a chip that has hardware logic which can be reconfigured to perform any logic operation using logic gates (hardware) instead of computer instructions (software). Thus, the experiment was to evolve a hardware circuit to perform the given task.</p><p>The FPGA was primed with several random gate arrangements and was connected to a fitness test that would evaluate, how well the given circuit identifies the input signals. An evolutionary algorithm for generating offspring from the best configurations was to create each new generation of configurations to be tested.</p><p>An additional twist to the challenge presented to evolution was that the FPGA had no access to a clock that would help measure frequency. This made the task too difficult for a human to design the solution.</p><p>Could evolution, or nature, design a hardware logic circuit that would recognize the frequency of an incoming signal without using a clock? I was mesmerized by the problem, the solution surpassed my wildest (and naive) expectations.</p><p>The experiment was set up and run for thousands of iterations over several hours. The design that emerged matched the hypothesis. The chip configured with the final design could accurately distinguish the 1kHz and the 10kHz signals. I was excited to read about this result, but it wasn’t altogether unexpected. What came next was the most intriguing thing I wanted to know: what was nature’s brilliant design that surpassed human skill? I couldn’t wait to read about it!</p><p>It turned out that the design was gibberish! No human could understand, how the pattern of logic circuits would produce the result it did. As a combination of logic gates, it simply made no sense. They tried the experiment again and again, with similar results. The logic gate designs coming out of the process did not seem to implement logic at all. They went in loops and were disconnected in places. Interestingly, the design did not work as well, when moved to another area of the FPGA (originally, the design was confined to only a corner of the chip).</p><p>The paper suggests that the evolutionary process ignored the abstract logic that a human designer would use and used all physical features of the chip. Apparently evolution was misinformed about what it was supposed to do and cheated by going outside of our theoretical model of how an FPGA works!</p><p>I felt the hairs stand on the back of my neck. The genius of nature was astonishing. When given the opportunity nature was playing within its own rules and didn’t care about the logic model around which the chip was designed. It turned out that in experiments nature plays with a full deck, while we humans are limited to subsets of this deck that we are able to fit into models.</p><p>There are two outcomes of experiments, boring and exciting. Boring experiments show that nature follows our theoretical model. Exciting experiments make nature show new cards from its hand that are outside of our model. The FPGA evolution experiment was of the second kind. When nature plays with us during an experiment, it sometimes pulls out cards, that we didn’t even know existed or <em>that we were not capable of using ourselves</em>.</p><blockquote>Blockchain is nature showing us a glimpse of its full deck as it relates to our behaviour, and in this particular case we ourselves seem to be the cards it uses.</blockquote><p>Blockchains are fascinating to me in the same way. They can be thought of as a hybrid of software and data that feeds on energy supplied by humans in exchange for a secure digital asset. Although this summary sounds simple enough, we must remember that it is just an incomplete mental model, and that the way in which blockchains actually work is much more nuanced as evidenced by hard fork turmoil, bitcoin maximalism as a sustaining ideology, etc.</p><p>I see in this space something that I saw then in that article years ago. Someone wrote clever code (Bitcoin) that seemed to be well defined in terms of computer science (see my first Myth article), but this code interacted with its surroundings to reveal more than most expected. Blockchain is nature showing us a glimpse of its full deck as it relates to our behaviour, and in this particular case we ourselves seem to be the cards it uses.</p><h3>What can we learn from observing Bitcoin?</h3><p>If there is one thing that we must admit about Bitcoin and the Proof of Work approach to security is that it seems to work. Now our exercise is about finding out how this game works because if anyone thinks they have the rules figured out, they are underestimating the rule master.</p><p>To me one of the first red flags about someone not understanding how complex this game is, is when they say that Proof of Work, the core element that makes Bitcoin or Ethereum secure, is inefficient. How do they know that PoW is inefficient? Compared to what other proven mechanism?</p><p>It is true that PoW uses amounts of energy that are unusual compared to what we are used to, but to say that because it seems like a lot of energy that PoW is inefficient is a non-sequitur. We have become accustomed to energy use being a polluting activity, and with the rampant fossil fuel that is burned across the globe that is an accurate assessment. But saying that an energy consuming activity is wasteful, just because it uses more energy than we <em>feel</em> it should forces a connection, where one does not exist.</p><h3>It is possible to be 100% energy efficient and still seem to be energy hungry.</h3><p>Let me give you an example. Consider an electric space heater that heats a room in the winter. How much energy does this heater consume? The answer is quite a bit. Maybe 1500W or more to keep a room warm. Maybe you need two or three to do the job? That’s certainly more than my laptop or the lights need, but does that mean that the space heater is inefficient? Absolutely not.</p><p>An electric space heater happens to be the most energy efficient device that we know how to make! It is 100% efficient and you can’t get any better than that. So, just because PoW is power hungry says absolutely nothing about its efficiency. It is possible to be 100% energy efficient and still seem to be energy hungry. Case closed.</p><p>So, what do we know? Well, <em>we know</em> that while PoW seems to be quite power hungry we actually have <em>no idea</em> how efficient proof of work really is, and that’s a start.</p><blockquote>Energy is the convertible currency of the universe.</blockquote><p>While the Ethereum community seems to be confident that they have the next incentive/scaling model <a href="https://twitter.com/vitalikbuterin/status/1131045739168186374?s=21">all figured out</a> and simulated in papers and test code, I’m not quite convinced. If one thing is clear, it’s that no one bothered to let nature know, which model we would like <em>it</em> to play by, when we let the game play out in real life.</p><p>I will argue that in real life, lower energy consumption necessarily leads to lower security, because <em>the security of any system whatsoever is always defined by the energy required to attack it. Moreover, when we weigh the security of a system critical energy tradeoffs are often implicit in our environment and therefore taken for granted.</em></p><p>After all, energy is the convertible currency of the universe.</p><h3>Understanding security and what lets us sleep at night.</h3><p>Let’s start with a few thought experiments in the physical world, and then progress to computer systems, then blockchains. You can skip right ahead, if you like, but this progression is what was necessary for me to convince myself that most probably all systems are subject to the principle that energy underpins all security.</p><h3>Example 1. A small safe.</h3><p>The security of a simple safe (or lockbox) is a situation that is familiar to most of us and we do not give it a second thought. We know that a safe can help in keeping things from being stolen, but we know that there are limits to this security. We will therefore not put our most valuable possessions in a small safe without taking additional precautions. We know this, because it’s common sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*eRbfzwltAlPQqVDn" /></figure><p>When you put a valuable inside a small safe, you make an implicit calculation about the security of the device. The calculation is, “does it take more effort to extract the contents of the safe than the contents are worth?” You will select the safe according to this calculation, and depending on what you want to protect.</p><p>You may choose a simple lockbox in a hotel for your wallet, a larger safe in your house for some home valuables, or a safety deposit in a bank vault for significant savings or documents that need fire protection, etc. In any of these cases you will consider that an attacker would first have to break the box to get to your valuables, and you will consider how difficult it is to break into the box. Is a crowbar enough (low energy), or does it require heavy duty drilling (slightly higher energy), and if someone uses a moderate energy method, like dropping the box off a building or a blowtorch, will it result in the destruction of its contents? In all these situations, you will consider the cost of the attack vs the potential gain, and the attacker will also consider, whether a higher energy attack (which may be available) could ultimately destroy the contents. These considerations are all <em>strictly</em> in terms of energy trade off, or effort and risk vs reward. Simple enough.</p><p>What about a safety deposit box in a bank? How does the energy tradeoff look there? Whatever you would put in that deposit box surely isn’t worthwhile to rob a bank for, so you choose to pay a little rent to piggyback on the bank’s energy intensive physical security apparatus.</p><p>Now we are ready to take a look at a more complex system.</p><h3>Example 2. Fort Knox.</h3><p>Let’s consider robbing Fort Knox as there is some evidence that it contains substantial stores of gold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*K-wC66v4kseuBCsb" /></figure><p>There are a lot of very durable valuables in the Fort Knox vault, so a high enough energy assault should make the attack worthwhile. You might even say that the energy of the attack (like a bunch of powerful bombs) could be considerable to still yield good access to the contents, even if they do get dispersed a bit during the attack. You should be imagining a scene with dazed pedestrians wandering around a messy street scene picking up pieces of gold and catching hundred dollar bills fluttering in the breeze.</p><p>There is a catch, however. Fort Knox is protected by a security apparatus that starts with guards, continues through a police force in the area (making carrying the gold off difficult), and ultimately the US military might. The US military apparatus is an extremely high energy security system that is too big to try to overthrow for the possibly underwhelming amount of gold in Fort Knox, so the energy trade off suggests that it’s not worth it to attack Fort Knox’s high energy barrier outright under any circumstances.</p><p>That’s not the whole story though.</p><p>What if we were to find a sneaky way to enter the vault and carry off the gold? Could that lower its perceived energy barrier? Could we have a man on the inside help us Oceans 11 style? Slipping the loot out without breaking heavy doors or setting off the US military security apparatus would lower the energy barrier to carrying the gold out and perhaps make the effort and risk worthwhile? And so, Fort Knox (hopefully, as I’m no expert on Fort Knox) employs an elaborate process designed to prevent low energy attack vectors from either existing at all through good security procedures, or from being found by maintaining secrecy. In the end, because of the obscurity of the security apparatus, the lowest available energy attack vector is very hard to determine and exploit. For all we know, if it already were exploited we wouldn’t even have a way of finding out, until someone did an audit of the contents.<a href="#9e5a">²</a></p><p><em>Disclamer: I have little interest in conspiracy theories around Fort Knox, and just want to underline that the “security through obscurity” around Fort Knox does not make it particularly easy to verify its contents. The point is, it is possible to imagine a low energy attack vector on Fort Knox that bypasses the obvious high energy defences that are meant to symbolize its security</em>. <em>Most importantly, we have few ways of finding out if such a low energy attack vector exists and no opportunity at all to verify that it does not exist. Hmm.</em></p><h3>Example 3. A modern bank.</h3><p>When banks get robbed these days, it is through electronic means with the help of social engineering. Basically, thieves steal someone’s password or bribe someone on the inside to help in the operation. This, again, is an energy tradeoff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*tf4CdqPZbYTqBPxL" /></figure><p>The attackers know that you can’t walk into a bank and steal millions, so they have to break into computer systems by gaining access to accounts on these computers. They do this through low energy attacks: social tricks, viruses/worms, and phishing.</p><p>Phishing in particular does not attack the bank’s defences directly and focuses on the low security user and their funds. If the thief can get a hold of a customer’s password, he can transfer money out without breaking the bank’s security. The thief will break the customer’s security instead. Of course, as bank customers we do not actively manage our security, but we rely on a security model that the bank provides us with. Usually, this is a password and a second factor, like a code sent by SMS with a one time password for riskier operations.</p><p>The level of security the bank provides to the user depends on how much money the user has in their account. And so, a retail user will have a basic password and SMS, while a corporate user may have hardware dongles, etc. The security model is then more localized with a smaller energy attack vector and commensurately smaller payoff that is limited only to the customer’s funds and not the whole bank’s.</p><p>Note that the bank itself relies on the energy intensive state security apparatus, so it is rarely profitable to rob a bank in such a way as to activate that apparatus.</p><h3>Security of Computer Systems.</h3><h3>Private keys</h3><p>And so it is with any computer system, including ones secured with modern cryptography, which is quite secure on paper. The known high energy attack vector involves brute forcing the encryption by trying all the possible keys. This is impractical for most prudent configurations, even for governments. The (relatively) easy lower energy attack is to obtain the key from its custodian or user.</p><blockquote>We are used to using high security cryptography, while trusting that physical access to our resources is protected by another high energy security apparatus that is woven into our environment.</blockquote><p>Obtaining the encryption key requires a physical or social attack on the user, which bypasses the hard cryptography and high energy defence. Here I reference the brilliant comic by xkcd about a <a href="https://external-preview.redd.it/0ei0772QhulzgWJKWCnXx-63MsdhQye9BWml5fwg_1c.png?auto=webp&amp;s=7065d611206af891cad5e76f0af2d3df8ca1bbcb">$5 wrench attack</a>. In the comic strip two potential thieves plan to break into an encrypted laptop. The first character proposes to use a high powered computer to break the encryption on the laptop, but this will not be enough, as the encryption scheme used is too strong to break with available computing power. The strip dismisses it as wishful thinking by nerds that an attack can be foiled by strong encryption and proposes another more realistic scenario. The thieves simply decide that all they need to do is to beat the laptop owner with a wrench that was purchased for $5 and the secret encryption key will be handed over by the victim on short order, rendering the encryption useless. A physical attack with a cheap weapon is relatively low energy compared to a brute force attack using an expensive computer that uses up time and energy. There is again the question of a police force, and so on, but these are still just other energy barriers that are often easier to overpower than breaking encryption by obtaining and powering an impractically huge supercomputer.</p><p>We scoff and claim that these attacks can be prevented with some common sense, like avoiding dark alleys and so on, but are we conscious of what we take for granted? For most of us living in a high security country it’s hard to attack someone with a wrench and get away with it, because we piggyback on the high energy law enforcement apparatus that these societies provide us. Without the police to help us, the default security of a plaintext private key printed on a piece of paper takes no more than a $5 wrench to break and possibly much less. A low energy defense can be easily overcome with a low energy attack that operates outside of the model’s design.</p><p>So we are used to using high security cryptography, while trusting that physical access to our resources is protected by another high energy security apparatus that is woven into our environment. I argue that we take this externality for granted, when making claims about the energy efficiency of cryptography, or any other security system.</p><p>Despite the presence of an implicit physical security framework our reliance on it has to be limited anyway, because in all honesty, how confident do we feel about our cybersecurity? In real life, most attacks on our digital security are not with the use of cheap wrenches, but through cyber attacks that have a much easier time evading physical security measures. More on that later.</p><p>In summary, strong cryptography has a minimum security threshold that is equal to the lesser of two security frameworks: the level of our physical security, and the level of our cybersecurity. Both of these frameworks are energy intensive endeavours with cybersecurity being much weaker in today’s reality.</p><h3>Trustless blockchains and the case for Proof of Work.</h3><p>Blockchains are borderless, and cannot depend on nation state high energy security systems or secrecy for either prevention or after-the-fact law enforcement and punishment. We must therefore be very careful about how the security of a trustless<a href="#f886">³</a> system is designed.<a href="#a12b">⁴</a></p><p>Proof of Work is a brilliantly elegant solution to the energy tradeoff problem of security in that it makes the energy to attack the system explicit. The system is designed to have no lower energy back door. There is just the nuclear option, to either buy or steal enough resources (including power supply) to carry out an attack. This kind of attack is either unpalatably expensive for those that need to buy the hashing power, or self-defeating for those with the expensive ASICS in their data centres that will be rendered worthless after the attack. Why worthless?</p><blockquote>For all the arguably convoluted attack and defence scenarios that have been considered for Proof of Stake, what are the energy tradeoffs that exist in the system, for surely they must exist?</blockquote><p>Cryptocurrency mining farms are large and specialized infrastructure projects that earn back initial investment over time that is usually measured in many months. Imagine now that the miner decides there is some money to be made in using their equipment to attack the chain. Fair enough, but what is the cost of conducting the attack? If the coin being attacked loses value during the attack, the miner will have depleted their ability to make their expected mining revenue. The risk reward calculation for this gambit is not easy and outright frightening if one has $100m of equipment at stake as some mining farms do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*3NrYFaXa1Ty2go5g" /></figure><p>It is clear then that it would be risky for a miner to attack the blockchain that their equipment is mining, because an attack may cause a significant decrease in value of their future profits.</p><p>And now for the million dollar question: for all the arguably convoluted attack and defence scenarios that have been <a href="https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ">considered for Proof of Stake</a>, what are the energy tradeoffs that exist in the system, for surely they must exist?</p><p>The energy-dependent model of security suggests that by reducing the energy requirements for PoS we lose security. All that remains is to figure out how that could transpire?</p><p>The answer probably is not hidden in the PoS slashing algorithms and theoretical models developed by the Ethereum protocol engineers. They are a smart bunch, and we should assume that their models, intricate as they might be, are probably theoretically sound.</p><p>How will nature surprise? What does experience teach us about weakness of theoretical models?</p><p>“Your assumptions are your windows on the world. Scrub them off every once in a while, or the light won’t come in.”</p><p>― Isaac Asimov</p><p>As with the evolutionary FPGA example, let’s look for assumptions about the model that the PoS designers may have overlooked.</p><h4>False Assumption #1: PoW is inefficient.</h4><p>We already identified one, where energy consumption of PoW was incorrectly linked to lack of efficiency. We don’t know how efficient it is, so we cannot assume that it is inefficient. What other assumptions could there be?</p><h4>False Assumption #2: Hashing power is like voting power.</h4><p>Let’s explore the famous 51% attack. Is that like voting? The 51% attack refers to capturing 51% of hashing power to generate a longer chain that will then serve as the one true chain. While this might look like voting on the surface, imagine for a moment that, through sheer luck, a minority of miners mined a longer chain than the 51% that is captured for an attack. While statistically this would happen rarely, it is possible in practice for at least short durations of time. In such a situation the longer chain generated by a minority of miners would also win as the official one true chain. This means that hashing power isn’t really a voting mechanism at all. A more appropriate analogy is that hashing power is like firepower (yes, in the military battle sense). More firepower certainly increases the chance of victory, however it does not guarantee victory on any one occasion. I hope we can agree that having more firepower is not the same as having more votes.</p><h4>False Assumption #3: Democratic voting by nodes increases security.</h4><p>How about the assumption that blockchain security grows with the number of nodes, since each node can be treated, like a voter. I have heard this one many times myself and asked, how so? In Bitcoin the job of a node is to listen to the network for new blocks, to keep the ones with the most accumulated proof of work, and to transmit them to others. While this appears to resemble voting, think of what would happen if 99% of the nodes colluded to propagate a false (shorter) version of the Bitcoin blockchain. Would the 1% of nodes that are in possession of a longer chain be convinced by the majority that they have the wrong one? They would not. This isn’t voting then, is it?</p><p>If 99% (or more) colluding Bitcoin nodes cannot overpower Bitcoin consensus, then it must be true that as the number of Bitcoin nodes increases, security does not.</p><p>Bitcoin is not democratic at all then, and is about as undemocratic as they come. A single copy of a longer chain, no matter how it is produced, is enough to invalidate all other pretenders, regardless of their number or their hashing power or “votes.”</p><p><strong>False Assumption #4: If nodes have something to lose, their vote can be depended on to be more honest.</strong></p><p>If we look at PoS game theory discussions, they do assume that more voting nodes with some skin in the game (a stake) lead to higher security, so let’s explore this assumption a little more.</p><p>Under PoS the nodes are treated as voters, which as we already know, is a significant departure from how PoW works. You might argue that PoS is supposed to be a departure from PoW, and you would be right. What we cannot skip though, is the introduction of the new assumption that a large number of voters can generate security at all! This assumption sounds safe enough, but have we considered, whether it requires more preconditions before it can hold?</p><p>In real life democracy does seem to generate security, but only under certain conditions. The power of democracy is in each voter being educated about their options and making an individual and informed decision of their own free will. Furthermore, the choice may vary depending on individual circumstances and no vote is penalized. So an underlying assumption is that in order for democracy to work, each voter must be free to make an educated choice without being coerced. Duh! Is this the case under PoS? It is not, since PoS does not give each node a free choice as to how they will vote and decisions are dictated by deterministically written software, which penalizes votes deemed to be incorrect. It seems that PoS isn’t like democracy at all then. Will it work like one?</p><p>Let’s look at this from a small staker’s perspective, as small stakers, through their sheer number, are expected to be the mainstay of PoS security. They will be running a node, staking 32 ether of their own funds as a guarantee of their independent and truthful vote. They might be looking forward to this opportunity at gaining some risk free return, since the staker certainly won’t be planning to cheat. That’s great, but if they’re not going to spend any effort <em>thinking freely</em> about each vote and they will be penalized for disagreeing with a majority, then what is their expected incremental contribution to the democratic model of security? Hm.</p><p>It would seem that each staker will be contributing the vote of a deterministic automaton that is guaranteed to vote in the same way that all other well-intentioned stakers will vote. Will they be making a free and informed choice then? Absolutely not, but you can bet that they will be penalized if they misbehave! This is grounds for trouble.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/0*Tm8AuvglMobkAGQT" /></figure><p>Ok, the argument for PoS might concede here that stakers won’t be freely voting <em>each time</em>, but they will all be empowered to vote <em>honestly</em> though open source software. Even if they can’t make individually free choices, they can choose which software to run, but they won’t have the resources to audit or write the software themselves. Is that still choice?</p><p>We’ve now departed several degrees from what we would assume is a democratic process, and we have arrived at a model that assumes a dictatorship of software, and not of individual stakers.</p><h4>False Assumption #5: Peer reviewed open source software guarantees honesty.</h4><p>There’s another innocent looking assumption about the “honesty” of open source software. As much as I am a fan of open source software, I don’t think it carries any intrinsic honesty. Open source software is only as good as the developers, who write it and who secure its <em>distribution</em>. Unfortunately, neither the developers’ skills nor the security of their release distribution framework are perfect. So PoS seems to substitute a known attack energy of PoW for the unknown security of code and a distribution channel.</p><p>I really respect the talent that goes into coding works of passion, like Ethereum, and perhaps because of this I wouldn’t pin the security of an entire economy on the shoulders of a compact group of passionate individuals. Individuals, who might not realize the responsibility that they are taking on.</p><p>With that in mind, let’s take a look at attacks through software distribution networks that we commonly call computer viruses.</p><h3>Viruses, botnets, and cyber attacks</h3><p>The world of physical security is familiar and we have already explored it in the three examples I started with. It is also provided by governments and varies greatly across the world. More importantly, it is mostly out of our direct control. Let’s dwell on the less known issue of cyber security for a while, because governments don’t provide much cyber security to their residents (yet).</p><blockquote><em>Multiplying the number of nodes in a blockchain that depends on voting without varying the software or hardware running those installations reduces that blockchain’s security instead of increasing it.</em></blockquote><p>The idea of a computer virus is as fascinating as it is scary. The virus is a piece of software that copies itself from computer to computer and multiplies its effect with every infection. What is that effect? In the beginning, the purpose of viruses to annoy the user, popping up with unexpected messages, some early malicious viruses went on to damage or erase data, recent malicious viruses record keystrokes (and passwords), use microphones and cameras, encrypt data and demand a ransom, etc. All this, while sneaking by physical security mechanisms behind our backs and under the noses of our high energy law enforcement. A well written virus is a type of low energy attack, where the energy expended is on writing virus code that exploits vulnerabilities that exist in software that we use on our devices.</p><p>A virus type made popular in recent decades is the botnet. Botnets spread like viruses, but their function is to make their hosts participate in collective action initiated from a command and control centre. These collective actions may include things like sending spam email or participating in a Distributed Denial of Service (DDoS) attack. The greater the number of machines in the botnet, the more powerful the attack.</p><p>A botnet virus is most successfully distributed to a homogeneous collection of installations, such as hoards of vulnerable Windows PCs or small Ethereum stakers running a standard software stack. The power of a cyber attack carried out by such a botnet is <em>amplified</em> by the number of installations.</p><p>To be precise, a PoS configuration with a relatively small stake that necessitates a low investment in security, will in practice be a default configuration. It won’t matter that many small stakers run nodes, if all of them are exploited and join into a botnet that executes malicious code. The botnet could be distributed via a virus, or via a hijacking of the node software distribution network, and could be by design, or by mistake, such as through introduction of a critical bug. The end effect is the same: lower security.</p><p>Put another way, a large number of clone nodes can be modelled as one large node with the sum of the voting power of the small nodes that run that particular piece of software.</p><p>What would an attack look like? Imagine an attacker gaining access to a small army of staking nodes with the ability to alter their voting to force a minority invalid vote that would cost them their stake. It would be sufficient to open short positions on a few exchanges and conduct the attack. The loss inflicted on the stakers might be an order of magnitude greater than the profit from the short positions, but would still be worth it for the attacker, who just had to write a good virus, or to hijack the node upgrade scripts to deploy their malicious code to a large portion of the network.</p><p>One way to defend against a viral cyber attack against homogeneous voting nodes is to have several node implementations available. This would reduce the possibility that a single exploit could affect more than a fraction of the network. Interestingly, when the Ethereum blockchain launched, its creators intuited the validity of this approach and decided to fund several different implementations of Ethereum in different languages: Go, C++, Haskell, Java, Rust, and Python were some of the earliest. This approach to security has been largely abandoned now in favour of Go (geth client) and Rust (parity client) accounting for most of the nodes running Ethereum’s mainnet. This homogeneity has already been identified as a <a href="https://www.coindesk.com/unpatched-ethereum-clients-pose-51-attack-risk-says-report">security vulnterability</a> for the chain, as many nodes are not updated in time to patch known vulnerabilities. Fortunately, Ethereum uses PoW for its security, and we can presume that the large miners responsible for securing the network have their houses in order and it is the small miners and nodes that remain unpatched and a risk only to themselves.</p><p>Unless there is a fundamentally different approach to security somewhere, the same risk profiles will apply to a large number of homogeneous nodes of any other DLT with a consensus mechanism that relies on voting, like PBFT (Fabric, Quorum, etc.) or DAG (IOTA, Hashgraph, etc).</p><blockquote>a hack (in every sense), the most subversive ever perpetrated, nothing less than the root password of all evil</blockquote><p>A PoS proponent would argue that the incentives in the protocol motivate investment in node security and that is how the chain will defend itself against cyber attacks. While this is true in principle, it puts the responsibility for how much investment is sufficient in the hands of human beings without giving them a consistent way to measure the achieved security. The only remaining measure of security is the existence of a successful attack. This is no different from the traditional model of security, where in the absence of a successful attack we assume that security must therefore be sufficient. An example of this is the Equifax data breach, where security had been lax for many months and was only discovered via a breach. PoS does not seem to deal with this flaw of the model at all and through distribution of homogeneous software makes the problem systemic rather than individual.</p><h4>The Inception Hack</h4><p>As a final argument that any security scheme that relies on the security of software is fundamentally flawed, I will refer you to an advanced piece of reading on the Ken Thompson Hack <a href="http://wiki.c2.com/?TheKenThompsonHack=">here</a>. This is an advanced attack method that will only be understood with some prior knowledge on how computer programs are created using compilers. This attack method hijacks a compiler to inject a malicious piece of machine code into all programs compiled using that compiler, <em>including the compiler itself</em>. What is interesting about this hack is that after it is successfully injected into the compiler or another piece of the pipeline that creates an executable, it is practically undetectable. This attack was proven to be feasible in 1984 and the tools to write and deploy software have not changed since then.</p><p>I will leave you with a quote from the linked article that describes the Ken Thompson Hack as “a hack (in every sense), the most subversive ever perpetrated, nothing less than the root password of all evil.” These chilling words are not my own, but I do understand the concept. To me the quote sounds appropriate and chills the blood in my veins. A more modern metaphor suited for the non-technical reader would be to call this hack the <em>Inception Hack</em>, after the movie Inception from 2010. This is because the hack makes the virus imperceptibly permeate all software, from its birth, on an unconscious level.</p><h3>ASICs are not evil.</h3><p>Another often mentioned assumption I would like to address is that ASIC resistance is a noble goal. The concept of ASIC resistance revolves around creating mining algorithms that are difficult to implement in a specialized mining chip called ASIC (Application Specific Integrated Circuit). This assumption is linked to another unfounded assumption about the absolute virtue of decentralization. ASIC mining requires larger purchases of hardware from specialized manufacturers, which means that both production of mining equipment and mining facilities are both better done in bulk, which hurts decentralization.</p><p>While decentralization certainly has many benefits, like resilience or easier data privacy, it doesn’t do as well for economies of scale. Economies of scale are beneficial, because in a larger facility more investment can be committed to overheads. Physical and cybersecurity are such overheads. It takes a similar amount of resources to physically secure a small data centre to a larger data centre, and the same goes for cybersecurity.</p><p>In a PoW system, the miners have a lot at stake and must continuously invest into securing their hashpower (physically and digitally) and into developing ever more efficient ways to mine for hashes. They are therefore locked into an arms race against each other to always seek and find the lowest amount of energy that is required to secure the only attack vector on the PoW chain, which is finding hashes faster while using the same or less power.</p><p>This arms race motivates miners to try different technologies, to invest in cyber security, and to write their own optimized mining software. All this individualized investment amounts to a heterogeneous software and hardware landscape, which is more difficult to exploit with viruses and is much less prone to becoming part of a botnet of dangerous proportions.</p><p>Moreover, an advantage this year does not mean that the miner maintains the advantage next year, for another competitor will eventually develop better tech. This means that ASICS also depreciate as they are replaced by later and more efficient models. The system therefore incentivises substantial investment into the energy tradeoffs around the security model, both in terms of hashing power and physical security of facilities (often by geographic and some day by cosmic distribution of facilities). This means that ASIC mining is actually intrinsically <em>decentralized over time,</em> which we might call churn. On the other hand PoS mining is intrinsically static over time for lack of a logical basis for gaining or losing competitive advantage. Another way to look at PoS staking nodes is like virtual ASICs that can never be replaced by a better model. Under PoS miner churn is not an intrinsic property of the market.</p><p>Indeed, PoW encourages separation of the data resilience mechanism that is provided via the nodes from the security mechanism, which is provided via mining. Therefore, miners are incentivised to custom-develop their own optimal miner implementations, which maximize heterogeneity of the PoW security generation mechanism.</p><p>Lastly, the stake in PoW is physical and cannot (easily) evaporate through a clever software hack, while the stake used for PoS is as easy to annihilate as performing the hack itself.</p><p>Dan Held goes into further benefits of specialized PoW mining for our civilization in this <a href="https://link.medium.com/wS4wdG8fbZ">wonderful article</a> from September 2018. I have independently come to the same conclusions as Dan in his article and I recommend giving it a full read.</p><p>Another article worth reading is Paul Sztorc’s take on <a href="http://www.truthcoin.info/blog/pow-cheapest/">why PoW is the cheapest approach to consensus</a>, where he discusses several economic and game theoretic takes on how PoW generates value efficiently. These arguments are interesting examples of PoS ending up not being more efficient than PoW. While Paul’s arguments explain that PoS isn’t necessarily less energy hungry than PoW, he concludes by stating that “Blockchain security is not the main function of Bitcoin’s PoW.” I come to quite the opposite conclusion, namely that <em>uniquely</em> PoW attains measurable efficiency in building security, while PoS does not. This stems from the fact that PoS security is underwritten by human diligence (which is not only unmeasurable, but also unreliable), while PoW security is underwritten by a real quantity of equipment, power, and technological achievement.</p><p>What am I missing?</p><h3>Final thoughts.</h3><p>Even though PoW seems to be the most efficient (and least energy hungry) method to achieve blockchain security, its very nature implies that there is always something to fix in a continuous evolution of technology for generating hashes and for physically securing mining facilities and access to sources of energy.</p><p>PoW is also susceptible to failures through (temporary) centralization of mining. It is possible that, through the use of better technology and cheaper energy, a specific miner might achieve a monopoly for brief periods of time. This would force the security of the chain to be strongly influenced by the security of that miner. Such centralization has happened in 2017, when Bitmain seemed on the path to control enough Bitcoin mining power (51%) to be effectively in control of the order of transactions.</p><p>An example of an innovation in Proof of Work architectures that aims to deal with this possibility is <a href="https://www.zenprotocol.com/files/multi_hash_mining.pdf">Multi-Hash</a> mining as proposed and implemented on Zen Protocol (ZP). In this approach the mining reward is distributed deterministically between several PoW mining algorithms. If the algorithms are chosen well, the approach should result in a splintering of the market for mining technology and lowering the probability of capture by a single ASIC manufacturer.</p><p>The realization that energy seems to underpin all security makes me profoundly uncomfortable about the future of the most promising blockchain in existence today. I am, of course, acutely aware of the need to increase the throughput and capacity of the platform, but would caution against hopes that it will become as fast as some would wish. Note my article on <a href="https://medium.com/@jangrabski/blockchain-myth-4-public-blockchains-are-too-slow-for-insert-use-case-92207b9d9e01">Myth 4</a> about speed, the proposed dapp solution architecture outlined in <a href="https://medium.com/@jangrabski/myth-2-blockchains-are-for-reliably-sharing-data-d4d3943404d0">Myth 2</a> on capacity and scaling, or <a href="https://medium.com/@jangrabski/blockchain-myth-3-public-blockchains-do-not-offer-privacy-c6622f83acc6">Myth 3</a> that touches on what is appropriate to store on a blockchain.</p><p>Ahead of us are improvements in storage and network capacity, dedicated blockchain validation hardware, and layer 2 scaling architectures. Although they will not come soon enough for some of the ideas that are out there, there is probably enough room to innovate within today’s limits to keep a brilliant mind occupied. The emerging DeFi ecosystem is a fantastic example of that.</p><p>An architect once told me that the enemy of great design is lack of constraints. Over time I have learned to appreciate constraints, and to work within them, even if I believe they could ultimately be temporary.</p><p><strong><em>Note:</em></strong><em> I am acutely aware that the argument I make above is not conclusive and that it is incomplete without a proof. Nevertheless, I hope that I was successful in outlining a fairly broad set of examples that do not seem to lead to a counterexample, which could disprove the fundamental insight behind the thesis that energy (and not cleverness) defines a maximum boundary on security of any system. I will be working on coming up with a more rounded and hopefully formal way to argue this in the future.</em></p><p><strong><em>Acknowledgements:</em></strong><em> The ideas for Blockchain Myths (of which this post is a part) were initially developed at ConsenSys with the fantastic feedback and help of many individuals, including: Tee Ganbold, Zunaira Arshad, Arielle Schnaidman, Brett Li, Micah Dameron, Chris Leishman, Van Sedita, John Wolpert, Jeff Gillis, Jérôme de Tychey, Ray Valdes, Igor Lilic, and other great people roaming cryptoland. This version of the article had active input from Ahmad Hammoudi, Joseph Khalife, Katarina Podlesnaya, Marc Ziade, and Nic Carter. Thanks guys! More great folks have read the draft and I thank them for their time.</em></p><p><a href="#ad7e">¹</a> An article that I recently discovered that comes close to the concepts I describe in this piece is Dan Held’s article from September 2018 <a href="https://link.medium.com/8o9nbSxtaZ">here</a>.</p><p><a href="#71b9">²</a> See the numerous rumours about the possible low gold reserves in Fort Knox, due to the gold being loaned out and essentially being snuck out in legal convoys.</p><p><a href="#57b3">³</a> Some people argue that trustless is an incorrect term and trust-minimized is more accurate. I think there is room for distinction between the two concepts and choose the former to describe PoW chains. By trustless I mean that when we receive a copy of the blockchain (or the latest block) from someone, we are not required to trust them at all about the correctness of the chain we were sent. Instead, we are equipped to only trust the data structure itself and we make a probabilistic judgment on whether a conflicting longer chain might exist (regardless of our evaluation of trustworthiness of the sender). This makes a PoW truly trustless in principle. In practice, we may trust that the first copy of a chain that we receive is sufficient and we might settle for a minimal level of trust, in which case we might call the situation “trust minimized”, but that is a compromise we choose to make and not an intrinsic property of the system.</p><p><a href="#57b3">⁴</a> I must emphasise here that there are two distinct security domains, when dealing with blockchain security: the immutability of transaction order, and the secrecy of the private key used to sign a transaction. Both have their own security profiles. In this article I only deal with security as a measure of the immutability of the order of transactions. The private key is subject to the $5 wrench attack, and all methods of avoiding this attack follow the same theme as for the safe and Fort Knox. Protecting a private key (a secret) is an individual holder’s responsibility that significantly predates blockchains and has not been the subject of any notable breakthrough, but is also subject to energy barriers to be secure.</p><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a848000aea9a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/blockchain-myth-5-proof-of-work-wastes-energy-a848000aea9a">Blockchain Myth 5: Proof of Work wastes energy</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 Myth 4: “Public blockchains are too slow for [insert use case]”]]></title>
            <link>https://medium.com/@brrabski/blockchain-myth-4-public-blockchains-are-too-slow-for-insert-use-case-92207b9d9e01?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/92207b9d9e01</guid>
            <category><![CDATA[distributed-ledgers]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 12:07:28 GMT</pubDate>
            <atom:updated>2019-03-04T17:43:24.835Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the fourth post in a six part series about prevailing myths in blockchain implementations. The previous myths are:</em></p><ol><li><a href="https://link.medium.com/dfEUNG2jHU"><em>Blockchain vs bitcoin,</em></a></li><li><a href="https://link.medium.com/gIKviFYjHU"><em>Blockchains and data sharing,</em></a></li><li><a href="https://link.medium.com/JxFKVUEjHU"><em>Blockchains and privacy.</em></a></li></ol><p>“Public blockchains are too slow” sounds a lot like what skeptics said in the mid 90s about the state of the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHdIDepohVO49VYfYLZ8GA.jpeg" /></figure><p>At the time, the argument was that most communication that the internet should be good for was synchronous, like telephone conversations, sales interactions, and watching TV shows, while the real internet seemed to have been designed to route data in ways that aren’t tuned to immediacy, like email, downloading a sound clip prior to listening to it, or viewing a website that might take 20s to load.</p><blockquote>“For a while the internet seemed only good for making online CVs and brochures. How boring!”</blockquote><p>Although access to having an internet presence was very easy, the possibilities of such a limited medium seemed underwhelming. A sign of this apparent lack of potential was that everyone could, and many did, have a home page that no one visited. Small businesses made web pages to showcase their offering, but mostly these were just like Yellow Pages listings, yet harder to find. People were trying to make the internet do what they were doing using other more mature technology. For a while the internet seemed only good for making online CVs and brochures. How boring!</p><p>Of course, there were a few businesses that seemed to be making millions on the internet, like eBay, but these seemed very niche and it was far from obvious how the internet would change the brick and mortar world that we experienced every day. eBay was only about making a better classifieds listing, and for a while it looked like that was the only way for an internet business to make money. No one believed that anyone would buy shoes online without trying them on or that internet media could someday swing elections. The internet experience seemed just too limited in scope and too detached from the real world to make a real impact.</p><p>For example Robert Metcalfe, a recognized internet pioneer, predicted in 1995 that “the Internet will soon go spectacularly supernova and in 1996 catastrophically collapse,” listing speed as one of the insurmountable bottlenecks. Incidentally, another bottleneck he identified was the lack of digital money. He made the same mistake that we all make. He thought that the internet would first replace the mature technologies we already used, like telephones and television.</p><p>It turned out that even though the early internet was too slow or jittery for what we thought it should do, it was in those slow beginnings that the great internet use cases were born and proven, despite or maybe even because of these limitations. It is actually thanks to limitations specifically that we can better see great solutions, because they succeed in spite of the limitations that weigh them down.</p><p>There is a brief allusion to this limitation paradox in <a href="https://link.medium.com/Xc58XHHkHU">Myth 3</a> about Netflix and Amazon succeeding despite not being able to stream movies or deliver electronic books to their customers. But Netflix did not wait for cloud scaling and video streaming technology to arrive, because that was not how it created value.</p><p>The answer at that time was, as it is now, that high bandwidth use cases are almost certainly not the ones that should be explored first, and they are not the transformative ones anyway.</p><p>Amazon decided to sell <em>paper books</em> through an online ordering process,</p><p>Netflix allowed online ordering of <em>snail-mailed DVDs</em>,</p><p>etc.</p><p>Similarly, with blockchain there is no reason to rush for 20k transaction use cases. This is especially true, since we already have 20k transaction per second throughputs on legacy infrastructure. Blockchains do not solve old problems in the ways that we expect, they solve problems in completely new ways that will take a little while to grow on us. In fact, even the internet hasn’t yet caught up to the immense bandwidth of legacy “data transmission” technology and lore has it that <a href="https://what-if.xkcd.com/31/">Google FedEx what they can’t transmit.</a></p><p>If we find ourselves waiting for the technology to catch up with our expectations, is it possible that the train is leaving the station and we are not on board?</p><p>Perhaps we might achieve the speeds we seek if we take a page from the Netflix playbook and try to put as little data on the chain as possible, or <em>none at all?</em></p><p>For instance, if we stick to using the blockchain for data validation using hashes, we can omit placing any data whatsoever on the blockchain itself. Hashes can be easily aggregated using Merkle Trees to drastically reduce the amount of on-chain space required for hash storage. Drastic might be an understatement. A Merkle Tree reduces any number of hashes to a single Merkle Root hash that needs to be registered on chain. The tradeoff is a little more data to pass around with the information that needs to be verified, and the internet is very good at letting us pass vast amounts of data around peer-to-peer. And so, if we want to register 1 million documents on a public chain, we only need one small on-chain transaction to do it, while keeping all transaction details off-chain.</p><p>If we look around, there are already projects that are implementing this approach as a layer on top of public blockchains. Some notable ones include <a href="https://www.toda.network/">Toda</a>, <a href="https://www.celer.network/">Celer</a>, and <a href="https://elixxir.io/">Elixxir</a> (it is likely that there are others that I have not come across). All these projects make extensive use of merkle trees to compress proofs into manageable size for on-chain transactions, and at the same time let the user keep all details of transactions in private channels or in private containers, which in addition to providing privacy, also allow for parallel processing (i.e. speed).</p><p>What of fast blockchains then? While blockchains will get faster with time, they will always be limited by the eons it takes for signals to travel across the globe and patchy network reliability. A good introduction to why this is so is captured in the <a href="https://en.wikipedia.org/wiki/PACELC_theorem">PACELC Theorem</a>, which explains how to tackle the challenges of having a single source of truth in distributed systems. It is important to note that blockchains do not bring any novel solutions to the limitations resulting from this theorem.</p><p>To get just a glimpse of how storage and data analytics will work in the decentralized, private, and fast blockchain enabled internet, check out Stanford’s <a href="https://crypto.stanford.edu/prio/">Prio</a>.</p><p>—</p><p><em>NOTE: In my articles I refer to existing projects that I find noteworthy for a particular purpose. Under no circumstances should this be construed as evidence of my having done substantial due diligence on these projects beyond skimming their whitepaper, and these references should not be construed as endorsement of these projects or investment advice.</em></p><p><em>Accreditation: The material for Blockchain Myths (of which this post is a part) was initially developed at ConsenSys with the fantastic feedback and help of many individuals, including: Tee Ganbold, Zunaira Arshad, Micah Dameron, Chris Leishman, Van Sedita, John Wolpert, Jeff Gillis, Jérôme de Tychey, Ray Valdes, Igor Lilic, Joseph Khalife, and other great people roaming cryptoland.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92207b9d9e01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Myth 3: Public blockchains do not offer privacy]]></title>
            <link>https://medium.com/@brrabski/blockchain-myth-3-public-blockchains-do-not-offer-privacy-c6622f83acc6?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6622f83acc6</guid>
            <category><![CDATA[myths]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Sat, 09 Feb 2019 19:40:42 GMT</pubDate>
            <atom:updated>2019-02-09T19:40:42.889Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the third post in a six part series about prevailing myths in blockchain implementations. The previous myths are:<br>1. </em><a href="https://media.consensys.net/series-myths-about-blockchains-856f31b6e986"><em>blockchain vs bitcoin</em></a><em>,<br>2. </em><a href="https://medium.com/@jangrabski/myth-2-blockchains-are-for-reliably-sharing-data-d4d3943404d0"><em>blockchains and data sharing</em></a><em>.</em></p><p><strong>“Everything on a public blockchain is seen by all participants, so privacy must be specially engineered into the protocol.”</strong> This sounds ok , but is so grossly misleading, that it is hard to know where to begin.</p><p>It might be prudent to start with reminding ourselves that the whole idea of a blockchain is to provide a common record of facts that is validated by all participants. In a sense, blockchains must be able to prove to their users that they are honest. This means that there are some things in a blockchain that need to stay open for the blockchain to function at all.</p><p>What are these necessary open elements?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*J33L5swHBKewoCmxCwQbJg.png" /><figcaption>Realms of information that blockchains and classic databases deal with well.</figcaption></figure><p>In the first <a href="https://media.consensys.net/series-myths-about-blockchains-856f31b6e986">myth article</a> we tackle the argument that the concept of cryptocurrencies and blockchains cannot be separated without making blockchain a pointless device, much like a mechanical wristwatch that doesn’t have a pendulum, and therefore doesn’t tell time.</p><p>Blockchains and cryptocurrencies are part of a singular invention that combines an open mechanism and an economic phenomenon to provide a new type of service, an economic medium. This new medium allows us to rely on an internet-native permanence that we do not need to pay to maintain as a user.</p><p>Blockchains become an economic medium by making the information stored on them internally consistent and possible to validate with open standards, and then by securing this validation and rewarding the security with a native token.</p><p>If we look at the data and validation handling features built into the most successful blockchains, like bitcoin or ethereum, we can understand that they necessarily need to be openly verifiable in some way. This open verification makes keeping private data on a blockchain particularly tricky, and perhaps even pointless. After all, if your data is meant to be private, what is the purpose of running it through a public verification mechanism that shouldn’t have access to it?</p><p>To be sure, there exist techniques for getting around privacy for on-chain information, like zero-knowledge proofs, but these are solutions that process aspects of the information, but <em>not the information itself</em>. For example, a zero-knowledge proof can verify that a balance after a transaction is equal to or above zero without knowing the actual balance or the amount of the debit transaction. This happens without showing a validator the balance even in encrypted form.</p><p>Although these solutions allow us to weave around on-chain privacy, they do not actually store the information on-chain and require the user to maintain crucial pieces of the puzzle for each piece of data we care about off the chain anyway. i.e. the chain logic knows your balance isn’t negative, but only the user has the data to prove what the balance actually is.</p><blockquote>“How to store private data is not a problem that should be solved by blockchains, and that’s ok.”</blockquote><p>In addition to the need to store private data off-chain, privacy chains also carry limitations and computational overheads that make them <em>even slower than blockchains already have to be. </em>Furthermore, it is very unlikely that such zero-knowledge schemes will ever match simpler blockchains in speed (they’re objectively more complex to compute), and we end up with somewhat of a dead end. So what are we to do?</p><p>The engineering approach to the openness problem of blockchain is patching it to handle private data and/or to limit access to the chain itself using firewalls and access control mechanisms. These techniques are a reflex that we have from database management, and it forces the blockchain into a contortion that runs against its fundamental design (open validation) without even solving our privacy problem all that well either.</p><p>Let’s consider on-chain encryption for a moment. Blockchains are permanent records so encryption will store encrypted data permanently in a shared and distributed location. Assuming we actually care about the privacy of our data, we will need to consider that:</p><ol><li>Any shared location over which we do not have sufficient control will eventually get shared with parties that we can’t control. This means that we must accept that encrypted data that we put in the shared location will never be deleted AND there is a high chance that it will eventually leak. In fact, the only way to ensure it never leaks is to find all the copies and destroy them. And so, once we put encrypted data on a blockchain, it will hang there in cyberspace over our heads, like the Sword of Damocles.</li><li>Any encryption will eventually be broken, whether through leaking of keys or more advanced technology. Specifically, most modern encryption methods are known to be only temporary in the face of quantum computing.</li></ol><p>If the above two points are true, then by storing encrypted data on a blockchain, we are basically accepting that the encrypted data will eventually be <em>publicly shared and decrypted</em>. Who will agree to this? Things only get more difficult when we inevitably have to bring laws like GDPR and the right to be forgotten into the picture.</p><blockquote>“Great solutions are not engineered; they are finessed.”</blockquote><p>It therefore seems that encryption on a blockchain is a big red no-go zone. This leaves encryption on private channels (like on Fabric and Quorum) as an interesting attempt to solve the privacy concern. Both of these solutions use private channels to transmit data and they record proofs on a chain. There’s just one concern with that approach: If we are going to share private and encrypted data, then why not use traditional P2P and other data sharing technology?</p><p>After all, we have already established that blockchains are not data sharing infrastructure, so the functionality could be decoupled from the blockchain technology altogether. How should private data be shared? We could do it with anything from robust encrypted APIs to simple email, suffice it to say that how to store private data is not a problem that should be solved by blockchains, and that’s ok.</p><p>The same argument goes for document storage, workflows, and complex rules. Should organizations give up their Document Management Systems (DMSes), Business Process Management Suites (BPMSes), Business Rule Management Systems (BRMSes)? Giving up mature systems is surely premature.</p><p>Fortunately, there is an alternative way to share proofs without sharing any encrypted data. It has some limitations, but they’re not as tragic or as hopeless as one might assume. They’re not much different than the initial limitations of the Internet, which also couldn’t initially be used to stream movies, have voice conversations, and do secure credit card transactions. These awful limitations did not stop Amazon from selling books and challenging bookstores, and it did not stop Netflix from mailing DVDs and challenging movie rental shops. It turned out that a lot could be done with very limited functionality. Amazon did not need an e-book format, and Netflix managed to disrupt video rentals on the internet without the need to stream movies. They just mailed their product to their customers by post. This is because great solutions are not engineered; they are finessed.</p><p>One data structure that allows for impenetrable privacy on a public blockchain is the infamous <a href="https://en.wikipedia.org/wiki/Cryptographic_hash_function">cryptographic hash function</a> used as a <a href="https://en.wikipedia.org/wiki/Fingerprint_(computing)">fingerprint</a> for data that is private. In many valuable blockchain use cases, it is not an arbitrary logic in a smart contract that provides value, but a timestamped proof of truth, and a hash posted to a blockchain does that.</p><p>The hash function is in principle totally obscure, which means that it does not contain information that can be decrypted into the original value. Therefore, we can use hashes to validate sensitive data in the open on a publicly accessible blockchain. Passing the data around off-chain using standard protocols and APIs, and using validation software to make sure that it cross-references with hashes that are on the blockchain.</p><p>Mechanisms to accomplish this have been developed long ago in the <a href="https://opentimestamps.org/">OpenTimestamps</a> standard and projects like Tierion building <a href="https://tierion.com/chainpoint">platforms</a> around the idea. Blockchain is already at the stage, where its limited functionality can be used to successfully disrupt a sleepy industry that might be feeling unjustifiably safe due to the inability of public blockchains to handle private data.</p><p><em>Note: The views presented in my articles are my own.</em></p><p><em>Accreditation: The material for Blockchain Myths (of which this post is a part) was developed at ConsenSys with the fantastic feedback and help of many individuals, including: Tee Ganbold, Zunaira Arshad, Micah Dameron, Chris Leishman, Van Sedita, John Wolpert, Jeff Gillis, Jérôme de Tychey, Ray Valdes, Igor Lilic, Joseph Khalife, and other great people roaming cryptoland.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6622f83acc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Myth 2: Blockchains are good for reliably sharing data]]></title>
            <link>https://medium.com/@brrabski/myth-2-blockchains-are-for-reliably-sharing-data-d4d3943404d0?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4d3943404d0</guid>
            <category><![CDATA[cap-theorem]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[myths]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 07:49:49 GMT</pubDate>
            <atom:updated>2019-05-12T18:10:45.810Z</atom:updated>
            <content:encoded><![CDATA[<h4>By <a href="https://medium.com/@jangrabski">Jan Grabski</a></h4><p><em>This is the second post in a 6 part series about prevailing myths in blockchain implementations. The </em><a href="https://media.consensys.net/series-myths-about-blockchains-856f31b6e986"><em>first myth was about blockchain vs bitcoin.</em></a></p><p>Sharing data between organizations and across markets has always been a source of friction. It seems obvious that a system should be created to consolidate business functionality and data across verticals, whether it be for invoice financing, retail currency transfers, interbank settlement, trade finance, or any other multi-sided ecosystem. Isn’t it strange that with the level of cloud-based solutions today such systems aren’t yet omnipresent? After all, it has been feasible to share data using secure online databases for quite some time. Why haven’t the world’s institutions bought into such systems? Could solving these inefficiencies be as simple as putting the data on the blockchain?</p><p>Blockchain makes it possible to share data across regions with a central-like trusted database to store and fetch this data from. But does it offer improvement? The cloud giants already make secure global data sharing possible with ever growing ease and blinding scale. Why would a slower type of system, like blockchain be a better choice? Is the challenge of sharing data securely over today’s Internet really technological? Do we actually still have trouble trusting technology? You probably trust your bank’s website, emailed bills, and you probably also order stuff online. Do you need anything more trustworthy? Odds are, you don’t stand to gain a whole lot from an incrementally more trustworthy data sharing platform.</p><p>Am I making a case against blockchain? No, but I <em>am</em> saying that blockchain is no better at sharing of data than a cloud-based solution, and it can be argued that it is actually <em>far</em> worse if used in the same way as we would use a cloud-based database solution.</p><blockquote>“Blockchain doesn’t replace databases, cloud infrastructure, rule engines, message queues, caches, and anything else that may be used to build an application, but it can serve to link or bond them across industries and markets.”</blockquote><p>For example, the idea of a blockchain platform being used as a trusted document or business process data repository is perhaps the most unfortunate misuse of blockchains. Can a data repository be implemented on blockchain technically? Yes. Should it be done? Here, I encourage you to draw your own conclusions.</p><h3>Blockchain is like mortar between bricks</h3><p>Remember how I said in <a href="https://media.consensys.net/series-myths-about-blockchains-856f31b6e986">article on Myth 1</a> that blockchain is a bonding medium? Let’s ponder for a moment, what “bonding medium” might mean. We could say that mortar is a bonding medium. How would that analogy work? Well, if blockchain is mortar, then it doesn’t do bricks, and data are the bricks. Bear with me.</p><p>The first thing you might have thought, when you learned about building walls with bricks is that there is this thing called mortar used to bond them together. The role of mortar is to fill gaps between the bricks, to spread load evenly, and to bond the bricks together, so that the wall doesn’t fall over. If you’re anything like me, you might have thought “if this mortar thing is so pliable and strong, why use bricks at all?”¹</p><p>Well, one reason not to use mortar to build with, is that mortar is bad at maintaining shape before it sets. Another reason is that mortar is heavier and more expensive than bricks. Yet another one is that bricks are better insulators. In short, even though you might be tempted to build your house with only strong and pliable mortar, I and any sane contractor will strongly advise you to reconsider. So it is with blockchain. It doesn’t replace databases, cloud infrastructure, rule engines, message queues, caches, and anything else that may be used to build an application, but it can serve to link or bond them across industries and markets.</p><h3>Can blockchains scale well enough?</h3><p>Blockchain cannot be better than traditional technology at some things that traditional technology already does well. What are these things? Vitalik Buterin’s <a href="https://github.com/ethereum/wiki/wiki/Sharding-FAQs#this-sounds-like-theres-some-kind-of-scalability-trilemma-at-play-what-is-this-trilemma-and-can-we-break-through-it">scalability trilemma observation</a> might suggest some answers.</p><p>To do this, let’s broaden the scope of the trilemma and think of it as not just related to blockchains, but to computer systems in general.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*R1yZDSdSVe2yE8fK" /><figcaption><em>Above is the scalability trilemma plotted out on a sort of flat three axis graph.² As a fun example, </em><a href="https://en.wikipedia.org/wiki/Voyager_Golden_Record"><em>Voyager Golden Record</em></a><em> is extremely secure (hard to modify), totally centralized, and not scalable at all.</em></figcaption></figure><p>Above is the scalability trilemma plotted out on a sort of flat three axis graph.² As a fun example, <a href="https://en.wikipedia.org/wiki/Voyager_Golden_Record">Voyager Golden Record</a> is extremely secure (hard to modify), totally centralized, and not scalable at all.</p><p>At the <strong>bottom of the graph</strong> we have private systems, which are the traditional types of systems that we can own and operate. We can make them quite safe by putting them inside a military bunker, for example, and we can make them scale by filling the room with as much hardware as we care to buy. These systems are not very decentralised, so if we care about the information stored on them, we need to trust their custodian and keep off-site backups. We can also make these systems physically quite private by limiting access to viewing what is stored on them. Even without encryption, these systems naturally lend themselves to security and privacy using limited physical access and rights management. This is why banks and government agencies use these systems extensively.</p><p>Next, on the <strong>right hand side of the graph</strong> are systems that are native to the Internet, which could be classified as public cloud and serverless cloud. These systems are multi-computer and multi-location. They can scale very well, since an algorithm could run across as many machines as are available. These systems are also decentralized, because the computing can be done across many geographical locations. A good example of a decentralized and reasonably scaled out system is BitTorrent. Some of the feats Google and Amazon do with their serverless code execution are both decentralized (across locations) and scaled to an impressive degree. These systems are very fast, but we have limited control over where our data goes and who can see or modify it, so in principle they are neither private nor secure and do not naturally lend themselves to privacy and security. These types of systems are loved by small startups that aren’t too concerned with privacy and security.</p><blockquote><em>“Blockchains are slow-moving steamrollers of the Internet,</em> and everything they roll over gets irreversibly impacted into the Internet’s substrate.<em>”</em></blockquote><p>Lastly, <strong>blockchains lie on the left hand side of the graph.</strong> They are a new type of computer system that is very trustworthy and as decentralized as we care to make them. This type of system uses a mix of data replication, cryptographic validation, and economic incentives to ensure immutability and it spreads itself across many locations to provide resilience. It has one problem though, which is that making and validating all those copies necessarily make it slower and less efficient than the other types of systems, since both private and cloud platforms can minimize the number of places that their data are stored and processed. As a new type of system, blockchains achieve their function by giving up the freedom to minimize the number of copies and by revealing relevant data to as many validators as possible. Blockchains are the darling of decentralized trans-jurisdictional marketplaces. Blockchains are slow-moving steamrollers of the Internet, and everything they roll over gets irreversibly impacted into the Internet’s substrate.</p><h3>Beware of dragons</h3><p>Looking at these three types of systems, we can observe another progression. Initially, general purpose computing was best done on private systems, while cloud was limited to application specific uses, like Google’s web search box or email. As the internet matured, cloud computing was made available for general purpose computing through public cloud platforms. Initially, blockchains were also application specific, but Ethereum changed that by exposing the blockchain as a general purpose computing platform by implementing a <a href="https://en.wikipedia.org/wiki/Turing_machine">Turing machine</a> (the theoretical model for a general purpose computer) inside it.</p><p>But just as general purpose cloud isn’t great at privacy, general purpose blockchain computing isn’t great at scaled distributed computing.</p><p>And so, the addition of a Turing machine to the blockchain opened the floodgates to misinterpretation of its benefits. If you ever wondered about why Bitcoin maximalists sigh at Ethereum, it is this. They’re not correct about Ethereum being inferior to Bitcoin, of course.³ But they have a valid point in that a blockchain isn’t a dumping ground for code and data. Because blockchains look so much like other general purpose computers, there is now widespread belief that the value of modern blockchain 2.0 technology for organizations is as a new general purpose storage with a general purpose CPU to replace P2P data sharing, workflows, document storage, and complex business logic and anything else that we would want to run in the cloud. On that path there be dragons.</p><blockquote>“Blockchains are not designed to be all-purpose databases, file sharing systems, or personal computers, and that’s a good thing.”</blockquote><p>Every digital technology that we use these days contains storage and a CPU, from a smartphone to a wireless computer keyboard, yet we don’t try to make the keyboard crunch workloads. Why is everyone all of a sudden asking blockchains to do everything?</p><p>Blockchains are not designed to be all-purpose databases, file sharing systems, or personal computers, and that’s a good thing. They are optimized to share unalterable facts that are validated against a fact history. We can even do some logic on these facts, but not that much (yet). Even though we could now think of blockchains as general purpose computers, we will be quickly disappointed with their performance and storage capacity. Because blockchains are massively redundant by design, they will never be as fast as systems that can minimize redundancy to achieve speed, and that’s ok. We can achieve these general storage and processing tasks on traditional private or public cloud systems very well already.</p><h3>Blockchains are great at storing proofs</h3><p>Before we collectively shed a tear for blockchain scalability, it’s important to understand that blockchains will get faster and gain capacity with time, but this will most likely be to a much smaller extent than traditional private and cloud systems. So what can we do with this insight? Quite a bit.</p><p>A useful mechanism (design pattern) for extracting value out of a blockchain is to use it as a store of truth about information objects that do not reside on the blockchain. An example could be a bill of lading in a trade finance use case a representation of a physical asset, like a house, or an abstract financial instrument, like an MBS (Mortgage Backed Security).</p><p>As a simple example, using a data structure called a Merkle Tree, we can store a single Merkle Root value on a blockchain and have it serve as a proof of existence for an almost arbitrary number of bills of lading at a given point in time. At any moment that we need to use the bill of lading, we first can validate it by verifying that it exists within a registered merkle tree that is in the blockchain and then proceed to process it as verified. After concluding our processing, we can store the new information in a similar merkle tree that is registered to the blockchain and send the document on its way to the next process step. While at first glance this mechanism might seem limited, because it doesn’t allow us to process the document on-chain, this is in fact not necessary to have the data on-chain to gain most of the value out of the use case. There’s more to this example and it deserves a separate paper, but suffice it to say that blockchains are best for sharing proofs, not information. How do I verify that my copy of data is the same as the official copy? I use a blockchain. How do I share the data itself? Not via blockchain.</p><p>—</p><p>¹ Before you stop me and say that walls can also be built of concrete or drywall, I’ll have to say that building walls out of other materials that are as good as brick walls is no picnic, so let’s stick to the brick and mortar analogy for now.</p><p>² The astute Computer Science major in you might see a parallel between the above diagram and the <a href="https://en.wikipedia.org/wiki/CAP_theorem">CAP Theorem</a>, and you would be right. The scalability trilemma is another take on that theorem and offers Brewer’s observation with a vocabulary of concepts that are more aligned with how we think about systems in practice.</p><p>³ Ethereum is a general purpose computer next to Bitcoin’s accounting calculator functionality. You might quip that a computer is just a glorified calculator, and you would be right, but the concept of the Turing machine implemented on top of a calculator takes the calculator to another dimension of capability that prompts the creation of a new word to describe it, which we now colloquially call <em>the computer</em>. And so, Ethereum is a new type of blockchain that takes concepts pioneered in Bitcoin to create a new concept that could be called <em>the blockchain computer </em>or<em> </em><a href="https://www.cryptopolitan.com/vitalik-buterin-believes-ethereum-is-the-current-world-computer/"><em>world computer</em></a>, as some would call it.</p><p><em>Note: The views presented in my articles are my own.</em></p><p><em>Accreditation: The material for Blockchain Myths (of which this post is a part) was developed at ConsenSys with the fantastic feedback and help of many individuals, including: Tee Ganbold, Zunaira Arshad, Arielle Schnaidman, Brett Li, Micah Dameron, Chris Leishman, Van Sedita, John Wolpert, Jeff Gillis, Jérôme de Tychey, Ray Valdes, Igor Lilic, and other great people roaming cryptoland.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4d3943404d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchains Myths: A Debunking Series]]></title>
            <link>https://medium.com/consensys-media/series-myths-about-blockchains-856f31b6e986?source=rss-ca65b2fad7d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/856f31b6e986</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[basics]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[brrabski]]></dc:creator>
            <pubDate>Sun, 04 Nov 2018 08:26:08 GMT</pubDate>
            <atom:updated>2018-11-08T12:50:56.997Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many prevailing beliefs, conceptions, and misconceptions about public blockchain implementations. Many of them are in regards to blockchains being inadequate for enterprises and governments. For example, the belief that blockchains do not provide sufficient privacy. But do they? Can they? What is fact? What is fiction?</p><p>In this series we will surface some of the most common narratives about blockchain and work to validate the underlying truths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEHz66iLRWhtZNcIrsB-iQ.png" /><figcaption>A modern take on the Rosetta Stone, complete with hashes of contributors to this series. Design by Mustafa Mufti.</figcaption></figure><h3>Myth 1: “It’s not bitcoin, it’s blockchain” and blockchain should be demystified by a more palatable term, like DLT.</h3><p>“It’s not bitcoin, it’s blockchain!” is a very common phrase that appeared in 2016 and rapidly gained popularity, because it expressed the insight that there is more to the cryptocurrency phenomenon than money. Although the statement is correct, it doesn’t help us understand why blockchain technology is more exciting than a distributed database with some security features. While bitcoin is understood well enough as a sort of new money, the term “blockchain” remains very open to interpretation. Saying “it’s not bitcoin, it’s blockchain!” while catchy, actually makes us think “it’s not new money, it’s blockchain”, which suggests that blockchain is somehow separate from the new money use case that is bitcoin. That subtle implication is what gets us in trouble, because it seems to imply that the invention of bitcoin is not about money, but something technological in nature. In this process, some of the sheen of blockchain seems to dull.</p><p>What makes matters worse is that we are surrounded by confirmations of this implication. Many more blockchains other than bitcoin emerged, many of them are used for things other than money, and it seems it is just a technology after all. It doesn’t help that that some have started to come up with better names for what they think blockchain is, like Distributed Ledger Technology or DLT. DLT then elegantly ingrains the word <em>technology</em> in the name of the phenomenon and dismisses new money entirely. Considering the amount of speculation surrounding the blockchain phenomenon, isn’t calling it Distributed Ledger <em>Technology</em> at least a little bit underwhelming? When you think about blockchain, do you not suspect that there’s more to this thing than some cloud-based database technology? I mean, why would a cloud database be so exciting? Your saved emails are probably stored on a trusted cloud database <em>for free</em>, and so is your phone backup at some nominal fee. Did blockchain tech all of a sudden inspire cloud providers to share their great platforms for less? Of course not, and it’s probably not even necessary. That begs the question, what exactly is so much better now that we have blockchain technology? Let’s explore the technological aspect of blockchain for a moment to find out if that hunch has any substance.</p><blockquote>“Adding in a limited supply of virtual tokens as a mining reward transforms the technological model into an economic one.”</blockquote><p>The technology underpinning blockchain (including Ethereum) daisy chains a number of <em>well known and</em> <em>well understood</em> technologies into <em>an incentive model that motivates spending large amounts of energy to validate a ledger and make it immutable.</em> That motivation effect is not technological, but economic in nature.</p><h3>6 Core Technologies: Paving Way for Blockchains</h3><ol><li><a href="https://en.wikipedia.org/wiki/Public-key_cryptography">Public-key cryptography</a>, first demonstrated in 1970, used to uniquely identify the owner of an address as the only party authorized to modify the state (ex. a balance) associated with an account.</li><li><a href="https://en.wikipedia.org/wiki/Peer-to-peer_file_sharing">Peer-to-peer file sharing</a>, first demonstrated in 1999, used to disseminate a copy of data to an undefined number of network nodes.</li><li><a href="https://en.wikipedia.org/wiki/Cryptographic_hash_function">Cryptographic hash functions</a> and <a href="https://en.wikipedia.org/wiki/Merkle_tree">Merkle Trees</a>, invented in late 1970s, used to link transactions into verifiable chains.</li><li><a href="https://en.wikipedia.org/wiki/Proof-of-work_system">Proof of work</a>, invented in 1993, used to demonstrate that a non-trivial amount of computer time was devoted to generating a given merkle tree.</li><li><a href="https://en.wikipedia.org/wiki/Smart_contract">Smart contracts</a>, invented in 1994, as a model for self enforcing agreements.</li><li><a href="https://en.wikipedia.org/wiki/Virtual_machine#Process_virtual_machines">Process Virtual Machine</a>, invented in 1966 and very widely used today (ex. Java Virtual Machine), to be able to compile smart contracts into abstract executables that can be evaluated and validated by a wide variety of hardware and software implementations.</li></ol><p>Any student of computer sciences will know how to use each one of these technologies, and the way that they are put together will seem obvious as a way to tamperproof a database. That first impression is a mistake. For what is non-obvious is that the problem with sharing trusted data was never for a lack of tamperproofing in the first place. Cryptographic signatures are already tamperproof enough, as are merkle trees, for that matter. If we just focus on the tamperproofing, we miss the real breakthrough, which is that sprinkling of magic dust called proof of work. Using proof of work to agree on a correct order of transactions and adding in a limited supply of virtual tokens as a mining reward for doing that transforms the technological model into an economic one. Let’s dwell on this for a moment, because this is truly big stuff.</p><p>Looking at blockchain’s technologies is like looking at clockwork in a pocket watch. We tend to focus on the pieces: a toothed wheel here, another one there, a spring, a sparkle of a jewel, a frame. You might even spot an <a href="https://en.wikipedia.org/wiki/Escapement">escapement</a>. Have you ever tried looking at a pocket watch mechanism and tried to find, what makes it tick? I have, and I can tell you that focusing on so many moving parts separately makes it easy to miss the big picture about what makes it keep time, for it’s not the wheels, the jewels, and not even the spring (not on its own at least) that make the clock go tick-tock. The element that makes it keep time is a piece of mass captured in a pendulum that repeatedly converts kinetic into potential energy and back. Remember energy from physics class? Well, the only thing that matters for this argument is that it’s invisible. No wonder you couldn’t spot it!</p><blockquote>“In a trustless network you don’t have to trust anyone to participate, you only need to trust both math and physics.”</blockquote><h3>Tick-Tock for Every Block</h3><p>And so, just like a clock, the technologies of blockchain and the energy focused economic and social models that they embody are all part of one grand design that goes tick-tock for every block. They fit together, like clockwork, and they lose their purpose if something is missing.</p><p>Stepping back from the blockchain clockwork and accepting it as one mechanism, we can begin to understand that the economic model that incentivises making it expensive to attack a blockchain makes all these technologies conjure a trustless network. You don’t have to trust anyone to participate. You only need to trust both math <em>and</em> physics. Not needing to trust anyone to be able to trust a record makes it possible to come to agreement on a single sequence of events without having to know, where or <em>who</em> we got it from. It just so happens that this trustless mechanism brings a new level of utility to the internet and with it, a new incarnation of <em>money.</em></p><p>Until now, it has not been possible to have a scarce resource that is not based in physical matter. Since money needs to have a limited supply to be useful, we only had two choices on how to mint it: we could make money out of durable and scarce physical resources, like gold or silver, or if we wanted a more convenient paper or digital version, we needed to trust someone to keep an honest supply book (or ledger), and to safeguard against counterfeiting. Because blockchain isn’t controlled by any one party or group, but can be trusted to keep a tally of a scarce quantity, it can programmatically issue its own form of money, called cryptocurrency. Bitcoin is the first such cryptocurrency and the most famous one. Not only can we now have completely digital money that is more immune from dishonest actors than any form before it, because it this money lives in computer code, we can write computer programs called smart contracts to control this money and a bunch of other things as well. Think of it like <em>money that</em> <em>lives on the Internet. </em>This phenomenon isn’t limited to only money, it could be anything you want to keep track of without the possibility of cheating. Because this stuff is programmable, you can even make things keep track of themselves. This blows my mind every time I think about it.</p><p>Through all this recording, it’s important to remember that the cryptocurrency that is issued on the blockchain is part and parcel of an economic incentive mechanism that keeps the blockchain record backed up on thousands of computers, and growing in an orderly way without needing to trust anyone to keep things honest. You may have heard of this growing mechanism as mining.</p><p><em>So, through its trustless permanence blockchain becomes the bonding medium for the Internet’s default transience</em>. Put simply, the blockchain is a place, where you can record some bits of information permanently without incurring maintenance costs <em>forever</em>. In light of the bonding property of blockchain, the term DLT underperforms by a large margin. <em>Programmable money</em> is a good runner up, but it’s still too focused on money. Money is a necessary property of blockchain, but let’s not mistake the tick-tock of a pendulum for the utility of the pocket watch. Did I just take the clockwork analogy too far?</p><p>This all begs the question: why do we need a better word for blockchain? Do we need a more descriptive name for the Internet? Put another way, blockchain could be to DLT, like Internet would be to Computer Network Technology, a term I invented just now. Would CNT be a useful term to describe the development of services that we associate with the Internet? The Internet is about much more than computer networking; it is about sharing knowledge, global availability, borderless commerce, access to resources, sharing data, transactional banking, social networking, email, and an ever growing list of other valuable use cases. How would calling it CNT help anyone understand the potential of the next great Internet startup?</p><p>Blockchain is much more than a distributed ledger, and it is much more than money, it is a <em>medium</em> <em>that bonds the Internet’s transient data</em>. This bonding medium can be used as a mortar between the building blocks of the world’s economy. Does that sound strange and mysterious? It should. The Internet once did too.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F13e0a7%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F13e0a7%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb70db0a21c4e8715b29a5306af17d39/href">https://medium.com/media/eb70db0a21c4e8715b29a5306af17d39/href</a></iframe><p><em>Disclaimer: The views expressed by the author above do not necessarily represent the views of Consensys AG. ConsenSys is a decentralized community with </em><a href="https://medium.com/consensys-media"><em>ConsenSys Media</em></a><em> being a platform for members to freely express their diverse ideas and perspectives. To learn more about ConsenSys and Ethereum, </em><a href="https://consensys.net/"><em>please visit our website.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=856f31b6e986" width="1" height="1" alt=""><hr><p><a href="https://medium.com/consensys-media/series-myths-about-blockchains-856f31b6e986">Blockchains Myths: A Debunking Series</a> was originally published in <a href="https://medium.com/consensys-media">ConsenSys Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>