<?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 Blockstack on Medium]]></title>
        <description><![CDATA[Stories by Blockstack on Medium]]></description>
        <link>https://medium.com/@blockstack_pbc?source=rss-19349106268a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cp45eSbti0qI4mWXl5Zznw.png</url>
            <title>Stories by Blockstack on Medium</title>
            <link>https://medium.com/@blockstack_pbc?source=rss-19349106268a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:52:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@blockstack_pbc/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[Learn to Build Decentralized Applications In an Hour: Introducing ‘Zero-to-Dapp’]]></title>
            <link>https://medium.com/blockstack-blog/learn-to-build-decentralized-applications-in-an-hour-introducing-zero-to-dapp-d6369818875a?source=rss-19349106268a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6369818875a</guid>
            <category><![CDATA[decentralized-apps]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[dapps-tutorial]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Blockstack]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 07:09:41 GMT</pubDate>
            <atom:updated>2019-01-18T07:17:22.662Z</atom:updated>
            <content:encoded><![CDATA[<p>by Mary Anthony</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jFyXLlXLuBP2BFfLQlv5BA.png" /></figure><p>Learning to build a decentralized blockchain application doesn’t have to be difficult or time-consuming for developers. Using languages and frameworks they already know, Blockstack makes it easy to build decentralized applications that protect privacy, are inherently more secure, provide data portability, <a href="https://blockstack.org/what-is-blockstack/">and more</a>.</p><p>To help make getting started even easier, we’re introducing the <a href="https://docs.blockstack.org/develop/zero_to_dapp_1.html">‘Zero-to-Dapp’ tutorial. </a>The tutorial is a step by step sequence designed to help developers quickly understand the Blockstack platform, the benefits of decentralized architecture, and create a working decentralized application, all in just about an hour.</p><p>While working through the Zero-to-Dapp tutorial, developers will create a multi-page web app called ‘Animal Kingdom’. In the course of building the application developers without previous blockchain or decentralized application experience will:</p><ul><li>Learn how decentralized applications (Dapps) are different from traditional web or mobile apps.</li><li>Explore the Blockstack Ecosystem and its powerful platform capabilities.</li><li>Discover the potential resources available through App Mining.</li><li>Build a multi-page web dapp using standard front-end frameworks.</li><li>Deploy and publish your application</li></ul><p>In addition to learning a new approach and platform, developers who complete the Zero-to-Dapp tutorial and submit it to <a href="https://app.co/">App.co</a> get a free limited edition t-shirt (pictured below).</p><p>As you begin building we welcome you to join the Blockstack community, you can connect with thousands of other developers and the Blockstack PBC team via <a href="http://chat.blockstack.org/">Slack</a> and the <a href="https://forum.blockstack.org/">Forum</a>.</p><p><a href="https://docs.blockstack.org/develop/zero_to_dapp_1.html">Start Now</a></p><p><em>Originally published at </em><a href="https://blog.blockstack.org/learn-to-build-decentralized-applications-in-an-hour-introducing-zero-to-dapp/"><em>blog.blockstack.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6369818875a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blockstack-blog/learn-to-build-decentralized-applications-in-an-hour-introducing-zero-to-dapp-d6369818875a">Learn to Build Decentralized Applications In an Hour: Introducing ‘Zero-to-Dapp’</a> was originally published in <a href="https://medium.com/blockstack-blog">Blockstack Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchains and Consensus Protocols: Liveness and Correctness are Inseparable]]></title>
            <link>https://medium.com/blockstack-blog/blockchains-and-consensus-protocols-liveness-and-correctness-are-inseparable-756b9d966fa2?source=rss-19349106268a------2</link>
            <guid isPermaLink="false">https://medium.com/p/756b9d966fa2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[blockstack]]></category>
            <category><![CDATA[proof-of-work]]></category>
            <category><![CDATA[consensus-protocol]]></category>
            <dc:creator><![CDATA[Blockstack]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 07:07:25 GMT</pubDate>
            <atom:updated>2019-01-18T07:07:25.121Z</atom:updated>
            <content:encoded><![CDATA[<p>by <a href="https://twitter.com/AaronBlankstein">Aaron Blankstein</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSAQvKESxTYJeT8QELxbIw.png" /></figure><p>In the world of blockchains, <em>consensus protocols</em> are widely discussed. However, it’s often hard to distinguish between competing protocols and evaluate them, especially because it is not always clear how a particular protocol solves a consensus problem, or how that particular problem relates to the practical concerns of blockchains (e.g., when is my transaction confirmed? what fork am I on?). In this post, I will outline the problem that consensus protocols are trying to solve, detail what a valid consensus protocol should achieve, and hopefully this will help convey which approaches to this problem are likely to bear fruit.</p><p>Roughly speaking, consensus protocols aim to achieve agreement between mutually distrusted parties. In networks like the Bitcoin network, nodes are attempting to reach agreement on <em>what to include in the next block.</em> In this network, blocks tell us what transactions have been broadcasted, and the order of those transactions. Other consensus protocols are usually similar — they tell clients the order in which operations should be applied.</p><p>As a user of a consensus protocol, you might initially think “Well, I’m not so concerned about the order and timing of operations, so long as I can guarantee those operations are correct.” Indeed, correctness is an important property. However, this property is completely linked to the order and timing of operations. To see why, let’s look at some example transactions.</p><p><strong>T1:</strong> Public Key A transfers coin “Z” to Public Key B</p><p><strong>T2:</strong> Public Key A transfers coin “Z” to Public Key C</p><p><strong>T3:</strong> Public Key B transfers coin “Z” to Public Key D</p><p>Now, when examined individually, confirming that these transactions are correct is trivial. For transactions 1 and 2, a verifier need <em>only</em> confirm that the transaction was signed by the private key corresponding to A. This is achievable with rather boring cryptography, and has been a solved problem for decades. But examining these transactions individually isn’t interesting, and doesn’t provide a useful measure of correctness. I want to know whether or not I “own” coin Z, in the sense that nobody else can convincingly attempt to transfer that coin without my permission. What do consensus protocols have to say about this?</p><p>Well, importantly, in a consensus protocol, clients and nodes in the network reach an agreed upon <em>view of the world,</em> and that view of the world includes an ordering of transactions. Once we can order transactions, we can begin to evaluate whether or not they are valid at a specific point in time. For example, if a consensus protocol establishes that at Time 0, coin “Z” is owned by Public Key A, and that the transactions are ordered as T1, T3, T2 — then clearly T1 and T3 are <em>valid,</em> but T2 is <em>not</em> (because after T1 broadcasts, Z is owned by Public Key B, and no longer Public Key A). However, if the protocol establishes that the transactions are ordered T2, T1, T3, then <em>only</em> T2 is valid. Clearly, <em>order</em> and <em>timing guarantees</em> matter. Fortunately, this is exactly what consensus protocols attempt to provide.</p><p>Consensus protocols provide two guarantees with respect to order and timing:</p><ol><li><strong>Safety:</strong> As long as the protocol does not have more than some threshold of faulty participants, other participants cannot convince a client to accept an incorrect or invalid message.</li><li><strong>Liveness:</strong> As long as the protocol does not have more than some threshold of faulty participants, other participants cannot indefinitely delay the acceptance of a correct message.</li></ol><p>What do these guarantees usually mean in the context of blockchains? As we saw before, incorrect messages are nearly trivial to validate as such on the blockchain. Does that mean safety is a trivial property to achieve? Why is liveness important when it comes to timing of transactions, and the order of transactions? What does any of this have to do with forks?</p><p>To map this into the context of blockchains, we have to first understand what, <em>exactly,</em> blockchains are trying to achieve consensus <em>on</em>. The answer, it turns out, isn’t messages, or even transactions: it’s histories. A blockchain client is continuously trying to figure out which history of transactions is the “true” history. From the previous example of transactions, a client would need to conclude which of these two possible histories is the correct one:</p><p><strong>History 1:</strong> Transaction 1, Transaction 3.</p><p><strong>History 2:</strong> Transaction 2.</p><p><em>Nakamoto</em> consensus uses Proof-of-Work mining and a “longest chain wins” metric to decide on which history is the correct history. And this history <em>should match the expected</em> history if all nodes in the network were honest.</p><p>With this understanding, we can now frame our two consensus guarantees as they relate to blockchains:</p><ol><li><strong>Safety:</strong> As long as the protocol does not have more than some threshold of faulty participants, other participants cannot convince a client to accept a history which is the wrong history,</li><li><strong>Liveness:</strong> As long as the protocol does not have more than some threshold of faulty participants, other participants cannot prevent clients from accepting some history as the correct history.</li></ol><p>Interestingly, when it comes to blockchains (though this is true of <em>most</em> consensus protocols), our usual understanding of properties like correctness, validity, ordering, and timing require guarantees of both <em>safety</em> and <em>liveness</em> simultaneously. This is just the nature of blockchains. If I want to be confident that I cannot be attacked via a “double-spend”, I need to know, first, that the transaction will be accepted in a timely fashion, and second, that once accepted, the transaction is very unlikely to be in an orphaned block.</p><p>This is why safety and liveness are <strong>inseparable</strong> properties of fault-tolerant protocols. Fault tolerant protocols use techniques to guarantee liveness which affect safety and vice-versa. For example, in Practical Byzantine Fault Tolerance (one of the most influential fault-tolerant consensus protocols– I recommend reading the <a href="http://pmg.csail.mit.edu/papers/osdi99.pdf">’99 paper</a> from MIT), the two-phase commit mechanism used by replicas is what ensures that the replicas make progress, but it is also how new messages are accepted into the protocol history. If this mechanism were faulty, it would affect <em>both</em> safety and liveness. <strong>These properties cannot be effectively treated or proven in the absence of the other — a protocol which assumes liveness can be trivially safe</strong>. A protocol which waves away concerns about safety can always make progress.</p><p>If blockchains are going to revolutionize the way that people interact on the internet, and I believe they will, then the proper functioning of those blockchains is massively important. When evaluating the technologies and plans for various platforms, it’s essential to remember the fundamental problems that a blockchain is trying to solve. At a basic level, that problem is an old one: achieving consensus while tolerating some number of faulty or malicious actors. In both theory and practice, this means providing liveness and safety guarantees. However, these guarantees are inseparable, because the mechanisms for providing one always affect the other.</p><p>Now, when evaluating projects that are trying to make progress on new mechanisms for achieving consensus in support of open blockchains, projects that sufficiently treat these twin concerns are the most likely to bear fruit. Some projects like <a href="https://www.stellar.org/">Stellar</a> use consensus protocols in a federated model (non-open), but provide sound fault-tolerance guarantees. <a href="https://www.algorand.com/">Algorand</a> has also made significant progress towards building a fault-tolerant protocol, though the question of dealing with open-membership sets is still open. Our own blockchain design work provides fault-tolerance guarantees while also enabling open-membership through Proof-of-Burn mining. Progress on that work can be tracked in pull requests on our <a href="https://github.com/blockstack/blockstack-core/pull/888">blockstack-core Github repository</a>.</p><p><em>Originally published at </em><a href="https://blog.blockstack.org/blockchains-and-consensus-protocols-liveness-and-correctness-are-inseparable/"><em>blog.blockstack.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=756b9d966fa2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blockstack-blog/blockchains-and-consensus-protocols-liveness-and-correctness-are-inseparable-756b9d966fa2">Blockchains and Consensus Protocols: Liveness and Correctness are Inseparable</a> was originally published in <a href="https://medium.com/blockstack-blog">Blockstack Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>