<?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 Finality Labs on Medium]]></title>
        <description><![CDATA[Stories by Finality Labs on Medium]]></description>
        <link>https://medium.com/@finalitylabs?source=rss-e629cc8e7bfb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MMwF10qlKEIbWjZCyj6DNQ.jpeg</url>
            <title>Stories by Finality Labs on Medium</title>
            <link>https://medium.com/@finalitylabs?source=rss-e629cc8e7bfb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:22:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@finalitylabs/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[Notes from A Journey to Scalable Transactions]]></title>
            <link>https://medium.com/@finalitylabs/notes-from-a-journey-to-scalable-transactions-e7fb277d42de?source=rss-e629cc8e7bfb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7fb277d42de</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[plasma]]></category>
            <dc:creator><![CDATA[Finality Labs]]></dc:creator>
            <pubDate>Thu, 15 Nov 2018 22:52:33 GMT</pubDate>
            <atom:updated>2018-11-19T03:10:49.403Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>While Plasma may be less efficient in some cases than Proof-of-Authority (PoA) sidechains when considering withdrawal times and on-chain committing, we have chosen to work on Plasma constructs as they represent a strictly more secure solution than sidechains. We see a potentially interesting solution to scalability forming from Bitcoin cryptographers making their way into Plasma ideas. Below we give an overview of Plasma Debit / Cash / Cashflow / Prime and try to offer those interested in building in this direction a summary as of 11/14/18.</p><h3><strong>Problem: Low Transaction Throughput</strong></h3><p>What keeps the transaction throughput of Bitcoin and Ethereum low? The throughput of transactions is defined jointly by the time it takes for the Proof-of-Work (PoW) algorithm to find a target hash and the size of data a block may hold.</p><p>Blockchains like Bitcoin and Ethereum use what is called Proof-of-Work to secure their networks. With PoW, every transaction confirmed by miners on the network comes with some incentive to be correct. While this works (at the expense of electricity consumption), miners are only able to confirm transactions after some time t at which it is estimated to take to compute a target hash.</p><p>Once a target is found, there is a limited amount of data that may be included in the block. Miners are only able to confirm reasonable amounts of data, where reasonable is keeping the blockchain from bloating to sizes that are not easy for full nodes to store.</p><p><strong>A Growing UTXO Set</strong></p><p>The graph below illustrates the increasing size of state that a miner must store to validate transactions on the bitcoin network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JEVSVCdK_w5qAenH74UTg.png" /></figure><p>The problem isn’t any better in Ethereum where state storage is increasing as illustrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zD0h3MuSASkBfpJs6dMRIw.png" /></figure><p>For a miner to validate state transitions in Ethereum, they must store ~120Gb of blockchain data as of Nov 2018.</p><h3><strong>Solutions in Theory</strong></h3><p>There have been many debates about the amount of data a miner should commit to holding, but here we discuss how to make best use of the space and alter the way we store transactions to shift the data storage to those concerned with the data.</p><p><strong>State-less Full Node</strong></p><p>Rather than require miners and full nodes to store the UTXO or state of an account, we instead flip the storage around to the user. In this model, the owners of UTXO or accounts would be able to store data that is only relevant to them. When a miner finds a target hash, they will collect proofs from the users who wish to have their transactions included in that block’s state transition. Since the miner can verify that the the tx is valid by:</p><ol><li>Seeing the Proof-of-Inclusion of the previous state</li><li>Seeing Proofs-of-Exclusion for all blocks that did not update the owner of the state.</li></ol><p>They can be sure that any tx is valid, and thus commit it to the blockchain without any state storage. The idea of Bitcoin miners committing to the UTXO set in each block allows light clients to verify that a tx is valid without downloading the entire range of blocks since it was created.</p><p>And here we have a catch. It is not trivial to find a compact proof of UTXO or Plasma Coin inclusion / exclusion history. A Merkle Proof-of-Inclusion for every UTXO is one Merkle path and manageable, but the Proofs-of-Exclusion for every UTXO quickly grow for every block confirmed by miners. If we could find a way to compress the exclusion proofs then it could be manageable to send proofs around.</p><p>RSA accumulators should do the trick. If you would like to read more about how these work, please see this talk by Benedict Bünz [<a href="https://www.youtube.com/watch?v=IMzLa9B1_3E&amp;t=3521s">https://www.youtube.com/watch?v=IMzLa9B1_3E&amp;t=3521s</a>] and the Proof-of-Knowledge scheme of [Wesoloski <a href="https://eprint.iacr.org/2018/623.pdf">https://eprint.iacr.org/2018/623.pdf</a>]. Essentially, we can assign each UTXO or coin ID a prime number with a “hash-to-prime” function and raise a generator of a known group to the accumulated or the product of the transactions in a block. If we want to know if a transaction has taken place in a given block, a compressed proof of the RSA accumulated cofactor can be supplied with the transaction prime.</p><p>The final catch on this is that there is a trusted setup in the RSA modulus scheme used, where N needs to be a factor of two large secret primes. If anybody knows the factorization of N, it would be trivial to cheat inclusion / exclusion proofs. As Benedikt Bünz mentions, there are probably reasonably safe prime factors in the wild that could be used.</p><h3>Plasma: Theory and Implementation</h3><p><strong>Plasma MVP</strong></p><p>Here we describe what we believe to be flaws in MVP that make it theoretically not feasible to implement. The protocol for MVP is to queue exits by priority so that valid transactions process before any exit that an invalid operator could commit. The issue here lies in that the operator may commit a block that steals funds from the entire chain and withhold that data from the users. Any user who does not exit the chain within one week of noticing the data withheld will lose their funds.</p><p>In general, the fact that the operator can force the entire chain to exit at once can lead to a congestion problem on the main chain that the Plasma chain is rooted to.</p><p><strong>Plasma Cash</strong></p><p>One solution to the mass exit problem manifests in a similar way as the UTXO commitment scheme described above. Plasma Cash coins are valid under the same conditions and this means that owners of coins will only have their own history. Accounts are represented as a Sparse Merkle Tree (SMT) where each coin identifier of a fixed sized occupies a leaf in the tree. Either a leaf contains transactions or is null if there is no owner. A critical advantage of storing data in the SMT is knowing exactly where a coin must be located. This is important since owners will only have their own history and merkle paths that show that their coin hasn’t been spent. If an operator could include a valid or invalid spend of the coin in a different part of the tree, it would require more merkle paths to be sure and thus more proof data.</p><p>One disadvantage of using a SMT is the indivisibility of coins and the amount of proof paths you will need to store to hold a large range of coins.</p><p><strong>Plasma Debit</strong></p><p>Plasma Debit extends the state stored in each transaction at each leaf of the SMT to carry a balance with the operator. This balance state marks a portion of the NFT owned by the operator and that of the current owner of the coin. This in a sense allows some divisibility of the coin.</p><p>It is interesting to note that this is similar to that of a State Channel Hub-and-Spoke model. As with State Channels, Plasma Debit is limited by capital lock-up requirements that define the receiving capacity of the channels in the coins.</p><p><strong>Plasma Cashflow</strong></p><p>The goal or perhaps side effect of Cashflow is fungibility. To achieve this, Cashflow represents non-divisible coins as ranges of some base denomination of coins. Say you have a Plasma tree that has a resolution of 1 Gwei, then the smallest unit of ownership that can be represented is 1 Gwei.</p><p>If a coin actually represents a range of coins, we can think of the ownership of all coins consecutive or contiguous as represented by a number line. If at block 0, the initial ownership of all contiguous coins is set to null, then we can consider this as being one coin being owned by nobody. As people enter the plasma chain with deposits, this single coin will split into those new owners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFOLRin-LAu4ph9x2VfO5w.png" /></figure><p>For more information on implementing Plasma Cash as a number line, you may review this very detailed post by [Ben Jones — <a href="https://ethresear.ch/t/plasma-cash-was-a-transaction-format/4261">https://ethresear.ch/t/plasma-cash-was-a-transaction-format/4261</a>]</p><p>The Bitcoin scaling solution of state-less full nodes is similar to a Plasma operator committing to a SMT or Merkle Sum Tree (MST see more below) of Plasma Cashflow ranges that allows for a user to have a compact proof that the range is unspent over (N, N+k) blocks. If the proof is compact enough, it will be trivial to pass a range to a new owner and provide evidence to the parent exit functions that a range is valid or not. For more information, see this eth.research post from Vitalik [<a href="https://ethresear.ch/t/rsa-accumulators-for-plasma-cash-history-reduction/3739">https://ethresear.ch/t/rsa-accumulators-for-plasma-cash-history-reduction/3739</a>]</p><p><strong>Fragmentation</strong></p><p>It is noted that a range of coins can be exited with the same amount of proof data as a single coin. If we start to lump coins together that are owned by the same person, we may reduce the amount of proof data needed to challenge, exit, or send a coin. We call a coin that has many contiguously owned coins in a range defragmented, and if that range is split up, say by sending some of the coins to a different owner, then we say this coin has fragmented. Every new range that is not neighbored by the same owner increases the number of overall coins that need to be tracked.</p><p>[Cashflow hackMD <a href="https://hackmd.io/DgzmJIRjSzCYvl4lUjZXNQ#Transaction-Tree-Structure">https://hackmd.io/DgzmJIRjSzCYvl4lUjZXNQ#Transaction-Tree-Structure</a>]</p><blockquote>Alice sends to Bob</blockquote><blockquote>If Alice &amp; Bob… | Change in total adjacencies<br> — have no adjacent tokens | +1<br> — have 1 adjacent token | +0<br> — have n adjacent tokens | -(n-1)</blockquote><p>This implies that we need to start tracking coins as ranges in our tree data structure. There has been some discussion on how to modify the SMT to fit these ranges by Dan Robinson of Interstellar [<a href="https://twitter.com/go_interstellar">https://twitter.com/go_interstellar</a>], and we are currently exploring this at Finality Labs. Keyvan Kambakhsh is working on an implementation details of the tree structure devised by Ben Jones called a Merkle Sum Tree and more information can be found in this WIP research rep [repo link <a href="https://github.com/finalitylabs/pymst/blob/master/MST.md">https://github.com/finalitylabs/pymst/blob/master/MST.md</a>].</p><p><strong>Atomic Swaps</strong></p><p>We can send transactions in a way that tries to limit the amount of fragmentation an owner of coins has. For every new adjacency created, we can see that an adjacency is formed between the two owners. If an adjacency already exists, it is optimal for the parties to do atomic transactions that preserve defragmentation, and if an adjacency is created, every following transfer of coins in that range does not increase fragmentation. Theory into protocols for reducing fragmentation are still underway. For more information on Plasma atomic swaps you may follow this research thread [<a href="https://ethresear.ch/t/plasma-cash-minimal-atomic-swap/3409">https://ethresear.ch/t/plasma-cash-minimal-atomic-swap/3409</a>]</p><p><strong>Plasma Prime</strong></p><p>This is an extension to Plasma Cashflow that uses RSA Accumulators as described above. Finality Labs is working on implementation details for this currently. You can join in the fun on our research repo [<a href="https://github.com/finalitylabs/research/blob/master/cashflow/js/rsa.js">https://github.com/finalitylabs/research/blob/master/cashflow/js/rsa.js</a>]</p><h3>Eternal Time Heroes (E.T.H.)</h3><p><a href="https://www.eternaltimeheroes.io/">https://www.eternaltimeheroes.io</a></p><p>Finality Labs wants to put some of this theory to the test. We have set a goal to develop the above Plasma theory into a system that can handle payments with desktop and mobile wallets with new layer2 UI/UX ideas. We will also be applying the Plasma tree to NFT characters in a blockchain game. While CryptoKitties may clog Ethereum blocks when they want to multiply, E.T.H. heroes and items will exist in our Plasma tree. This allows the NFTs ownership to be swapped off-chain — imagine cheaper sends and market buying / selling of kitties. While that is a bit of an improvement, we would also like to attach some scalable logic to our heroes. To do this, we are researching a method to evaluate logic-specific to a turn-style battle in a State Channel. More on this in a further post.</p><p>To follow along, feel to join our Discord, Github, and social accounts.</p><p><strong>Finality Labs<br></strong>Discord: <a href="https://discord.gg/sT9sbba">https://discord.gg/sT9sbba</a><br>Github: <a href="https://github.com/finalitylabs">https://github.com/finalitylabs</a><br>Twitter: <a href="https://twitter.com/finalitylabs">https://twitter.com/finalitylabs</a></p><p><strong>Eternal Time Heroes</strong><br>Twitter: <a href="https://twitter.com/ETimeHeroes">https://twitter.com/ETimeHeroes</a><br>Instagram: <a href="https://www.instagram.com/eternaltimeheroes/">https://www.instagram.com/eternaltimeheroes/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7fb277d42de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>