<?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 Medha Parlikar on Medium]]></title>
        <description><![CDATA[Stories by Medha Parlikar on Medium]]></description>
        <link>https://medium.com/@mparlikar?source=rss-253749d98c20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qm_PR1r6aQ-K8rwZsc2XJQ.jpeg</url>
            <title>Stories by Medha Parlikar on Medium</title>
            <link>https://medium.com/@mparlikar?source=rss-253749d98c20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:35:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mparlikar/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[CasperLabs Releases Node 0.20]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-20-f6f27f24d3?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f27f24d3</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 16:53:10 GMT</pubDate>
            <atom:updated>2020-07-27T18:29:47.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HV4cPxAVDzXaeYll3FrNpQ.png" /></figure><p>In our largest release since the Testnet, our June release (version 0.20) adds contract headers, contract upgrades and support for multiple key types (secp256k1, secp256r1, ed25519) for accounts, bonding and transaction signing. The combination of these elements in this updated model allow for sophisticated smart contracts to be written and improve the experience of both using and maintaining stored session logic and smart contracts on the Casper network.</p><h3>Technical Details about this Release</h3><h4>Contract Headers</h4><p>The Casper blockchain executes wasm contracts that are either passed in a session code as part of a transaction (one-time execution), or called from an address in the global blockchain state store. Casper transactions are meta-transactions, containing both payment code and session code in a single deployment. Both payment and session code can have arguments, which are passed in at runtime. With this release, these arguments must be named and typed. Once named, it’s possible to send arguments in any order when invoking the contract.</p><p>Technical Release Notes for Contract Headers:</p><ul><li>Users can now store a contract package at a stable hash. Contract packages can optionally include user defined access control groups (as a set of specific Urefs stored under a label).</li><li>Each contract package is issued an access uref required for administration of the contract package, issued to the account that created the package. This Uref can be distributed if desired to allow multiple maintainers.</li><li>Users can store one or more versions of their logic in a contract package under a stable hash, and manage those versions individually. Individual versions can be disabled or left available as desired (for instance, to allow a transition period between versions). This replaces the previous mechanism of storing and updating a contract under a Uref.</li><li>Each version of stored logic can have one or more entry points defined. Each entry point can have zero or more named and typed arguments defined for it. Each entry point can be public / anonymous (allows any caller) or require inclusion in a user defined access group (defined and managed on the contract package). Additionally, entry points can be defined as session (run in the calling account’s context) or Contract (run in the contract’s context).</li><li>Stored logic can be accessed directly using either the contract package hash and the sequential version of the logic, or the version specific contract hash. Alternatively, if a contract package hash is provided without a contract version the highest available version of that contract package will be defaulted to (note however it is the caller’s responsibility to ensure compatibility).</li><li>The metadata describing contract packages and contract versions is systemically checked and is queryable; thus it is possible to inspect the definition of a contract package, its contract versions, and their endpoints including arguments and return values.</li><li>Helper functions are provided in the contract_api to make using these new features easy for contract writers.</li></ul><h4>Rust Contracts DSL</h4><p>The easiest way to use contract headers is to use the contracts DSL. These are macros that add the code to set up the contract in the runtime and create the entry points for the contracts. Check out the <a href="https://docs.casperlabs.io/en/latest/dapp-dev-guide/index.html">Developer guide</a> for instructions on how to use them.</p><h4>Support for Multiple Key Types</h4><p>The Casper network now supports multiple encryption algorithms for account keys. Developers can now use any of these key types on the system. With secure enclave compatibility, Apple devices can function as hardware wallets for Casper accounts.</p><ul><li>Secp256k1 — Ethereum style keys</li><li>Secp256r1 — Apple secure enclave keys</li><li>Ed25519 — Casper key</li></ul><p>We believe that offering key storage on devices with a robust recovery story is an imperative feature to any network or protocol. Our system supports robust key recovery functions such as key delegation and even on chain social recovery (it’s possible to assign several other accounts recovery permissions in a multi-signature fashion).</p><h4>Optimizations</h4><p>We continue to work on optimizations to improve the performance of the network. In this release we have ported the token transfer function to the host side of the contract runtime. This enables token transfers to take place without requiring wasm to be passed or stored in the global state.</p><p><strong>Description of release packaging</strong></p><p>Release packaging includes:</p><ul><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>tar.gz</li></ul><h3>Where do developers go to learn more and get started?</h3><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases/tag/v0.20.0">Github</a></li><li>Docs available at: <a href="https://docs.casperlabs.io/en/latest/dapp-dev-guide/index.html">https://docs.casperlabs.io/en/latest/dapp-dev-guide/index.html</a></li></ul><h3>Where will bugs be filed?</h3><p>Report a bug on <a href="https://github.com/CasperLabs/CasperLabs/issues">GitHub</a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord: <a href="https://discord.gg/Q38s3Vh">https://discord.gg/Q38s3Vh</a></p><h3>About CasperLabs</h3><p>CasperLabs is the blockchain platform purpose-built to scale opportunity for everyone. Building toward blockchain’s next frontier, CasperLabs is designed for real-world applications without sacrificing usability, cost, decentralization, or security. CasperLabs removes the barriers that prevent mainstream blockchain adoption by making blockchain friendly to use, open to the world, and future-proof to support innovations today and tomorrow. Guided by open-source principles and built from the ground up to empower individuals, the team seeks to provide an equitable foundation made for long-lasting impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f27f24d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-20-f6f27f24d3">CasperLabs Releases Node 0.20</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building An Efficient Blockchain]]></title>
            <link>https://medium.com/casperlabs/building-an-efficient-blockchain-847aef937efd?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/847aef937efd</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[consensus]]></category>
            <category><![CDATA[omega]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 15:22:15 GMT</pubDate>
            <atom:updated>2020-06-04T15:22:15.397Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ysoJ2S0_0BYuFN-dgNeGg.png" /></figure><p>Last week, we enabled Omega blocks in the CasperLabs Testnet. Since we received a lot of inquiries on what Omega blocks are and why they matter, we wanted to take some time to explain this concept.</p><p><strong>Highway</strong></p><p>To understand Omega blocks, first you have to understand<a href="https://medium.com/casperlabs/introducing-casperlabs-highway-552d7c2ee1b4"> Highway</a>. Highway is the consensus protocol that powers the CasperLabs blockchain. It is the first specification for a provably live and safe consensus protocol within the CBC Casper framework.</p><p>In Highway within a given era there are a fixed set of validators, each with their own stake and round exponent. The individual round exponents dictate how frequently the validator will send messages and participate in consensus. For each millisecond, the protocol determines who is the leader (so each round has a leader; someone with round exponent 0 would consider every millisecond as a separate round for themselves). This is a deterministic process in the protocol, it depends on some entropy collected between the key and the booking block, in addition to their stake.</p><p>For example, with round exponent 15, the validator would participate in rounds starting at every 2**15=32768th milliseconds (~32 seconds) after the start of the era. Each validator can have a different round exponent. This is the <em>partial synchrony property</em> of Highway.</p><p>In each round, validators have to “show up” and minimally vote on the leader block with an Omega message. Without Omega blocks, only the leader proposes a Lambda block with transactions. This is a simple description of the liveness property of the protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*-yxt0EGvy8hAEX-NZRwN3A.png" /><figcaption>Rounds, leader blocks and ballots</figcaption></figure><p>There are a few optimizations that we need to make to Highway so that the protocol provides a great user experience and is efficient. Optimizations are trade-offs between security (validator set size), consensus message overhead (O(N)) and time to finalization (round lengths). We won’t compromise security, so that is off the table for us. That leaves us with message overhead and time to finality to work with.</p><p>Say you have Alice, Bob and Charlie with stakes 50, 49 and 1, respectively. Maybe Charlie has a lower round exponent than Alice or Bob, and participates in a lot of rounds where none of the other two are doing anything, but still he only has 1% chance of leading any round. That means if some user deploys to Charlie, their deploy could be stuck there for a long time.</p><p>If we want blocks to go out quickly, we would need low round exponents, but every round has 2*N messages, where N is the number of validators. This generates a lot of useless data in storage and creates a lot of work as well to validate the correctness of all the messages.</p><p>In consensus-speak this is referred to as the O*(N) message problem. Many fork choice PoS protocols (like Tendermint) suffer from this problem. This is the reason for the small validator set sizes in many of these protocols. Our goal is to support many hundreds and hopefully thousands of validators in the CasperLabs protocol — so O*(N) message overhead won’t do.</p><p><strong>Optimizing Highway with Omega Blocks</strong></p><p>Enter Omega blocks. Omega blocks work really well if you have a decentralized application and plan to send a lot of transactions to the blockchain. Rather than sending a ballot, your node can propose blocks during each round and these transactions will be finalized by the end of the round. This reduces the consensus overhead from O*(N) and provides a better UX for developers and end users. This also reduces network overhead, as these deploys don’t have to be gossiped over the network.</p><p>Here is a screenshot from the testnet. Omega blocks show up “between the rounds”. Omega blocks are larger than ballots and take much more time to gossip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BO9Tc31WusLywLywsQSTow.png" /><figcaption>Omega blocks in Testnet</figcaption></figure><p>What about those nodes that aren’t a front end for a decentralized application or users that want to send transactions to the blockchain that don’t know about a trusted node? They will want assurances that eventually their transaction will make its way to an honest node. Deploy gossiping is how this happens. Deploy gossiping happens in both Bitcoin and Ethereum today.</p><p>Now what if we run both deploy gossiping and Omega blocks enabled at the same time? That again depends on the round exponent. With just Omega blocks enabled, only validators who had a deploy will produce a block for an Omega, and the others will send a ballot. If we enable deploy gossiping across the network, we could assume that all the nodes always have deploys, so they can each produce blocks for Omega during each round. Whether they do so depends on how long the round is: if it’s long enough and they have a chance to see each other’s Omegas, then the next validator to propose will eliminate all the deploys which are already executed and in the past cone of the DAG. Otherwise they will produce a block which will likely contain some of the same deploys as other Omega blocks. Validating these blocks cannot sidestep executing the contracts to check the correctness of the post state hash, making the combination of the two potentially wildly inefficient.</p><p>However, with longer rounds, enabling both could be beneficial because:</p><ul><li>If an Omega-message block is not picked as a parent by the next block, then some other validator will include the same deploys, rather than just the same validator in the next round. This reduces the likelihood of orphaned blocks.</li><li>A deploy doesn’t have to wait on a leader block, rather it would appear at whoever is producing the next Omega.</li></ul><p>This configuration enables us to maintain liveness in the protocol and reduce the consensus overhead in the protocol.</p><p>We updated the configuration in the testnet to have 8 minute rounds. With Omegas enabled and assuming uniform distribution, the network can propose up to 25 blocks per round (1 lambda, 24 omegas), so once per ~20 seconds, which is more stringent without the massive communication overhead and wasted disk space.</p><p>The Last Finalized Block moves less often, but the orphan rate is reasonably low at the same time.</p><p><strong>A Deeper Dive into Efficiency</strong></p><p>The beauty of the Highway protocol is that it adjusts according to network conditions and traffic, such that it will optimize for the best efficiency and performance. Omega blocks are one facet of what we have developed to bring this technology to its proper scale. Other areas where we are fine tuning the protocol are block sizes, deploy sizes and of course, the performance of the VM and software itself.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.pollsify.com%2Fc%2Fld0yQ5&amp;dntp=1&amp;display_name=Pollsify&amp;url=https%3A%2F%2Fwww.pollsify.com%2Fc%2Fld0yQ5&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=pollsify" width="800" height="650" frameborder="0" scrolling="no"><a href="https://medium.com/media/85d704787b2393364d99684096ed1a43/href">https://medium.com/media/85d704787b2393364d99684096ed1a43/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=847aef937efd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/building-an-efficient-blockchain-847aef937efd">Building An Efficient Blockchain</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs Launches Testnet — Kicking off the Zug500]]></title>
            <link>https://medium.com/casperlabs/casperlabs-launches-testnet-kicking-off-the-zug500-31495ff93169?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/31495ff93169</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[testnet]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Tue, 31 Mar 2020 20:04:21 GMT</pubDate>
            <atom:updated>2020-04-01T16:31:19.398Z</atom:updated>
            <content:encoded><![CDATA[<h3>CasperLabs Launches Testnet — Kicking off the Zug500</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bOirjku4clmyC40GCfPVA.png" /></figure><p>Today, we are excited to announce that we are taking a major step forward in our journey to bring blockchain into the mainstream with the <strong>launch of our first public incentivized test network (“Testnet”) — the Zug500</strong>. We are proud to report that this public alpha version of the network has launched on time by an esteemed subset of our founding validators.</p><h3><strong>About the CasperLabs Testnet</strong></h3><p>This network presents the MVP implementation of the <a href="https://github.com/CasperLabs/highway">Highway Protocol</a> — <strong>the first provably live pure Proof-of-Stake (PoS) CBC-Casper variant</strong>. Highway enables participants of all types to join the network, even with different network speeds and processing capability. Our liveness strategy enables us to keep the network truly permissionless without any compromises.</p><p>The protocol assumes honest validators for the time being, while economic security is being implemented. During the first lap of the Zug500, our focus will be on fine tuning the protocol in addition to the evolution of the processes by which updates are communicated to the community.</p><h3>Network Participants</h3><p>It’s no mystery that making a fully decentralized PoS network isn’t easy, and can’t be done alone. We are grateful to have an admirable group of founding validators who have joined us on the mission to build a safe and secure decentralized network. We are proud to announce the following validators for our first Testnet:</p><ul><li><a href="https://hashquark.io/">HashQuark</a></li><li><a href="https://snzholding.com/">SNZ Pool</a></li><li><a href="https://stake.fish/">Stakefish</a></li><li><a href="https://acherontrading.com/">Acheron</a></li><li>RU Validators Club</li><li><a href="http://arcadia.agency/">The Arcadia Group</a></li><li>UABWebas.It</li><li>Morrestyn</li><li><a href="https://ledgerleap.com/">LedgerLeap</a></li><li>DelightLabs</li><li><a href="https://stratx.io/">StratX</a></li><li><a href="https://blockblox.io/">BlockBlox</a></li><li>Along with several other individual validators from the CasperLabs community</li></ul><p>While we have a sufficient number of validators for the launch of our first testnet, there will certainly be more opportunities to join the validator set over the coming months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrS0VaMlSZolkH9tjUxycg.png" /></figure><h3>Solving Blockchain’s Adoption Problem by Putting Builders First</h3><p>At CasperLabs we believe that mass adoption means bringing public blockchain technology into mainstream software engineering. Having built and delivered software at scale, we know what businesses need when they select a platform to build on. Key features of the protocol include:</p><ul><li>The ability to control access to contracts and data with permissioned references</li><li>The freedom and power to upgrade on-chain contracts</li><li>Seamless development onboarding with the Rust SDK, supported by familiar tools and workflows like the GraphQL interface</li><li>Turing complete payment code and a type system that makes business process automation fast and easy</li></ul><p>All of this can be done with the security and speed expected from a public blockchain.</p><h3><strong>The Race to Mainnet</strong></h3><p>We still have a lot of work to do before we cross the finish line. In the coming months we will continue to improve the protocol by adding economic security, bonding and unbonding — which will make the protocol permissionless and decentralized. The Highway Protocol will also be consistently optimized and fine tuned for performance over the coming months. Expect more smart contracting features as well!</p><h3><strong>Getting Started with the Network</strong></h3><p>It is possible to observe the network, create accounts and use the faucet via our block explorer at <a href="https://testnet-explorer.casperlabs.io/#/">https://testnet-explorer.casperlabs.io</a></p><p>Monitor our network on <a href="https://grafana.casperlabs.io/d/tlZ4zTrZk/testnet-block-processing?refresh=5s&amp;orgId=1&amp;var-job_type=testnet_external">Grafana</a>:</p><p>For developers who would like to explore blockchain development, you can <a href="https://www.youtube.com/watch?v=P8ljeSxg4NA&amp;t=">get started</a> with our contracts SDK and our <a href="https://techspec.casperlabs.io/en/latest/dapp/index.html">developer guide</a>.</p><h3>Where will bugs be filed?</h3><p><strong>Report a bug on </strong><a href="https://github.com/CasperLabs/CasperLabs/issues"><strong>GitHub</strong></a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/Q38s3Vh">https://discord.gg/Q38s3Vh</a>.</p><h3>About CasperLabs</h3><p>CasperLabs is the blockchain platform purpose-built to scale opportunity for everyone. Building toward blockchain’s next frontier, CasperLabs is designed for real-world applications without sacrificing usability, cost, decentralization, or security. CasperLabs removes the barriers that prevent mainstream blockchain adoption by making blockchain friendly to use, open to the world, and future-proof to support innovations today and tomorrow. Guided by open-source principles and built from the ground up to empower individuals, the team seeks to provide an equitable foundation made for long-lasting impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31495ff93169" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-launches-testnet-kicking-off-the-zug500-31495ff93169">CasperLabs Launches Testnet — Kicking off the Zug500</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Consensus Protocol Won’t Solve the Adoption Problem]]></title>
            <link>https://medium.com/casperlabs/your-consensus-protocol-wont-solve-the-adoption-problem-95a533ca4414?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/95a533ca4414</guid>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[consensus]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 17:55:53 GMT</pubDate>
            <atom:updated>2020-03-27T17:55:53.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rynywmOGcbgt2nZg" /></figure><p><strong>What is a Consensus Protocol?</strong></p><p>For thousands of years human societies have had consensus protocols running implicitly, allowing for shared transactions, economies, and more. Consensus protocols are the rules that allow a group of computers to agree on the state of something. This is what makes a decentralized system “distributed.” Properly functioning consensus algorithms are imperative to a robust and secure network as they are responsible for maintaining the integrity and security of these distributed systems.</p><p>Today, more and more blockchains are being created with various new consensus offerings. Many solutions have innovated greatly on the legacy Nakamoto consensus and recently, we see even more projects place a large emphasis on consensus protocols that optimize performance, namely the “TPS” or “transactions per second” game.</p><p><strong>The Truth About Consensus Protocols</strong></p><p>In a space engulfed with shilling which next new fangled protocol will give 100,000 TPS, most, if not all, even claim to solve the scalability trilemma. What many fail to understand is that in the end, consensus protocols aren’t really going to matter.</p><p>While distributed consensus is imperative to a fully functioning decentralized system, consensus protocols are only one side of the story. Those that are trying to build on blockchain don’t need a new criteria for safety or liveness. In actuality, all they want from consensus are a few basic things — did my transaction go through? Can it be reversed? Are my interactions with the blockchain secure? How much did it cost?</p><p>Builders need usability, great tooling, and in-built mechanisms that will scale as they scale. We preach end-user “mass adoption” as an industry, but we fail to first look at how we can improve the experience of our own product developers.</p><p><strong>Blockchain Has Work to Do</strong></p><p>Thanks to thousands of developers, academics, entrepreneurs, investors, and everyday enthusiasts, our technology has come a long way. While we see strong hypotheses around what potential end-users may want, it’s time for solutions to bridge the gap between the theoretical and the tangible and build platforms that deliver frictionless developer user experiences. The faster we can accelerate these development experiences, the faster we can achieve blockchain-market fit. This is how we challenge the status quo.</p><p>How are new networks actually going to be built on top of a protocol? Do developers have to learn a new obscure custom language? How are we enabling our builders with easy testing mechanisms? Do these users need to run a node in their own CI setup? How do we optimize for best practices drilled into our heads by our DevOps and SRE teams?</p><p>These are only a few of the many questions that has driven what we have built at CasperLabs. Blockchain doesn’t need a new cool consensus algorithm that will scale, blockchain needs software that developers can use in a professional development environment with languages that already exist in the marketplace and tools they are familiar with.</p><p>Flexibility and a strong user experience are the two most enduring reasons for making product choices. Nodes should be automatically SRE and DevOps ready. Imagine handing over a blockchain node to your Network Operations group and telling them “make sure it stays up in production.” It just wouldn’t work. Our industry needs easy to use tools for validators, dApp developers, <em>and</em> end users. As all these user’s capabilities grow, so does blockchain’s viability for business.</p><p><strong>Builders First</strong></p><p>Ultimately, a new consensus protocol is not the panacea to more adoption, but it is a useful tool when the overhead is justified by the system’s needs. A good place to start is by thinking through many of the inefficiencies our developers face today and removing those barriers so that our builders can create applications faster, in a more robust manner, and most importantly, at scale. In the end, the consensus protocol won’t really matter much — it’s everything else that matters the most.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95a533ca4414" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/your-consensus-protocol-wont-solve-the-adoption-problem-95a533ca4414">Your Consensus Protocol Won’t Solve the Adoption Problem</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs Adds AssemblyScript Support and a Rust Contracts SDK]]></title>
            <link>https://medium.com/casperlabs/casperlabs-adds-assemblyscript-support-and-a-rust-contracts-sdk-119edf2d4ea0?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/119edf2d4ea0</guid>
            <category><![CDATA[webassembly]]></category>
            <category><![CDATA[assemblyscript]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 19:13:55 GMT</pubDate>
            <atom:updated>2020-02-14T19:13:55.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDa6A9tK3RQq4F4IVAC1bA.png" /><figcaption>Big features for Builders</figcaption></figure><p>In this release, we are pleased to offer 2 large features to support dApp developers — AssemblyScript contracts and a Rust contract development kit that includes a runtime environment, documentation and test framework.</p><p>Most platforms don’t support native development workflows and many blockchain developers need to run full or light nodes in order to develop contracts. Custom IDE’s have been built for custom programming languages, requiring developers to use several tools to develop applications for businesses.</p><p>Our Contracts Development Kit not only leverages the existing Rust development toolchains and ecosystem, but also will work with any IDE that supports Rust development.</p><h3>Introducing Cargo CasperLabs</h3><p>Developers who want to use Rust (recommended for financial applications) can create a crates project for their smart contracts and run their contracts in a testing framework with the CasperLabs contract runtime environment. This enables developers to use a seamless workflow for authoring and testing their smart contracts. This environment can also be used for continuous integration, enabling Rust smart contracts to be managed using development best practices. Details are on <a href="https://github.com/CasperLabs/CasperLabs/blob/dev/execution-engine/cargo-casperlabs/README.md">Github</a> and we’ve simplified the process into 5 easy steps:</p><ul><li>Install cargo CasperLabs.</li></ul><pre>cargo install cargo-casperlabs</pre><ul><li>Create your project “my_project”</li></ul><pre>cargo casperlabs my_project</pre><ul><li>Set up your Rust environment for building</li></ul><pre>cd my_project/contract<br>rustup install $(cat rust-toolchain)<br>rustup target add --toolchain=$(cat rust-toolchain) wasm32-unknown-unknown</pre><ul><li>Now your project can be built using</li></ul><pre>cargo build --release</pre><ul><li>The SDK also sets up a test framework. Run tests by:</li></ul><pre>cd my_project/tests<br>cargo test</pre><h3>Rustdocs</h3><p>As part of the Rust development environment enhancements, we also present Rustdocs for the contracts library. The Rustdocs are available at:</p><ul><li><a href="https://docs.rs/casperlabs-contract/0.2.0/casperlabs_contract/">https://docs.rs/casperlabs-contract/</a></li><li><a href="https://docs.rs/casperlabs-types/0.2.0/casperlabs_types/">https://docs.rs/casperlabs-types/</a></li><li><a href="https://docs.rs/casperlabs-engine-test-support/">https://docs.rs/casperlabs-engine-test-support/</a></li></ul><h3>Smart Contracts in Assembly Script</h3><p>For developers that would prefer to use a scripting type language, the W3C foundation has implemented AssemblyScript <a href="https://docs.assemblyscript.org/">https://docs.assemblyscript.org/</a> for WebAssembly. We have created a contracts library that enables developers to create smart contracts for WebAssembly using AssemblyScript.</p><p>Quite often AssemblyScript is conflated with TypeScript, and while these 2 languages are both scripting languages, there are several differences which are documented and contract developers should be aware of these differences. To access the AssemblyScript contract library — you can search on: <a href="https://www.npmjs.com/search?q=casperlabs">https://www.npmjs.com/search?q=casperlabs</a> or install it in this fashion:</p><pre>npm i @casperlabs/contract</pre><h3>GraphQL Enhancements:</h3><p>We offer new relationships in GraphQL that support retrieving the child relationships given a block hash. Example query:</p><pre>query {</pre><pre>block(blockHashBase16Prefix: &quot;a3016e93f101da2781eae0696064df8c1ca770058b1d1eae261cfd4034f47547&quot;) {<br>blockHash<br>parents {<br>   children {<br>     blockHash<br>     }<br>   }<br>  }<br>}</pre><p>The GraphQL interface is available on every node, and public DevNet interface is at <a href="http://devnet-graphql.casperlabs.io:40403/graphql">http://devnet-graphql.casperlabs.io:40403/graphql</a></p><h3>Building Highway- Paving a path to the Future</h3><p>We are making great progress towards our first production implementation of Highway with eras, with rounds and leaders, proposal messages, confirmation responses, and witness messages. The Round exponents can be configured but there is no auto-adjustment. We expect that this will allow us to deploy the Alpha TestNet and to the test environment so that we can study the protocol under different conditions and identify opportunities to stabilize, harden and optimize it while we also build the additional security and rewards distribution features.</p><h3>Getting Ready For Our Next Big Milestone…</h3><p>We are preparing to embark on a round of performance testing, optimizing and tuning of the protocol as we integrate it into the node in the coming weeks. To support these efforts, the team has been working hard on preparing extensive test infrastructure.</p><p>Launching a blockchain network within a hostile permission-less setting is non-trivial. The elevated risk profile of such an undertaking requires a concomitant level of sophistication in respect of system testing. CasperLabs is currently building out the STests platform to enable teams to perform system testing both at scale and in detail. The platform is being designed in an extensible fashion and aims to square the circle between simulations at the dApp and game theoretical levels. Note that the platform is under heavy development for the next 2–3 weeks and may undergo non-trivial changes.</p><p>We will publish the specification for STests next week to our <a href="https://github.com/CasperLabs/stests/wiki">Github</a>. Stay tuned!</p><p><strong>Get Started with this release</strong></p><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>Brew package</li><li>tar.gz</li><li>Docs available on <a href="https://github.com/CasperLabs/CasperLabs/wiki">GitHub</a> (Wiki)</li></ul><h3>Where will bugs be filed?</h3><p>Report a bug on <a href="https://github.com/CasperLabs/CasperLabs/issues">GitHub</a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/Q38s3Vh">https://discord.gg/Q38s3Vh</a>.</p><h3>About CasperLabs</h3><p>CasperLabs is the blockchain platform purpose-built to scale opportunity for everyone. Building toward blockchain’s next frontier, CasperLabs is designed for real-world applications without sacrificing usability, cost, decentralization, or security. CasperLabs removes the barriers that prevent mainstream blockchain adoption by making blockchain friendly to use, open to the world, and future-proof to support innovations today and tomorrow. Guided by open-source principles and built from the ground up to empower individuals, the team seeks to provide an equitable foundation made for long-lasting impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=119edf2d4ea0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-adds-assemblyscript-support-and-a-rust-contracts-sdk-119edf2d4ea0">CasperLabs Adds AssemblyScript Support and a Rust Contracts SDK</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs releases Node 0.11]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-11-158f81fde6e5?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/158f81fde6e5</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[casperlabs]]></category>
            <category><![CDATA[pos]]></category>
            <category><![CDATA[buidl]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Thu, 16 Jan 2020 22:55:17 GMT</pubDate>
            <atom:updated>2020-01-16T22:55:17.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4SKA7NSSJBiXF9_BShSlw.png" /></figure><h3>About this Release</h3><p>In this release we introduce the CasperLabs type system. CLTypes represent the CasperLabs type system, types are important in computer systems because they define interfaces across the different portions of a system and provide a means to verify that all the parts are connected consistently. A type system is required in order to support Contract Headers, which is important for contract development and contract discovery.</p><h4>Improvements for Users</h4><p><strong>Stream of Finalized blocks</strong></p><p>The safety properties of CBC-Casper provides for block finalization — a condition where a transaction is considered irreversible. Users sending transactions to the system will want to know when transactions are finalized. For this purpose, we present a gRPC endpoint that provides a stream of finalized blocks. DApp developers can use this API to present information about finalized transactions to their end users.</p><p><strong>Improved Key Management</strong></p><p>Users can now upload existing keys to the <a href="https://clarity.casperlabs.io/">CLarity</a> interface (private keys are not stored, only public keys) — so they can fund these keys from the faucet via the CLarity interface. The system supports EC25519 keys, and users can assign a human-readable name to the key, for simpler management. Private keys still need to be stored carefully offline, or in a secure location.</p><h4>Example Token Contract &amp; Transfer functions</h4><p>We introduce an example token contract modeled after ERC20 that includes buy and sell methods, which enables dApp developers to create their own token on the platform and move this token between accounts. CLX will be required to fund these transactions.</p><h4>Noteworthy Fixes:</h4><p>While most blockchains support the ‘sender pays’ payment model, the CasperLabs system supports turing complete payment code -within a single deployment, 2 blocks of wasm bytecode can be processed— one for payment, one for contract execution. Developers can write complex payment methods to fund their contract execution if desired. Before this release, only errors in session code execution were returned. Now, errors from payment code execution are returned to the user.</p><p>We have corrected an inconsistency in the system where accounts were referenced using the base64 and base16 representation. We have opted to use the base16 representation of keys throughout the system.</p><p><strong>Get Started with this release</strong></p><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>tar.gz</li><li>Docs available on <a href="https://github.com/CasperLabs/CasperLabs/wiki">GitHub</a> (Wiki)</li></ul><h3>Where will bugs be filed?</h3><p><strong>Report a bug on </strong><a href="https://github.com/CasperLabs/CasperLabs/issues"><strong>GitHub</strong></a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/Q38s3Vh">https://discord.gg/Q38s3Vh</a>.</p><h3>About CasperLabs</h3><p>CasperLabs is the blockchain platform purpose-built to scale opportunity for everyone. Building toward blockchain’s next frontier, CasperLabs is designed for real-world applications without sacrificing usability, cost, decentralization, or security. CasperLabs removes the barriers that prevent mainstream blockchain adoption by making blockchain friendly to use, open to the world, and future-proof to support innovations today and tomorrow. Guided by open-source principles and built from the ground up to empower individuals, the team seeks to provide an equitable foundation made for long-lasting impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=158f81fde6e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-11-158f81fde6e5">CasperLabs releases Node 0.11</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs Releases Node 0.10]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-10-848916f580bf?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/848916f580bf</guid>
            <category><![CDATA[cbc]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[casperlabs]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Wed, 18 Dec 2019 22:50:32 GMT</pubDate>
            <atom:updated>2019-12-18T22:50:32.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*68eQZl44pVJO_bYk5HxX4A.png" /><figcaption>Validators finalizing a block</figcaption></figure><p>We are thrilled to report the early release of Node 0.10. With this release, we announce concurrent contract execution in the CasperLabs Execution Engine. Additionally, parsed wasm modules for system functions are cached during deploy execution, improving performance.</p><h3>About this Release</h3><p>This release introduces an easy process to create a local DevNet, complete with a block explorer for use by developers to test their contracts and interact with the blockchain on a local system.</p><p>A video demonstrating this process is available on <a href="https://www.youtube.com/watch?v=pZZySRY_qbI">YouTube</a></p><p>Before this release, developers could compile their contracts and send their transactions to the <a href="http://deploy.casperlabs.io/">DevNet</a>, or use Docker to set up a local network.</p><p>Deployments now have a ‘Time to Live’ parameter, a duration by which the deploy can be included in a block prior to expiration. If no parameter is specified, a default (defined in the Chainspec — Genesis block) will be used. DApp developers can use this feature to create time-sensitive deployments, which have interesting applications such as purchasing tickets and reserving seats and games. The syntax for the parameter in a deploy is:</p><pre>casperlabs-client --host <a href="http://deploy.casperlabs.io/">deploy.casperlabs.io</a> --session mycontract.wasm --payment-amount 10000000<br>  --ttl 600 --private-key mykey.key</pre><p>The above command sets Time to live to 600 milliseconds.</p><p>Developers can now use the client to generate keys via a command line interface, rather than having to use the web interface in CLarity.</p><pre>Subcommand: keygen - Generates keys.<br> Usage: casperlabs-client keygen &lt;existingOutputDirectory&gt;<br> Command will override existing files!<br> Generated files:<br>   node-id               # node ID as in casperlabs://c0a6c82062461c9b7f9f5c3120f44589393edf31@&lt;NODE ADDRESS&gt;?protocol=40400&amp;discovery=40404<br>                         # derived from node.key.pem<br>   node.certificate.pem  # TLS certificate used for node-to-node interaction encryption<br>                         # derived from node.key.pem<br>   node.key.pem          # secp256r1 private key<br>   validator-id          # validator ID in Base64 format; can be used in accounts.csv<br>                         # derived from validator.public.pem<br>   validator-id-hex      # validator ID in hex, derived from validator.public.pem<br>   validator-private.pem # ed25519 private key<br>   validator-public.pem  # ed25519 public key</pre><p><a href="https://clarity.casperlabs.io/">CLarity</a>, the block explorer has been enhanced to provide the list of validators present in a given block. This feature enables users to observe their block approaching finality in each of the validator’s DAG’s. Users can now observe their block being finalized by the validators in the network.</p><p>Previously, Mac users had to download tarballs for installation of the system, we are pleased to offer brew based installation for the Macintosh platform.</p><pre>brew tap CasperLabs<br>brew install CasperLabs_Client CasperLabs_Engine CasperLabs_Node</pre><h4>Performance Improvements</h4><p>The Execution Engine now processes contracts concurrently, and is faster at processing transactions thanks to caching of system contracts. Processing time for block creation and block validation in the node has also been improved as part of our ongoing performance optimization work.</p><p>Part of validating blocks and finalizing transactions in Casper is validation of the fork choice rule, and identifying the ‘Latest Common Ancestor’ in the DAG. During our testing, we discovered that identifying the latest common ancestor was too computationally intensive and not efficient. In this release, we have moved to using the Last Finalized Block, which has simplified fork choice rule validation.</p><h4>Features for Monitoring Node Performance</h4><p>The CasperLabs node server emits information that is essential for monitoring node health and uptime. Metrics are emitted at a configurable port. An example of these metrics for the DevNet is viewable on <a href="https://grafana.casperlabs.io/d/VyxgJe4Wz/devnet-nodes?refresh=5s&amp;orgId=1&amp;from=now%2Fd&amp;to=now">Grafana</a> publicly. New metrics for ‘Sync Travel Efficiency’ and ‘Relay acceptance Rate’, help diagnose issues with DAG traversal with complex DAG structures.</p><p>Operators can use these metrics with their monitoring system of choice. We are pleased to now offer logs with a standard json format, which can be exported to a log query system such as Elk or Greylog.</p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/mpZ9AYD">https://discord.gg/mpZ9AYD</a></p><h3>About CasperLabs</h3><p>CasperLabs is the blockchain platform purpose-built to scale opportunity for everyone. Building toward blockchain’s next frontier, CasperLabs is designed for real-world applications without sacrificing usability, cost, decentralization, or security. CasperLabs removes the barriers that prevent mainstream blockchain adoption by making blockchain friendly to use, open to the world, and future-proof to support innovations today and tomorrow. Guided by open-source principles and built from the ground up to empower individuals, the team seeks to provide an equitable foundation made for long-lasting impact.</p><h3>Description of release packaging</h3><p>Release packaging includes:</p><ul><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>Brew package</li><li>tar.gz</li></ul><h3>Where do developers go to learn more and get started?</h3><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docs available on<a href="https://github.com/CasperLabs/CasperLabs"> GitHub</a> (<a href="https://github.com/CasperLabs/CasperLabs/blob/dev/README.md">README</a>)</li></ul><h3>Where will bugs be filed?</h3><p>Report a bug on <a href="https://github.com/CasperLabs/CasperLabs/issues">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848916f580bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-10-848916f580bf">CasperLabs Releases Node 0.10</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs releases Node 0.9]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-9-73740e43b6ba?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/73740e43b6ba</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[proof-of-stake]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 00:58:47 GMT</pubDate>
            <atom:updated>2019-12-04T00:58:47.880Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uARCrTaEIRU4vbTM2UeU2w.png" /><figcaption>BlockDAG in Highway with leaders and summits</figcaption></figure><p>CasperLabs is pleased to announce the release of Node 0.9*. In this release, we implement ‘Deploy Dependencies’, which lets users explicitly enforce an ordering to their deploys.</p><p><strong>About this Release</strong></p><p>As CasperLabs prepares for its public TestNet release, this release introduces many improvements. Node 0.9 includes enhancements to the GraphQL interface and optimizations to improve stability and performance of the system.</p><p><strong>Imposing a total order on Deploys</strong></p><p>The CasperLabs blockchain processes blocks concurrently. Contract authors may have specific requirements to impose a total order on their deployments. With Deploy Dependencies, users can explicitly enforce an ordering to their deploys. This important feature addresses use-cases where ordering of execution of deploys in a certain manner is essential for success of the task (e.g. I can’t pay my rent until my salary is deposited into my bank account).</p><h3>Extended GraphQL schema</h3><p>The GraphQL schema has been updated to include the following:</p><ul><li>Query the deploys of any account</li><li>Obtain the latest deploys</li></ul><h3>Payment Amount is required</h3><p>With Node 0.9, deployments must include the payment-amount parameter and specifically the amount of ‘100000000’. This is a temporary requirement, as the payment-amount parameter specifies the maximum amount of token that the caller is willing to pay for a transaction.</p><pre>casperlabs-client --host localhost deploy --session ~/casperlabs-counter/target/wasm32-unknown-unknown/release/counter_define.wasm --payment-amount 100000000 --private-key ~/keys/Myprivate .private.key</pre><p>To see the full set of features in the client, run the client with the help option.</p><pre>casperlabs-client --help</pre><h3>Other changes in this Release</h3><h4>Improved Usability</h4><p>The contract_api module was broken into logical groupings of functions and made more explicit via sub-modules. This improves the user experience around discovering what capabilities are made available by the contract_api. The groupings are:</p><ul><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/account.rs">account.rs</a></li><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/contract_ref.rs">contract_ref.rs</a></li><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/error.rs">error.rs</a></li><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/runtime.rs">runtime.rs</a></li><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/storage.rs">storage.rs</a></li><li><a href="https://github.com/CasperLabs/CasperLabs/blob/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api/system.rs">system.rs</a></li></ul><p>and can be found at <a href="https://github.com/CasperLabs/CasperLabs/tree/cfbafe85cf29f8021a417fbfbe18249e0baa3341/execution-engine/contract-ffi/src/contract_api">contract_api</a>.</p><p><strong>New Client Features</strong></p><ul><li>Users can explicitly state which instance of the CasperLabs blockchain a deploy is being sent to. The — chain-name option can be set during deployment. If set, it has to match the chain name in the ChainSpec on the validator that receives the deployment.</li><li>Users can now print information of a deploy created by make-deploy and possibly modified by sign-deploy. The “print-deploy” command is configurable to:</li><li>use either JSON or Protobuf text encoding</li><li>use base16 bytes encoding or default one which is base64 for JSON and ASCII-escaped for Protobuf text encoding</li></ul><h3>System Optimizations:</h3><ul><li>The algorithm for initial synchronization when a peer joins a network has changed to start at the Genesis Block and traverse forward until tips (previously it was getting tips from peers and then traversing back to the Genesis block.)</li><li>Ensuring a validator doesn’t try to propose more than 1 block at the same time is essential to avoid equivocations. However, serializing the block processing itself for blocks created by <em>other</em> validators was an artificial restriction that limited throughput. In this release we remove the blockProcessingLock from MultiParentCasper that only allowed the node to process 1 block at a time. Now, the BlockAPI will take out a proposal lock, so a validator will not propose 2 blocks at the same time and the DownloadManager will feed the blocks in topological order to addBlock.</li><li>We have optimized the way a Node handles backoff by switching to alternative sources when it can (even by interrupting its own backoff if an alternative pops). Only if all alternatives failed will a Node back off before trying again.</li><li>Requeue orphaned deploys before proposing a new block rather than after adding blocks from any other validator.</li><li>Optimized the Fork-choice by preloading the DAG Store and store data in CachingDagStorage on inserts and lookups. During lookups we cache not only a single block but its neighborhood — blocks from the past and future. The radius of the neighborhood is configurable during construction.</li><li>Block Validation: When block is received, node will validate that it was built using correct protocol version and mark block invalid if it wasn’t.</li><li>To defend against malicious repeated downloads, a new component RateLimiter which allows limiting the rate of arbitrary F[A] has been added. This component is used to rate-limit the getBlockChunked intra-node RPC. The rate limitation is disabled by default.</li><li>The contract-examples directory has migrated to CasperLabs/execution-engine/contracts/examples and the build process has been updated to be aware of the new location. The directory where they had previously been located has been deprecated. It is probably best to refresh and delete the deprecated directory.</li><li>Improved time to create blocks by copying deploy summary and body into buffered_deploys table to eliminate joins with the full deploys table.</li></ul><p><strong>Get Started with this release</strong></p><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>tar.gz</li><li>Docs available on <a href="https://github.com/CasperLabs/CasperLabs/wiki">GitHub</a> (Wiki)</li></ul><h3>Where will bugs be filed?</h3><p><strong>Report a bug on </strong><a href="https://github.com/CasperLabs/CasperLabs/issues"><strong>GitHub</strong></a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/Q38s3Vh">https://discord.gg/Q38s3Vh</a>.</p><h3>About CasperLabs</h3><p>CasperLabs is building a transformative blockchain for all applications that require a high degree of security, fast execution, and predictable economics. Our technology is built on the purest implementation of the proof-of-stake CBC-Casper protocol. We deliver a fully-decentralized, permissionless, public, and open source blockchain platform that supports developers with robust tools, application insights, and predictable fee structures.</p><p>*Late announcement</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73740e43b6ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-9-73740e43b6ba">CasperLabs releases Node 0.9</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs releases Node 0.8]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-8-a80c7b76ace2?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80c7b76ace2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Mon, 28 Oct 2019 14:41:12 GMT</pubDate>
            <atom:updated>2019-10-28T14:41:12.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-QRDXGuB8QqYYX5NDo6tg.png" /><figcaption>Genesis block for DevNet, including protocol versions.</figcaption></figure><p>CasperLabs is pleased to announce the release of Node 0.8. This release introduces a simple and secure ‘Genesis process’ — the method by which the blockchain itself is created.</p><h4><strong>About this Release</strong></h4><p>CasperLabs is preparing for our public TestNet release, and this release introduces enhancements to the Blockstore, the Genesis process for the blockchain, and optimizations such as more efficient gossiping, deploy buffer cleanup and support for multiple bootstrap nodes in the network.</p><h3>Technical Details about this Release</h3><h3>Flexible Blockstore storage</h3><p>The blockchain has to be stored locally on each machine. The total state of the blockchain is made up of 3 parts.</p><ul><li>The Global state, which represents the current state of contracts.</li><li>The Block Store, comprised of the actual blocks themselves</li><li>The DAG Store, the relationships between the blocks, and justification messages</li></ul><p>To make the data easily accessible, the blockstore and DAGStore have been moved to a SQLite database, making querying and retrieving data much simpler for dApp developers.</p><h3>New Client Features</h3><p>The official client is the Scala client that ships with the package. We are pleased to report that we have added several new client calls for frequently used features. Some key ones are:</p><ul><li>Transfer: transfers token from one account to another. This function will also create the destination account if it does not exist.</li><li>Balance: checks the balance of an account at a given block hash.</li></ul><p>To see the full set of features in the client, run the client with the — help option.</p><h3>Optimizations</h3><p>We continue to work on optimizations to improve the performance of the network. Some of the performance improvements in this release are:</p><ul><li>Switching from ‘Push’ based Gossiping to ‘Push &amp; Pull’ based Gossiping to improve efficiency</li><li>Incorporating ‘Time to Live’ for erasing deploys after a specified time to prevent buffer overflows</li><li>Notifications to run in the background. A node that is slow to receive gossiped data slows down the entire process. There’s no reason to wait for the notifications to finish though, so run them in the background so downloads and block proposals can continue unhindered.</li><li>Support for multiple Bootstrap Nodes</li></ul><h3>Contract Development Template</h3><p>We are pleased to announce the creation of contract development environment, to help dApp developers get started. This kit is located at: <a href="https://github.com/zie1ony/casperlabs-smart-contract-template">https://github.com/zie1ony/casperlabs-smart-contract-template</a></p><p>There are also examples for a counter contract (https://github.com/zie1ony/casperlabs-counter) and a multi-signature example (<a href="https://github.com/zie1ony/casperlabs-multisign-example">https://github.com/zie1ony/casperlabs-multisign-example</a>) for developers to get started with.</p><h3>Community Developer Documentation</h3><p>We have improved our Wiki on GitHub to help support community engagement. Our wiki on GitHub is located at: <a href="https://github.com/CasperLabs/CasperLabs/wiki">https://github.com/CasperLabs/CasperLabs/wiki</a></p><p><strong>Description of release packaging</strong></p><p>Release packaging includes:</p><ul><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>tar.gz</li></ul><h3>Where do developers go to learn more and get started?</h3><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docs available on <a href="https://github.com/CasperLabs/CasperLabs/wiki">GitHub</a> (Wiki)</li></ul><h3>Where will bugs be filed?</h3><p><strong>Report a bug on </strong><a href="https://github.com/CasperLabs/CasperLabs/issues"><strong>GitHub</strong></a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/mpZ9AYD">https://discord.gg/mpZ9AYD</a></p><h3>About CasperLabs</h3><p>CasperLabs is building a transformative blockchain for all applications that require a high degree of security, fast execution, and predictable economics. Our technology is built on the purest implementation of the proof-of-stake CBC-Casper protocol. We deliver a fully-decentralized, permissionless, public, and open source blockchain platform that supports developers with robust tools, application insights, and predictable fee structures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80c7b76ace2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-8-a80c7b76ace2">CasperLabs releases Node 0.8</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CasperLabs releases Node 0.7]]></title>
            <link>https://medium.com/casperlabs/casperlabs-releases-node-0-7-daac281a9fa6?source=rss-253749d98c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/daac281a9fa6</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[proof-of-stake]]></category>
            <dc:creator><![CDATA[Medha Parlikar]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 23:37:06 GMT</pubDate>
            <atom:updated>2019-09-17T23:37:06.077Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*OuDNxa7CIe-zEcietewooQ.png" /><figcaption>Simulator output of finality with 11 validators</figcaption></figure><p>CasperLabs is pleased to announce the release of Node 0.7. Here we introduce usability features that simplify deployments and make the system easier to use, along with a new high-performance finality detector. The CasperLabs blockchain supports smart contracts that compile to WASM. Presently, compilation targets for Rust are available.</p><h3>About this Release</h3><p>The Scala client has been updated to take both the contract WASM bytes (or contract address) and a list of &lt;name:value&gt; pairs for arguments. This feature is available for both payment code as well as session code. For example, it is possible to have payment code where a 3rd party pays for deployments using a multi-sig wallet, and the account id for the multi-signatures could be passed in as deploy parameters.</p><p>For simpler transactions the node now supports ‘Standard Payment Code’ (sender pays) that is used as the default where no payment code is supplied for the deploy.</p><p>We have removed the nonce from deploys, with the introduction of persistent deploy buffers, these are no longer needed to prevent replay attacks or to order transactions.</p><h3>Technical Details about this Release</h3><h4>Support for deploy command arguments</h4><p>In previous releases, deploying a smart contract required that the calling dApp (first) hard-code arguments in the contracts (and then) precompile the contract (with arguments) into WASM. Further, there were 2 sets of WASM bytes required: one for payment code and one for session code. This design had two drawbacks: first, hardcoding arguments does not promote flexible application structure; and, the need to continually re-deploy the same basic contract is a waste of space on the chain.</p><p>This release addresses both of these usability issues. The deploy command can now accept a list of arguments for either (or both) of the payment and session contracts, as values of parameters — session-args and — payment-args. It is a more flexible interface for dApp developers to use, but the original interface also remains.</p><p>The list of arguments passed with — session-args and — payment-args should be a list of protobuf consensus.Arg objects serialized to Proto 3 JSON format, for example:</p><pre>--session-args &#39;[{&quot;name&quot;: &quot;amount&quot;, &quot;value&quot;: {&quot;long_value&quot;: 123456}}]</pre><p>For detailed documentation and more examples see <a href="https://github.com/CasperLabs/CasperLabs/blob/dev/docs/CONTRACTS.md">CONTRACTS.md</a>.</p><p>Additionally, payment and session contracts previously stored on the chain can be called by providing the hash, uref, or name of the contract. This cuts down on the amount of WASM passed and the amount of transaction data stored. The following is a list of parameters now available in the deploy subcommand:</p><pre>-p, --payment    &lt;arg&gt; Path to the file with payment code.</pre><pre>--payment-hash   &lt;arg&gt; Hash of the stored contract to be called <strong>in</strong> the payment; base16 encoded.</pre><pre>--payment-name   &lt;arg&gt; Name of the stored contract (associated with the executing account) to be called <strong>in</strong> the payment.</pre><pre>--payment-uref   &lt;arg&gt; URef of the stored contract to be called <strong>in</strong> the payment; base16 encoded.</pre><pre>--private-key    &lt;arg&gt; Path to the file with account private key (Ed25519)</pre><pre>--public-key     &lt;arg&gt; Path to the file with account public key (Ed25519)</pre><pre>-s, --session    &lt;arg&gt; Path to the file with session code.</pre><pre>--session-hash   &lt;arg&gt; Hash of the stored contract to be called <strong>in</strong> the session; base16 encoded.</pre><pre>--session-name   &lt;arg&gt; Name of the stored contract (associated with the executing account) to be called <strong>in</strong> the session.</pre><pre>--session-uref   &lt;arg&gt; URef of the stored contract to be called <strong>in</strong> the session; base16 encoded.</pre><h3>Deployment simplifications</h3><h4>Removal of Nonce</h4><p>With the introduction of a persistent deploy buffer in the previous release, the nonce is no longer necessary to prevent replay attacks or guarantee sequential execution of conflicting deploys. The nonce has been removed from the API as well as from the Explorer, both the Scala and Python clients, GraphQL and the protobuf interfaces.</p><h4><strong>Standard Payment code as default</strong></h4><p>If no payment code is supplied for the deploy, CasperLabs will assume the use of the standard payment code. The standard payment code assumes that the calling account is the account paying for the execution of the payment and session contracts. The following represents the standard payment contract. More complex payment contracts are possible, but this captures the minimum behavior to satisfy the payment logic. The contract can be found in <a href="https://github.com/CasperLabs/CasperLabs/blob/v0.7.0/execution-engine/contracts/client/standard-payment/src/lib.rs">GitHub</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*qgqG5fQwAd9akGuDtEZD8g.png" /><figcaption>Standard Payment Code</figcaption></figure><h4>Deploy Selection Strategy</h4><p>This release adds a basic deploy selection strategy with a block size limit. The strategy is to lazily consume a stream of Deploys from the DeployBuffer and send it to the Execution Engine and collect commuting effects until it reaches the end of the deploy stream or reaches block size limit. There&#39;s a config parameter <strong>max-block-size-bytes </strong>(or CLI parameter <strong>--casper-max-block-size-bytes</strong>) that allow user to set the maximum block size (default is 10MB).</p><h4>A Faster Inspector: The Voting Matrix</h4><p>The Voting matrix” is a high-performance implementation of <a href="https://hackingresear.ch/cbc-inspector/">The Inspector</a> finality criterion. The main idea is that every validator maintains a mutable data structure reflecting the most recent knowledge on consensus establishing process. This structure is a square matrix <strong>N x N</strong>. where <strong>N</strong> is the number of validators. The <strong>Cell (i, ,j)</strong> in the matrix reflects the information “<strong>V(i)</strong> can see <strong>V(j)</strong> voting for consensus value <strong>P</strong>.</p><p>The matrix is updated:</p><ul><li>every time <strong>V</strong> creates a new message</li><li>every time <strong>V</strong> receives a message from the network</li></ul><p>The key improvement in the voting matrix algorithm (as opposed to the “reference” algorithm described in “The Inspector” spec) is the incremental nature of the processing. Instead of restarting the whole finality detection from scratch on every new message appearing in j-DAG, it keeps a mutable representation of the “finality situation” accumulated so far, and incrementally updates this information on every new message. This saves a lot of computation time.</p><p>The Voting matrix is an improvement over our current algorithm because it keeps the last known finalization score for each validator, for each DAG level in memory, which is continuously updated as new blocks are added. The finality of a block can be found more efficiently by looking up the current value in the matrix. The algorithm supports only acknowledgment level 1 (this is parameter K of finality detector specification).</p><h3>Description of release packaging</h3><p>Release packaging includes:</p><ul><li>Docker images available via <a href="https://hub.docker.com/u/casperlabs">DockerHub</a></li><li>Debian package</li><li>RPM package</li><li>tar.gz</li></ul><h3>Where do developers go to learn more and get started?</h3><p>At release, links to installation packages and relevant documentation is available on GitHub.</p><ul><li>Packages available on <a href="https://github.com/CasperLabs/CasperLabs/releases">GitHub</a></li><li>Docs available on <a href="https://github.com/CasperLabs/CasperLabs/wiki">GitHub</a> (Wiki)</li></ul><h3>Where will bugs be filed?</h3><p><strong>Report a bug on </strong><a href="https://github.com/CasperLabs/CasperLabs/issues"><strong>GitHub</strong></a></p><h3>Where do developers go for support?</h3><p>Join our community on Discord <a href="https://discord.gg/mpZ9AYD">https://discord.gg/mpZ9AYD</a></p><h3>About CasperLabs</h3><p>CasperLabs is building a transformative blockchain for all applications that require a high degree of security, fast execution, and predictable economics. Our technology is built on the purest implementation of the proof-of-stake CBC-Casper protocol. We deliver a fully-decentralized, permissionless, public, and open source blockchain platform that supports developers with robust tools, application insights, and predictable fee structures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daac281a9fa6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/casperlabs/casperlabs-releases-node-0-7-daac281a9fa6">CasperLabs releases Node 0.7</a> was originally published in <a href="https://medium.com/casperlabs">CasperLabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>