<?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[Cryptoeconomics Lab - Medium]]></title>
        <description><![CDATA[R&amp;D blogs on layer2 technology for public blockchains and official announcements from CEL. - Medium]]></description>
        <link>https://medium.com/cryptoeconomics-lab?source=rss----3df45712993b---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Cryptoeconomics Lab - Medium</title>
            <link>https://medium.com/cryptoeconomics-lab?source=rss----3df45712993b---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 20:27:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cryptoeconomics-lab" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Overview and Key Findings of the 2020 R&D]]></title>
            <link>https://medium.com/cryptoeconomics-lab/overview-and-key-findings-of-the-2020-r-d-79520ba567b6?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/79520ba567b6</guid>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[layer-2]]></category>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[tezos]]></category>
            <dc:creator><![CDATA[Cryptoeconomics Lab]]></dc:creator>
            <pubDate>Wed, 13 Jan 2021 13:10:27 GMT</pubDate>
            <atom:updated>2021-01-13T14:00:37.804Z</atom:updated>
            <content:encoded><![CDATA[<p>CEL’s wrap-up of 2020, and what’s ahead in 2021</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_6EBIu_v1jihtQCs6l1Xw.png" /><figcaption>happy new year!</figcaption></figure><h3>What we have done in 2020</h3><p>Until last summer, Cryptoeconomics Lab’s R&amp;D team had been researching Plasma and implementing Plasma Cashflow since the team was formed in 2018. At the end of 2019, we were endowed with a grant from the Ethereum Foundation (through Ecosystem Support Program) and Tezos Foundation and received enormous support both financially and non-financially. We would especially like to express our deep gratitude to Tas Dienes from EF and Charlie Wiser and Marco Schurtenberger from TF, who supported us throughout the program.</p><p>As a result, in July 2020, we were able to release 1) <strong>‘Gazelle’, L2 dapps framework implementing Plasma Cashflow</strong>, 2) <strong>‘Gazelle Wallet’ as a framework’s showcase app</strong>, and 3) <strong>CEL’s Plasma block explorer on Kovan testnet</strong>. To check out the development and detail implementation, see the source code from the following links;</p><p><strong>Ethereum</strong></p><ul><li>Gazelle wallet：<a href="https://v1.testnet-wallet.gzle.io/">https://v1.testnet-wallet.gzle.io/</a></li></ul><p>(Source code: <a href="https://github.com/cryptoeconomicslab/gazelle-wallet">https://github.com/cryptoeconomicslab/gazelle-wallet</a>)</p><ul><li>Block explorer: <a href="https://explorer-gazelle.netlify.app/">https://explorer-gazelle.netlify.app/</a></li></ul><p>(Source code: <a href="https://github.com/cryptoeconomicslab/gazelle-block-explorer">https://github.com/cryptoeconomicslab/gazelle-block-explorer</a>)</p><p><strong>Tezos</strong></p><ul><li>Source code of smart contract: <a href="https://github.com/cryptoeconomicslab/ovm.tz">https://github.com/cryptoeconomicslab/ovm.tz</a></li></ul><h3>The vision we had for Plasma:</h3><p>Through the Gazelle development, we wanted to create <strong>a world with a single giant Plasma Network</strong></p><ul><li><strong>that is L1 agnostic</strong></li><li><strong>with CEL being a single operator, yet decentralized as much as the main chain</strong></li><li><strong>in which individual developers can build scalable and secure dapps without hassle.</strong></li></ul><p>In order to achieve these qualities, there were particular things we were pursuing in our Plasma research;</p><ul><li><strong>Secure L2 protocol design</strong>, first and the foremost</li><li><strong>Reusability between different layer2 constructions</strong> using the universal notation</li><li><strong>Standardization of dapps development</strong> through a framework</li></ul><h3>Our next path for R&amp;D:</h3><p>Without any further Plasma development, what path should we take next? We have been discussing as many expansions as possible. Candidates were naturally narrowed down to the L2 related R&amp;Ds since we wanted to utilize the expertise we had already nurtured.</p><p><strong>Now we can confidently announce that our next project will be on zk-rollup. </strong>As other teams are convinced of zk-rollup’s potential, we are also in love because<strong> </strong>zk-rollup offers short finality and higher safety compared to other L2 constructions.</p><p>Although zk programs are generally too enigmatic to casually start developing, we believe it would be a highly-demanded technology (if it were less difficult) in the future. <strong>Especially for particular applications, the aforementioned advantages over other L2 constructions will be make a huge difference.</strong> Therefore, we want to take an initiative to lower the difficulty of zk-rollup development.</p><p>Reflecting on the past, we won’t just go straight to developing a dapps-on-zk-rollup framework this time, but instead, <strong>we will carefully research its use case applications first this time</strong>. This is the most important lesson we have gained from our previous Plasma R&amp;D; <strong>you need to have a solid understanding of popular dapps on L1</strong>. The crucial question for protocol R&amp;D is <strong>which part of application logic could be moved to the new protocol, and what kind of protocol foundation is needed for the relocation. </strong>For example, how can you relocate Defi smart contracts, say the AMMs, with lots of token being locked in to Layer2 or ETH2.0? The answer still seems ambiguous. Or first things first, what would be the next popular dapps after DeFi and what are users’ actual “goal” using the dapps? Finding a clear answer to these questions, we can finally start developing the new L2 protocol. <strong>Therefore, we will conduct test development of DeFi apps first whether on L1 or L2 this time.</strong></p><p>On top of that, we want to apply our L2 expertise to other public blockchains and expand the knowledge to other smart contract language developer communities. <strong>We believe Tezos is another great public blockchain that has its ethos solidly held in decentralization. </strong>Tezos’ development environment is evolving rapidly with more and more amendments adopted. We see the future of Tezos being a great zk-rollup development environment not so far.</p><h3>Next action for zk-rollups</h3><p>We have not yet initiated a concrete project, but have already sketched the rough design of our zk-rollup implementation on Tezos and completed corresponding tasks to lay a foundation. In fact, <strong>it’s more possible now to develop zk-rollups on Tezos </strong>since BLS12–381 related opcodes were added in the Edo protocol. <strong>Accordingly, we created a sample project in LIGO, which enables us to try out the new opcodes.</strong> We will inform you when we have a more solid implementation design and evident results of gas cost reduction from our zk-rollup. <strong>Of course, we are aiming to export all the deliverables (zk-rollup and its use-case applications) later and enable them to work on Ethereum as well.</strong></p><p>We firmly believe that zk-rollup technology is still incredibly underrated. It should, and will gain more attention from dapps developers, hopefully after lines of our R&amp;D releases in 2021, making it less intricate and a more attractive option to dapps developers.</p><p>To sum up,<strong> enabling</strong> <strong>more development options available, whether the constructions (Plasma, ORU, zk-rollups), or platform (Ethereum, Tezos), we have a much brighter future of dapps development ahead.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79520ba567b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/overview-and-key-findings-of-the-2020-r-d-79520ba567b6">Overview and Key Findings of the 2020 R&amp;D</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Gentle Guide to the OVM — Plasma Edition —]]></title>
            <link>https://medium.com/cryptoeconomics-lab/a-gentle-guide-to-the-ovm-934035646942?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/934035646942</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[layer-2]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[ovm]]></category>
            <category><![CDATA[plasma]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 18:44:14 GMT</pubDate>
            <atom:updated>2019-09-05T07:00:11.163Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Gentle Guide to the OVM — Plasma Edition —</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99TUuN9XyVQ_2PIKM8m-AQ.png" /><figcaption>contradicting property to a claim: ∀X (cat(X) →cute(X))…gotta love this kitten.</figcaption></figure><h3>Quick Recap</h3><p>In the <a href="https://medium.com/cryptoeconomics-lab/cel-development-direction-to-the-greater-abstraction-6860f87ce0eb">last post to update our OVM development plan</a>, we gave a high-level explanation on our OVM implementation architecture, breaking it down into 3 main components, <strong>Predicate</strong>, <strong>Client</strong>, and <strong>Frontend</strong>. <br>Here is a quick recap of what we’ll deliver/contribute in research for each part,</p><ol><li>For <strong>OVM</strong>: develop core contracts that can be a command tower of various applications regardless of L2 scaling constructions.</li><li>For <strong>Predicate</strong>: research smart contract development methodologies and versatile combination for wider usage.</li><li>For <strong>Client</strong>: build a universal L2 client, including network, storage such as aggregator and light client, etc.</li><li>For <strong>Frontend</strong>: provide developer APIs.</li></ol><p>As we illustrated our development roadmap in the second half of the post, we are currently developing L2 client for Plasma in Rust in addition to writing core OVM contracts in Solidity. <strong>In this post, we will provide an up-close view of our current Plasma implementation on the OVM and talk about the standardization along with other OVM implementation teams clarifying the uniqueness of our development!</strong> After reading this post, you will not only see our latest R&amp;D progress since the last post but also become a master of OVM, so let’s get into it together!</p><blockquote><strong>📣Attention</strong>:<br><em>We are currently recruiting developers who can build L2 applications on top of our framework! If you would love to prove that various applications are possible on the OVM design, especially to build those to be showcased at </em><a href="https://devcon.org/"><em>DEVCON5</em></a><em>(which really is around the corner, happening on Oct. 6–8), please leave a comment!</em></blockquote><h3>Table of contents</h3><p><strong>This post includes:</strong></p><ul><li>Definitions of the new OVM terminologies</li><li>OVM Architecture Design</li><li><strong>Our Plasma implementation</strong> 👈🆕</li><li>Standardization of the OVM and CEL’s dev focus</li></ul><h3>Glossary: Define New OVM Terminologies</h3><p>This section provides definitions of OVM terminologies, especially the ones you should be familiar with when you want to investigate the architecture with code-base understanding (links to the source codes of our Plasma implementation (WIP) are in the next section)</p><p>Also, I’ll leave amazing resources for those of you want to begin with OVM introductory articles here 😊(creds to <a href="https://plasma.group/">PG</a>!):</p><ul><li><a href="https://medium.com/plasma-group/introducing-the-ovm-db253287af50">Introducing the OVM</a></li><li><a href="https://medium.com/plasma-group/introducing-the-ovm-db253287af50">The OVM loves your scaling solution</a></li><li><a href="https://speakerdeck.com/takamichitsutsumi/introduction-to-ovm">Introduction to OVM slides in Japanese</a> (OVM入門編の日本語版資料)</li></ul><h4>OVM Architecture Design</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_3ufgOFxCPEBn1-g.png" /></figure><h4>OVM: L1 Contracts + Client Decider</h4><ul><li><strong>Universal Adjudication Contract</strong>: the core of the OVM, single theory of commands to all the L2 scaling construction logics</li><li><strong>Deposit &amp; Exit Contract</strong>: gateway to L2, a generic contract to handle deposit requests and exit finalizations. Users deposit their assets and initial states from L1 before they start updating them in the L2. In the context of Plasma, checkpoints are also finalized by this contract.</li><li><strong>Predicate Contract</strong>: called by Universal Adjudication Contract to validate/dispute the submitted property, always return true or false</li><li><strong>ForAllSuchThat predicate</strong>: ForAllSuchThat predicate is one of the basic predicates to attest claims, but it’s a little bit special in a way that it requires all the nested properties to return true. On L1, only one contradiction is needed to turn this claim down.</li><li><strong>ThereExistSuchThat predicate</strong>:<strong> </strong>ThereExistSuchThat predicate requires at least one nested property to return true to confirm the validity of an attested claim. If it passes the dispute period without any true from nested properties.</li></ul><p>Therefore it’s important to make sure that inner nested predicates can express a logical negation to complete a fraud-proof verification</p><ul><li><strong>Not predicate</strong>: when you want to claim a logical negation of one property A, you can use Not predicate Not(A).</li><li><strong>And predicate</strong>: When you want to claim a logical negation of And(A, B), you have to prove Not(A)or Not(B).</li><li><strong>Or predicate</strong>: When you want to claim a logical negation of Or(A, B), you have to prove Not(A) and Not(B).</li><li><strong>Other predicates</strong>: situation-specific (not necessarily versatile) predicate, say a certain type of witness exists, then this predicate returns true.</li><li><strong>Quantifier</strong>: extract a set of states or messages that are necessary to determine whether a claim is valid.</li><li><strong>Decider</strong>: predicate-specific contract to decide true/false for each predicate. Contains logic that defines what constitutes valid states stored in the L2 DB. May need a piece of information extracted by Quantifiers to make decisions.</li></ul><h4>L2 Client</h4><p>The client can also evaluate submitted claims to true or false by local information.</p><ul><li><strong>Logic</strong>: define the way to send transactions (including signing and counter-signing)</li><li><strong>Message Database</strong>: stores the data of states that a user would be wanting to exit</li><li><strong>Frontend</strong>: interface between users and client</li></ul><h4>Types of Data in the OVM</h4><p><strong><em>On-chain Data</em></strong></p><ul><li><strong>Claim</strong>: a user-submitted statement expressed in the form of <a href="https://en.wikipedia.org/wiki/First-order_logic">first-order logic</a> that can be evaluated to true/false by the Universal Adjudication Contract. Claims can be disputed by its contradicting claim. Should be stated in the form of <strong>universal quantifier</strong>: for all xxx such that, or <strong>existential quantifier</strong>: there exists xxx to translate it to first-order-logic</li></ul><p><strong><em>Local Information</em></strong>: off-chain data used by L1 contracts and client deciders to optimistically make decisions on the possible future Ethereum state; the OVM state transition.</p><ul><li><strong>Property</strong>: a set of information consisting of a proposition submitted as a claim to Universal Decision Contract and what can validate the claim</li></ul><pre>Property = {<br>  predicateAddress: Address, // predicate that validates the property on L1<br>  input: Bytes, // what is being decided by the predicate<br>}</pre><ul><li><strong>Witness</strong>: part of the local information used by Deciders to approve claims</li><li><strong>Implication</strong>: a condition where as soon as we gain a piece of information an A, we can immediately deduce that it <strong>must</strong> also be a B, such as</li></ul><pre>And(Foo, Bar) -&gt; Foo <br>And(Foo, Bar) -&gt; Bar</pre><h3>Plasma PoC Overview</h3><p>So how do you use this system and express Plasma’s logic? Here is what we designed it! Although this is not a production-ready set of source codes, it would be a good example to explain how Plasma is possible on the OVM.</p><h4>State updates</h4><p>To begin with, this is the data structure of state updates that should be included in Plasma blocks.</p><pre>{<br>  coin_range: [0, 5000],<br>  block_number: 10,<br>  property: {/*property for defining deprecation logic*/}<br>}</pre><h4>Checkpointing and Exiting</h4><p>For simple Plasma Cash construction, we require two following types of claims.</p><p><strong>Checkpoint claim</strong></p><p>Checkpoint claims are created to prove that a specified coin has a valid history. You can see our Rust codes <a href="https://github.com/cryptoeconomicslab/plasma-rust-framework/blob/8333757a576870575a98a618376aeb84cddbfe16/ovm/src/statements/plasma.rs#L11">here</a> (link subject to change).</p><p>To construct it with predicates. the claim should be expressed as;</p><pre>plasma_checkpoint(block_number, coin_range) :=<br>ForAllSuchThat(<br>  LessThanQuantifier(block_number),<br>  (b) =&gt; {<br>    ForAllSuchThat(<br>      WithinBlockRangeQuantifier(b, coin_range),<br>      state_update,<br>      (state_update) =&gt; {<br>        IsDeprecated(state_update)<br>      }<br>    )<br>  }<br>)</pre><p>This statement should be expressed in English as follows;</p><blockquote>State updates within this coin range included in a block less than the current block number are all deprecated.</blockquote><p>IsDeprecated function decidesstate_update.property in generalized Plasma. StateUpdate.property would be, for instance, SignedByPredicate(tx, owner_address) to verify signatures of coin owners. WithinBlockRange quantifier&#39;s behavior is a little bit more complex than other predicates. This returns all state updates included in a specific coin_range in L2 and verifies their inclusion/exclusion proof.</p><p><strong>Exit claim</strong></p><p>Exit claims are created to prove that a specified state update has not been deprecated yet.</p><p>In the OVM specific format, the claim would be expressed as;</p><pre>plasma_exit(block_number, state_update) :=<br>And(<br>  IncludedAtBlock(block_number, state_update),<br>  Not(IsDeprecated(state_update)),<br>  Not(<br>    ThereExistsSuchThat(<br>      NewerCheckpoint(block_number)<br>      (checkpoint) =&gt; {<br>　　      IsIntersected(checkpoint.coin_range, state_update.coin_range)<br>      }<br>    )<br>  )<br>)</pre><p>This statement should be expressed in English as follows;</p><blockquote>There exists a state update s such that s is included in the block, and for all state updates with a higher nonce than s, there does not exist a deprecation witness</blockquote><p>When both of these claims are decided, users can finally finalize their exits and withdraw their assets to L1.</p><h4>Challenging</h4><p>Challenge claims are created, of course, when someone wants to challenge some exit. Using the And negation rule (when you want to reject And(A, B), you just have to prove Not(A) or Not(B)) users have to submit a contradiction claim either about inclusion or deprecation.</p><p>Therefore, to challenge IncludedAtBlock(block_number, state_update)claiming that one&#39;s state update is not included atblock_number, the challenger submit a contradiction claim to an exit as long as the dispute period is not over.</p><p>Challenge for checkpoint (invalid history challenge) was complex in Plasma cash spec, but OVM can now make it much simpler. A challenger can prove invalid history showing Not(IsDeprecated(state_update)) as a contradiction against checkpoint claim.</p><p>And another way to challenge is to prove deprecation of exit showing IsDeprecated(state_update). This is contradicting to a exit claim.</p><p>Also, when users delete <a href="https://docs.plasma.group/projects/spec/en/latest/src/02-contracts/deposit-contract.html#deleteexitoutdated">an outdated exit</a>, they should show a checkpoint which satisfies IsIntersected(checkpoint.coin_range, state_update.coin_range) and newer than block_number.</p><h3>L1 &lt;-&gt;L2 Interaction</h3><p>Now, let’s construct an L2 client using the claims logically designed like above. One of the great things of the OVM is we can universally use the same claim design logics not only in L1 but also in L2 clients.</p><h4>Plasma Client and Aggregator Workflow</h4><ul><li>Sender makes transaction and signature, then send these to an aggregator</li><li>Aggregator collects transactions and signature</li><li>The recipient receives local information which includes witness and inclusion proof from sender and aggregator</li><li>The recipient decides exit-claim to verify that receiving coins are valid. Checkpoint claim behave like History Manager</li><li>When a client handles a new exit, the client should decide its exit-claim. If the claim is false, we can challenge the exit!</li></ul><p><a href="https://github.com/cryptoeconomicslab/plasma-rust-framework/pull/187/files#diff-116c819b93fb6aedd88d32d33112779e">Plasma client sample</a></p><p><a href="https://github.com/cryptoeconomicslab/plasma-rust-framework/pull/187/files#diff-d8f5473347fbaf76cc2e9fd7c8daef40">Plasma aggregator client sample</a></p><h3>Where to standardize and what CEL is focusing on to build</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nL7C7pcOZ3MaARqX.png" /></figure><p>In order to lay a foundation for greater abstraction and welcome more of the various L2 applications developers, we are trying to standardize the architecture design that would be necessary to share with other constructions. We are now to have lots of discussion about where to standardize <a href="https://github.com/plasma-group/ovm/issues">here</a> in the OVM repo created by Plasma Group. The journey has just begun, so if you have an idea please join us there for greater standardization.</p><h3>There’s more to come!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nhu1tajtncvRjsPEuu9ZgQ.jpeg" /></figure><p>Using the Plasma client implementation/framework, we are going to build some application in <a href="https://eth.boston/">ETHBoston</a> happening in the beginning of September. After coming back from Boston, we will be able to provide a cool outcome of the hacking and explain how to develop an application with our framework in detail so stay tuned for the next post!</p><p>Also, please go see the links below if you want to explore further on our OVM contracts and Plasma implementation in Rust.</p><ul><li><a href="https://github.com/cryptoeconomicslab/plasma-rust-framework">OVM Contracts repo</a></li><li><a href="https://github.com/cryptoeconomicslab/ovm-contracts">Rust Client repo</a></li></ul><p>And don’t hesitate to tweet us any question/comment if you have one and you can ask us directly in our Telegram group!</p><ul><li>CEL’s official Twitter:</li></ul><p><a href="https://twitter.com/cryptoeconlab">Cryptoeconomics Lab</a></p><ul><li>CEL’s official Telegram group in English:</li></ul><p><a href="https://t.me/cryptoeocnomicslab">Cryptoeocnomics Lab R&amp;D</a></p><ul><li><a href="https://t.me/plasmaqanda">CEL’s official Telegram group in Japanese</a>:</li></ul><p><a href="https://t.me/plasmaqanda">JP OVM Dev Group</a></p><p>Co-authors: <a href="https://medium.com/u/b8246acf5d93">Shuhei Hiya</a>, <a href="https://medium.com/u/e07f0d4acd1">Takamichi Tsutsumi</a>, <a href="https://medium.com/u/2c00c024e7ec">Yuriko Nishijima</a>, CEL research team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=934035646942" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/a-gentle-guide-to-the-ovm-934035646942">A Gentle Guide to the OVM — Plasma Edition —</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CEL Development Direction to the Greater Abstraction]]></title>
            <link>https://medium.com/cryptoeconomics-lab/cel-development-direction-to-the-greater-abstraction-6860f87ce0eb?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/6860f87ce0eb</guid>
            <category><![CDATA[layer-2]]></category>
            <category><![CDATA[abstraction]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[scaling-solution]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Fri, 26 Jul 2019 05:50:11 GMT</pubDate>
            <atom:updated>2019-07-29T10:28:16.131Z</atom:updated>
            <content:encoded><![CDATA[<h3>Development Direction to the L2 Interoperability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qy1BGLPqHzJGfd0f8ja4eQ.png" /></figure><h3>Introduction</h3><p>After the release of Plasma Group’s <a href="https://medium.com/plasma-group/introducing-the-ovm-db253287af50"><strong>new blog post</strong></a> about their new generic design concept of L2 solutions, <em>Optimistic Virtual Machine</em>, our research team has been discussing what positions we should take on it along with other L2 R&amp;D teams and how we can bring more interoperability and to maximize our contributions to the community.</p><p>After the long discussion, we decided to share the conclusion we came to, describing;</p><blockquote>- R&amp;D topics we should focus on for the next couple of months</blockquote><blockquote>- Architecture of the abstracted second layer solutions</blockquote><p>in this post, hoping to give more clarity on our development direction!</p><h3>Our position: what can we do?</h3><p>As we have been stressing that our final goal as to bring mass adoption of Ethereum in the real world, our primary development goal has been set to finish building Plasma Chamber (currently in the process of rewriting in Rust, see a repo here; <a href="https://github.com/cryptoeconomicslab/plasma-rust-framework">https://github.com/cryptoeconomicslab/plasma-rust-framework</a>), a framework to build secure, scalable, and usable dapps on Plasma and deliver a great developer experience.</p><p>We believe that there are going to be more L2 application developers involved, hence, more viable applications running on top of Ethereum. In the pursuit of a wide range of applications/use cases, we wanted to deliver essentials for devs such as dev tools, application framework, libraries for frontend, etc. <strong>Especially, it would a significant enhancement if we have a standardized client that can support multiple types of L2 applications.</strong></p><h3>Abstract architecture of second layer solutions: what are we building?</h3><p>So how does the abstracted architecture of various Layer2 systems look like? As we mentioned in the previous section, our primary goal is to provide a simple and easy way to build various Layer 2 applications and support developers. Through the process of the abstraction, the first thing we did was to apply the concept of <a href="https://en.wikipedia.org/wiki/Separation_of_concerns"><em>Separation of Concerns</em></a><em> </em>for a better design, dividing the target developers into two main categories by their interests. First is <strong>Predicate developers</strong> who want to develop business logic of L2 application. Second is <strong>front-end developers</strong> who are in charge of developing a user interface. Considering that we need to provide an appropriate tool for each kind of devs, we broke down the L2 system that we want to deliver into three components: <strong>Predicate</strong>, <strong>Client</strong>, and <strong>Frontend</strong>.</p><p>As the next image shows, we categorized each element that forms this whole system altogether based on its functionalities rather than using the conventional way of decomposing blockchain applications, e.g. <em>layers</em>. Of course, <strong>different types of developer experience need to be considered for each component</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*Rpr-QyHYt7HgB1v0dePnAw.jpeg" /><figcaption>the whole L2 system decomposed into 3 parts!</figcaption></figure><p><strong>Predicate</strong> part is responsible for handling business logic of L2 applications. Predicate include Predicate plugins, through which Client communicate with a specific type of predicate it needs. Developers have to explain how states can be updated or how users can protect their own assets here. By combining basic predicates, developers can build complicated predicates for more creative L2 applications. Additionally, solutions to the old Plasma usability problems, such as fast finality contract, fee contract, defragmentation, and checkpoints, have been absorbed into this part. It will enable Plasma researcher and developers just focus on designing Predicate.</p><p><strong>Client</strong> consists of what was previously considered as plasma-coreexcept for predicates contracts. Client part is responsible for communicating with other clients (e.g. open a payment channel with another user, and then send a transaction to the operator in plasma chain), communicating with L1 contract (e.g. plasma operator commits Merkle root to L1 contract), or storing state data in the client database.</p><p><strong>Frontend</strong> includes all different kinds of user interfaces for L2 applications(e.g. game UI, wallet UI).</p><p>These 3 main constituents communicate with each other to complete an L2 application as a whole.</p><h3>What we build for each component</h3><p>So how are we going to complete the whole system, building each part in what order?</p><p>In this section, we’ll describe in detail what we build for each component addressed in the previous section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*eGB6tIoIGu1_wnv_SpNqSA.jpeg" /><figcaption>simplified system architecture</figcaption></figure><h3>Client</h3><p>First, we are going to focus on to implement a client. It’s because by implementing a client and providing its SDK, it can help developers to make user interfaces smooth. Second layer client is capable of multiple different things; supporting different functionalities, storing and updating states, communicating with other clients or L1 contracts. <strong>Additionally, in the context of OVM, second layer client will be able to handle various constructions of L2 solutions such as state channels and plasma.</strong> We will first focus on to develop clients for plasma, such as operator client, but in the long run, we will implement additional features to support other L2 designs as well.</p><h3>Predicates</h3><p>The only thing predicate developers need to do is to think of data structure and dispute logic in a safe manner. This requires more of a computer science point of view rather than a software development experience.<br>Although it takes only a few minutes to write simple ownership transfer predicate, once you attempt to write a bit more complicated predicate, it gets far more difficult. You need to make sure that the state transition logic is properly designed. Especially, you need to guarantee that users can protect their assets against malicious clients with a 100% confidence that all the necessary data are available for users to challenge malicious behaviors. It’s not an easy task. It takes pretty long for functional verifications.</p><p>Again, stick to the original, our primary interest is to provide more devs with a simpler and easier way to develop predicates. We want to enable ones with no computer science background to write predicates without any hassle. In the current situation, however, there’re not enough resources available to refer out there yet. Here is what we are going to work on!</p><p>While researching how to write complex predicates securely, we found several design patterns combining multiple basic predicates, so our next-step goal will be to <strong>share that knowledge of design patterns and create a tool for other devs to utilize it</strong>. Using that tool, everyone will be able to write and use predicate very easily.</p><h3>Frontend</h3><p>It’s not easy to develop frontend applications without the use of great frontend libraries. We will provide a frontend SDK as a well-abstracted interface for Client that can support various kinds of second layer design. We’re currently working on Browser and Android frontend app SDK.</p><h3>Conclusion</h3><p>Hopefully, this post gave clarity on our development focus and direction towards our aforementioned goal; deliver blockchain developers much easier, simpler way to build various layer 2 applications!</p><p>Co-authors: <a href="https://medium.com/u/2c00c024e7ec">Yuriko Nishijima</a>, <a href="https://medium.com/u/e07f0d4acd1">Takamichi Tsutsumi</a>, <a href="https://medium.com/u/b8246acf5d93">Shuhei Hiya</a>, CEL research team</p><p>Twitter：<strong>please tweet us any questions!</strong></p><p><a href="https://twitter.com/cryptoeconlab">Cryptoeconomics Lab</a></p><p>Links to Cryptoeconomics Lab’s information: <br>Github：</p><p><a href="https://github.com/cryptoeconomicslab/plasma-rust-framework">cryptoeconomicslab/plasma-rust-framework</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6860f87ce0eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/cel-development-direction-to-the-greater-abstraction-6860f87ce0eb">CEL Development Direction to the Greater Abstraction</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[エンジニア向け] サルでも分かる Plasma 入門 〜スケーラブルな DApp を作ろう〜]]></title>
            <link>https://medium.com/cryptoeconomics-lab/%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%8B%E3%82%A2%E5%90%91%E3%81%91-%E3%82%B5%E3%83%AB%E3%81%A7%E3%82%82%E5%88%86%E3%81%8B%E3%82%8B-plasma-%E5%85%A5%E9%96%80-%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%A9%E3%83%96%E3%83%AB%E3%81%AA-dapp-%E3%82%92%E4%BD%9C%E3%82%8D%E3%81%86-197c2ec07855?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/197c2ec07855</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[plasma]]></category>
            <dc:creator><![CDATA[Daiki Sekiguchi]]></dc:creator>
            <pubDate>Wed, 19 Jun 2019 04:52:06 GMT</pubDate>
            <atom:updated>2019-06-26T07:41:34.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*OlSnnVWv5vfc13CyVFrjfQ.png" /></figure><p>本記事では「Plasma って名前は知っているけどよくわからない」「Plasma には興味あるけどキャッチアップの仕方がわからない」といったブロックチェーンエンジニア向きに、入門編として Plasma とはなんなのか簡潔に解説していきます。</p><p>この記事を読めば Plasma の大枠を簡単に理解することができます。<br>Plasma の基礎的な部分を網羅できるようにまとめましたのでぜひ読んでみてください！</p><h3>〜目次〜</h3><ol><li><strong>Plasma は何のためにあるの？</strong></li><li><strong>Plasma はどうやって動いてるの？</strong></li><li><strong>結局、Plasma 使うと何が起こるの？</strong></li><li><strong>で、Plasma って今どうなってるの？</strong></li><li><strong>これから Plasma はどうなっていくの？</strong></li></ol><h3>1. Plasma は何のためにあるの？😕</h3><h4>1–1. ブロックチェーンのトリレンマ</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*ow38CfdYfYNowGbcShHtzA.png" /></figure><p>こちらの図を見たことはありますでしょうか。ブロックチェーンのトリレンマの図です。</p><p>この図はブロックチェーンでは「Decentralization (分散性)」「Scalability (拡張性)」「Security (安全性)」のうち3つ全てを同時に実現することはできないということを意味しています。</p><p>例えば、Bitcoin や Ethereum では PoW で、多くのノードが存在することによって、「Decentralization」「Security」を実現しています。<br>しかしその代わりに「Scalability」を失っています。</p><p>EOS を見てみましょう。ノード数を減らし、コンセンサス・アルゴリズムを DPoS にすることによって、「Decentralization」を犠牲にしていますが、「Scalability」と「Security」を実現しています。</p><p>といった具合でブロックチェーンにはトリレンマが存在しており、世界中でこのトリレンマを解消すべく研究が進んでいます。</p><h4>1–2. スケーラビリティソリューション</h4><p>ブロックチェーンの TPS（Transactions Per Second）やユーザビリティの問題（GAS コストなど）を解決し、ブロックチェーンをスケールさせるべく様々なソリューションが提案されています。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*y6FMs8veEiUM2ownyljjWg.png" /></figure><p>State Channel を利用した Lightning Network や Raiden Network など多数のソリューションが存在しており、この中に僕らが研究している Plasma も含まれています。</p><blockquote>Plasma はブロックチェーンをスケールさせるものである</blockquote><h3>2. Plasma はどうやって動いてるの？🧐</h3><p>ブロックチェーンをスケールさせるために、Plasma はどんな仕組みで動いているのか。図を用いて説明していきます。</p><p>まずは Plasma の全体像に加え、根幹となる4つのアクションについて理解しましょう。<br>この仕組みで動くことによって、Plasma は Ethereum と同レベルのセキュリティを保ちながらブロックチェーンをスケールすることに成功しています。</p><p>Plasma における一番重要な基礎の部分ですので、しっかり理解していきましょう！</p><h4>2–1. 全体像</h4><p>前提として、Plasma は Ethereum の下に独自のチェーン (Plasma Chain) が存在しているような形となります。</p><p>Plasma Chain 上でやり取りされた取引 (TX: トランザクション) は、マークルツリーという手法を使って1つのハッシュ値 (Merkle Root) にまとめられます。</p><p>この Merkle Root が定期的に Ethereum 上へ保存され、それをユーザーが検証することで、セキュリティレベルを維持しながらデータ量を圧縮することができるのです。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9i76CoOfa1GWmY_3Hi2Ajg.png" /></figure><p>続いてユーザーが Plasma を使う際の4つのアクションについて解説していきます。</p><h4>2–2. Deposit (デポジット)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*8aDoYii_cvqfqmTjZzwSGA.png" /></figure><p>Plasma Chain 上で資産を利用するためには Ethereum から Plasma Chain へ資産を移す必要があり、このことを Deposit (デポジット) と呼びます。</p><h4>2–3. Transfer (送金)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*-sGA3YSPyy2NCojvx1Dclg.png" /></figure><p>Transfer はその名の通り送金を行うことで、Plasma Chain 上で Deposit した資産を取引することを意味します。</p><p>受取手が先程の Merkle Root を検証し、資産の取引履歴を確認することによって、二重支払いなどの不正な取引を防いでいます。</p><h4>2–4. Withdraw / Exit (引き出し)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*vwLbAI_xxMGyHOfVBALznA.png" /></figure><p>Plasma 上に Deposit した資産は、Ethereum 上へ引き出し、再び Ethereum 上で使うことができます。</p><p>この引き出しのことを Withdraw / Exit と言います。</p><h4>2–5. Challenge (不正証明)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kWdsWRYkFIOK-Nhqo95Cqg.png" /></figure><p>Plasma における資産が盗まれてしまう攻撃パターンは、Plasma Chain 上で取引履歴が改ざんされ、その不正な状態で Withdraw / Exit をされてしまうというものです。</p><p>この不正な引き出しを防ぐために Challenge というアクションが存在しています。</p><p>自分が所持している正しい取引の履歴を持って Challenge を行うことによって、特定の引き出しが不正であることを証明し、盗難を防止することができるのです。</p><p>※Plasma では Withdraw / Exit の際に Challenge 期間というものが存在しており、引き出しの申請から Ethereum へ資産が完全に移動するまでに、1週間ほど時間がかかります。<br>その間、不正な引き出しに対して Challenge を行うことができます。</p><h3>3. 結局、Plasma 使うと何が起こるの？🤔</h3><p>Ethereum 上ではなく Plasma Chain 上で取引を行うことによって、TPS の問題を解決するだけでなく、GAS コストがほとんどかからない DApp を実現しています。</p><p>また、この仕組みによって他のスケーラビリティソリューションでは実現できていなかった、Ethereum と同等のセキュリティを維持しながら、スケーラブルな DApp を作るということも可能にしています。</p><blockquote>Ethereum と同等のセキュリティを保ちながら、TPS や GAS コストの問題を解決する</blockquote><p>※Plasma を使うと何ができるのか、もっと詳しく知りたい方はこちらの記事にまとめているので、ぜひご覧ください！</p><p><a href="https://medium.com/cryptoeconomics-lab/plasma-chamber-%E3%81%AF%E3%81%AA%E3%81%AB%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B-107d267a1713">「Plasma Chamber」 はなにを解決するのか？</a></p><h3>4. で、Plasma って今どうなってるの？🤨</h3><p>現在の Plasma の実装状況をお伝えするためにデモ動画を作成しました！<br>コーヒーショップで Plasma を使って決済を行うシーンです。まずはこちらをご覧ください。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUYTzGTZ5Wmw%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUYTzGTZ5Wmw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUYTzGTZ5Wmw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/480103aa34b063087a15a3be830cbd12/href">https://medium.com/media/480103aa34b063087a15a3be830cbd12/href</a></iframe><p>Cryptoeconomics Lab が開発している Plasma Chamber では以下の機能を実装することによって、通常のQRコード決済と何ら変わりない体験を提供することを可能にしています。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QpF8btfOa6zTLJwKXgmwCw.png" /></figure><h3>5. これから Plasma はどうなっていくの？😯</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJ2xv4PlUaMC6EXsqr24qw.png" /></figure><p>Plasma は送金においてはトリレンマを攻略し、DApp として完全に近いものを実現しました。</p><p>現在、Cryptoeconomics Lab では、今までの研究成果を生かしながら、Plasma Group が提案した Predicate という新しいインターフェースに関する研究を行っています。</p><p>この Predicate が完成すると、みなさんが普段開発しているようなゲームやエスクローなどといった、送金以上の複雑なアプリケーションが Plasma 上で動く世界に変わっていきます。</p><p>そんな世界を実現するために、これからも研究開発を進めていきますので、今後もぜひ Plasma とCryptoeconomics Lab をウォッチしてください！</p><p>※Predicate についての詳細はこちらで確認できます！</p><p><a href="https://medium.com/cryptoeconomics-lab/%E6%B1%8E%E7%94%A8%E7%9A%84%E3%81%AA%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E3%81%AE%E6%A7%8B%E9%80%A0%E3%82%92%E7%90%86%E8%A7%A3%E3%81%97%E3%82%88%E3%81%86-d3c20e01c713">汎用的なプラズマの構造を理解しよう</a></p><h3>もっと詳しく知りたい方は…</h3><p>この記事を読んで Plasma についてもっと知りたくなった方は、ぜひこちらのリンクから Telegram グループへ参加してください！</p><p>Telegram では、Plasma の最新情報が知れるだけでなく、実装者の <a href="https://medium.com/u/b8246acf5d93">Shuhei Hiya</a> や <a href="https://medium.com/u/a0ba9425484d">Shogo Ochiai</a> へ直接質問をすることもできます！</p><p><a href="https://t.me/plasmaqanda">JP OVM Dev Group</a></p><h3>Cryptoeconomics Lab とは？</h3><p>ブロックチェーンのセキュリティを失うことなくスケーラビリティ、ユーザビリティを兼ね合わせた DApps を開発することができるフレームワーク「Plasma Chamber」の社会実装に取り組んでいる研究チームです。</p><p><a href="https://www.cryptoeconomicslab.com/">Plasma Chamber | Cryptoeconomics Lab</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=197c2ec07855" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%8B%E3%82%A2%E5%90%91%E3%81%91-%E3%82%B5%E3%83%AB%E3%81%A7%E3%82%82%E5%88%86%E3%81%8B%E3%82%8B-plasma-%E5%85%A5%E9%96%80-%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%A9%E3%83%96%E3%83%AB%E3%81%AA-dapp-%E3%82%92%E4%BD%9C%E3%82%8D%E3%81%86-197c2ec07855">[エンジニア向け] サルでも分かる Plasma 入門 〜スケーラブルな DApp を作ろう〜</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[汎用的なプラズマの構造を理解しよう]]></title>
            <link>https://medium.com/cryptoeconomics-lab/%E6%B1%8E%E7%94%A8%E7%9A%84%E3%81%AA%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E3%81%AE%E6%A7%8B%E9%80%A0%E3%82%92%E7%90%86%E8%A7%A3%E3%81%97%E3%82%88%E3%81%86-d3c20e01c713?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/d3c20e01c713</guid>
            <category><![CDATA[プレディケート]]></category>
            <category><![CDATA[プラズマ]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[predicate]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Thu, 30 May 2019 23:01:00 GMT</pubDate>
            <atom:updated>2019-06-01T22:27:49.854Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding the Generalized Plasma Architecture</p><blockquote>本記事は2019年3月26日にプラズマR&amp;Dグループである<a href="https://plasma.group/">Plasma Group</a>のMediumで公開された<a href="https://medium.com/plasma-group/plapps-and-predicates-understanding-the-generalized-plasma-architecture-fc171b25741">Understanding the Generalized Plasma Architecture</a>の記事をCryptoeconomics LabのYuriko Nishijimaが日本語翻訳したものです。</blockquote><p>元の記事↓</p><p><a href="https://medium.com/plasma-group/plapps-and-predicates-understanding-the-generalized-plasma-architecture-fc171b25741">Plapps and Predicates: Understanding the Generalized Plasma Architecture</a></p><p>プラズマの研究の最先端をお伝えするアドバンストな内容となっていますので、プラズマの基礎から抑えたい方は、まずこちらの記事を読んでみてください。</p><p><a href="https://medium.com/cryptoeconomics-lab/%E5%88%9D%E5%BF%83%E8%80%85%E5%90%91%E3%81%91%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E5%8B%89%E5%BC%B7%E6%B3%95%E3%81%BE%E3%81%A8%E3%82%81%E3%83%8E%E3%83%BC%E3%83%88%E3%83%BC-0%E3%81%8B%E3%82%893%E9%80%B1%E9%96%93%E3%81%A7%E5%AD%A6%E3%82%93%E3%81%A0%E3%81%93%E3%81%A8-f9d68a4d617f">初心者向けプラズマ勉強法まとめノートー 0から3週間で学んだこと</a></p><p>また、後半部分で説明している具体的なプレディケートの仕様は2019年5月31日現在変更されている部分もあるので、Plasma Groupのプレディケートの仕様に関する最新情報はこちらのドキュメントをご覧ください。</p><p><a href="https://docs.plasma.group/projects/spec/en/latest/src/02-contracts/predicate-contract.html">Predicate Contract - @pigi/spec documentation</a></p><p>私たちは先日、<a href="https://pigi.readthedocs.io/en/latest/src/specs/generalized-plasma-state.html">汎用性の高いアプリケーションを開発できるプラズマ</a>についての<a href="https://medium.com/plasma-group/towards-a-general-purpose-plasma-f1cc4d49c1f4">記事</a>を公開しました。今回は、そのアーキテクチャーについてさらに詳細を追っていきたいと思います。まずはじめにプラズマの構成要素を大まかに解説し、<a href="https://github.com/plasma-group/research/tree/master/gen-plasma">Pythonで書かれたサンプル実装</a>を見ていきます。すでにプラズマに詳しい方は図が載っている段落までスクロールしてもらって構いません。</p><h3>はじめに</h3><h4>前回の記事で話した大事な点</h4><ol><li><strong>プラズマのリサーチを全て追うのは大変である。</strong></li></ol><p>詳しい人ならおそらくプラズマには色々な派生があることをご存知でしょう。それぞれの派生で良いところ・悪いところのトレードオフがあり、１つ１つの研究の進捗を追い続けているだけで1日が終わってしまいます。</p><ol><li><strong>ほとんどのデベロッパーはスケーラブルなDappsを簡単に作る方法さえ得られれば満足なのである。</strong></li></ol><p>みんなが素晴らしいデベロッパーツールやしっかり整備されたライブラリが欲しいと思うのは当たり前で、一つのアプリを作るために一からブロックチェーンを開発したいと思う人は少ないでしょう。</p><p>Plasma Groupはプラズマの専門家でなくてもプラズマチェーン上でちゃんとスケールするアプリケーション（Plasma上のApplicationなので名付けて『Plapp』）を簡単に作れるプラットフォームを作りました。『Plapp』という名前はまだ耳馴染みが無いかもしれませんが、ぜひ覚えてくださいね😄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*Sf8QjGRb9iXWWkJk" /><figcaption>プラズマのリサーチを追うのが大変だと言っているRickとMorty</figcaption></figure><h3>レイヤー2とは：ステートに関する主張</h3><p>レイヤー2でやりたいことを一言で表すと、『メインチェーン上にあるユーザーの資産（オンチェーンデータ）の保証を提供するために、メインブロックチェーンの外のデータ（オフチェーンデータ）を使う』ということです。</p><p>例えば、そのオフチェーンデータはイーサリアムにデプロイ済みのエスクローコントラクトに保持されている資産を引き出す権利をユーザーに与えるかもしれません。しかしこの場合、イーサリアムブロックチェーンを介することなくその資産の所有権が移されているということになります。</p><p>しかしながら、オフチェーンデータを使って、結果的にメインブロックチェーンでなにかできなければそれは有用であるとは言えません 。</p><p>メインチェーンに新しい動作を起こさせるためには、大体の場合、オフチェーンデータに関する主張をその資産の乗っているメインチェーンのスマートコントラクトに提出する必要があります。例えば『私が資産Xを引き出すことを許可してくれたこの署名つきのメッセージを私は持っています』などというものです。</p><p>しかし、もしその主張を提出した人が新たにその資産 X を他の誰かに送るメッセージに署名してしまったとしたらどうでしょうか？ これは最初に提出された出金を無効にしてしまいます。 このような2回目の不正な出金が確実に成功しないようにするため、すべての主張に対し反証期間(チャレンジ期間)を設けています。誰でも期間内であればその主張に対して反論することができます。誰からも反論されることがなければその主張は正当であったと認識されます。シンプルでわかりやすいですね！</p><p>この設計をプラズマに当てはめてみましょう。プラズマチェーンはブロックの連なりでできていて、一つ一つのブロックはトランザクションの連なりで出来ています。プラズマチェーンブロックが作られるたびに、<a href="https://en.wikipedia.org/wiki/Commitment_scheme">暗号化されたコミットメント</a>がメインチェーンにパブリッシュされます。これらのコミットメントは何かがそのブロックに含まれていたと証明するために使うことができます。プラズマの場合、このコミットメントはブロックの中の全てのステートアップデートから作られたマークルルートです。</p><p><strong>イーサリアムブロックチェーンにデプロイされたプラズマのスマートコントラクトはプラズマブロックがコミットされた順番を記録し、コミットメントがその後書き換えられることを防ぎます。</strong>つまりこれらのブロックのコミットメントは私たちに時間の概念を与えてくれるということです。 ユーザーが何かがプラズマチェーンで起こったという主張をしたい時、彼らはそれらが<strong>いつ</strong>起こったか伝えるためにブロックナンバーを参照しなければなりません。例えばあるユーザーが『これは私にアセット Z をくれたブロックYに含まれているトランザクションXだよ』と伝えたかったとします。その際そのトランザクションがいつ起こったかという時系列に関する付加情報は、何が先に起きて何が後に起きたか把握し不正なトランザクションに対して反証するためにとても重要です。</p><h3>オフチェーンデータの使い方まとめ</h3><p>ここまで見てきたようにレイヤー2とは、主になんらかのオフチェーンデータを使ってオンチェーンに乗っている情報に影響を与えるためにあるものです。ここまでの例ではオフチェーンデータは主に何らかの資産の所有権を表すために使われてきました。誰によって所有されたか、そしてその所有権が他の誰かに移っていないかどうか、といった情報です。</p><p>例えば、アリスが自分の資産をイーサリアム上のスマートコントラクトにデポジットすると、アリスがその資産の所有者になります。そしてアリスはその所有権をボブに移すオフチェーンメッセージに署名することもできます。その後ボブはメインチェーンに対して署名されたそのメッセージを使って資産の所有権は自分にあると主張し、その資産をイーサリアムメインチェーンに引き出すことができます。</p><p>また、資産の所有権の移転以上に複雑なことも表現することができます。たとえばアリスがクリプトキティをメインチェーンにデポジットし、次々とオフチェーンでキティの毛の色を変えていくメッセージに署名したとします。先ほどの例の通り、アリスは最後に署名したメッセージのあとに猫の毛の色がどうなっているかをイーサリアムに対し主張すればいいわけです。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/0*9R9jvKBZfvunPaSg" /></figure><p>猫の毛皮の色であろうが目の色だろうがイーサリアムブロックチェーンにデプロイされたスマートコントラクトはこれらの変更を理解しなければならないのです。新しい機能や新しい型の『状態遷移』はプラズマコントラクト上のロジックの変更を要するので、今までのプラズマの仕様では、<strong>このような機能を足すためには、全てのプラズマコントラクトをもう一度デプロイし直し、みんなの資産を古いプラズマチェーンから新しいプラズマチェーンへマイグレーションしなければなりませんでした。</strong>それではセキュアでもスケーラブルでもなく、アップグレードも難しかったのです。</p><h3>プレディケート: プラズマをもっと便利に！</h3><p>プラズマチェーンの設計に新しい機能を追加したいと考えたときに、私たちは上記で説明したような『どうやったら簡単にアップグレードできるか問題』に直面しましたが、 ブレインストーミングののち、<strong>メインのプラズマチェーンコントラクトを変えることなく新しい機能を追加する簡単な方法</strong>を思いつきました。</p><p>私たちが議論してきた、さまざまなアップグレードのシナリオにはある共通点がありました。オフチェーンデータはいつもメインチェーンへの間違った主張に対して反証するためにあるものだということです。<strong>ある特定の主張に対する反証とは、簡単に言うと、その主張で参照されたステートが期限切れだと示すための証拠です。</strong>例えば、ある所有権への反証は、主張をしたユーザーが後で同じ所有権を他の誰かに移したと示す証拠となります。猫の毛皮に関する反証であれば、猫の毛皮はもう既に他の色に変えられたと示す証拠でなければなりません。</p><p>私たちの一番のブレイクスルーは、メインのスマートコントラクトでその反証が正当なものかどうか確認しなくてもよいとに気づいたことでした。代わりに、正当性を確認する機能を搭載した他のスマートコントラクトを新たに用意すればいいのです。 つまり新しい機能を足すには、<strong>その新機能に必要なロジックを実装した新しいコントラクトを作り、今までのメインコントラクトからその新しいコントラクトを参照すればいいのです。この外部コントラクトをPredicate（プレディケート）と名付けました。</strong></p><p>このようにして新しい機能を搭載することは簡単になったのですが、次に<strong>ある特定のステートアップデートに対してどのプレディケートを使うべきか知る方法</strong>を見つけなければならなくなりました。例えば、猫の目の色の変更情報を使っても、猫の毛皮の色に関する主張に対しての反証は行えません。では、どうすればどのプレディケートを使えばいいかわかるのでしょうか？</p><p>簡単です。ステートアップデートがどのプレディケートに対応しているものなのか指定するという条件を追加すればいいのです。 そうすれば、猫の毛の色を変えるアップデートメッセージは、例えば『私はこの猫の毛皮の色を青に変えますが、反証は0x123（←コントラクトアドレス）上にあるプレディケートを使って行なってください。』などというものになります。</p><p>ユーザーはどれでも好きなようにプレディケートのアドレスを指定できるので、新しいプレディケートをEthereumにデプロイするだけで誰でも好きな時に新しい機能をプラズマチェーンに足すことができます。反証以外にもプレディケートができることはありますがそれは後で説明することにします。何が重要かというとプレディケートには標準的なインターフェースを実装する必要があるということです。次のセクションでより詳しく見ていきましょう。</p><h3>プレディケートの具体的な中身</h3><h4>ステートオブジェクト</h4><p>さてここでプレディケートが実際どのように動いているのか見てみましょう。 <strong>プラズマチェーンはステートオブジェクトの積み重ね</strong>によって構成されています。 ステートオブジェクトとは2つの項目から構成されるデータの塊です。</p><ul><li>predicateAddress: オブジェクトをコントロールするメインチェーン上のアドレス</li><li>parameters : オブジェクトを説明するための任意のデータ</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*ZaW0OFERVfLmySVGfgyzlg.png" /><figcaption>プラズマステートオブジェクトの構造</figcaption></figure><p>ステートオブジェクトとはつまり資産、つまり、Plasma Cashのnon-fungibleコインの概念を抽象化したものです。Plasma Cashで１つ１つの固有のコインがcoinIDを持っていたように、それぞれのステートオブジェクトもstateIDを保有しています。</p><p>説明はこれで以上です！ stateIDはプラズマチェーンにデポジットされていったそれぞれのステートオブジェクトに時系列順で割り振られていきますが、parametersやpredicateが何であるべきか、などのルールは特にありません。ステートアップデートの集合体がプラズマブロックであり、それらのステートアップデートによって特定のstateIDにおける新しいstateObjectが定められるのです。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*SJhW_7Zz6LMbPFue" /><figcaption>ブロック0にてコミットされたステートアップデート：『ID 0のついたステートオブジェクトをブロック0にて所有しているのはアリスである』</figcaption></figure><p>私たちの開発しているプラズマは<a href="https://medium.com/plasma-group/plasma-spec-9d98d0f2fccf">range(レンジ)設定のあるCash派生</a>なので、stateUpdateはstateObject IDが割り振られた特定のrange内で起こります。</p><pre>stateUpdate = {<br>   start: uint,<br>   end: uint,<br>   plasmaBlockNumber: uint,<br>   stateObject: stateObject<br>}</pre><p>オペレーターがプラズマブロックのハッシュ値を提出する先であるEthereum上のプラズマチェーンコントラクトはverifyUpdate(update: stateUpdate, updateWitness:byte[]) -&gt; boolという関数を実装しています。これはマークルインクルージョンプルーフ(updateWitness)というステートアップデートが本当にコミットされたかの証拠があるかをチェックする関数です。</p><h4>プレディケートのインターフェース</h4><p>プレディケートは標準的なコントラクトのインターフェースを実装しなければなりません。それらの関数を実際に見ていきましょう。</p><p>プラズマコントラクトがする最も重要な作業はステートアップデートの正当性を見極めることです。特に、ブロックを操作しようと思えばできる絶対的な権限を持っているオペレーターが正当なステートアップデートに “侵入”し、stateObject.parameters.owner == operatorと書き換え窃盗することを防がなければなりません。</p><p>これを防ぐために、私たちは “<strong>state deprication</strong>”という概念を設計に取り入れることを思いつきました。それは<strong>あるstateIDに対する正当なステートオブジェクトはまだ “deprecate”（無効化）されていない最も昔の（時系列的に前である）ステートアップデートである</strong>、というものです。state deprecationはUTXOモデルのブロックチェーンにおいて、UTXO（<strong>未使用</strong>トランザクションアウトプット）が<strong>使用済み</strong>トランザクションアウトプットに変わるのに似ています。</p><p>このルールを取り入れたことによって、たとえオペレーターが不正にstateObject.parameters.owner == operatorとあとで書き換えたとしても、それより前のステートアップデートstateObject.parameters.owner == aliceが勝つわけです。なぜかというとそのアップデートを期限切れのものだとdeprecate(無効化)できるのはアリスだけであり、アリスはまだ自分のステートアップデートを無効化していないからです。</p><p>つまり、プレディケートの中で最も重要な関数はあるステートを無効化できる条件を定義するものです。</p><pre>verifyDeprecation(stateID: uint, update: stateUpdate, deprecationWitness: bytes)</pre><p>verifyDeprecation関数はコミットされたstateUpdateが特定のstateIDにおいて無効化されたかどうかをtrue/false値を返して示します。deprecationWitnessはstateObjectが無効化されたかどうかをプレディケートが確かめるために使う、任意のデータが入る変数です。例えば、deprecationWitnessにupdate.stateObject.parameters.ownerから正当な署名を含めなければならないと設定したとしたら、所有者だけがdeprecation(無効化)を承認することができる、と保証することができます。</p><p>注意して欲しいのは、<strong>この関数はプラズマのexitやdisputeに対する無効化を行うわけではなく</strong>、プラズマコントラクトがstateObjectが無効化されているかどうか知りたい時にこの関数を呼び出すということです。</p><p>プレディケートのインターフェースには他に3つの関数があります。重要な順に</p><pre>1.finalizeExit(exit: bytes)</pre><p>exitが執行された時プラズマコントラクトはそのexitに関係する全ての資産をプレディケートコントラクトアドレスに送信し、この関数を呼び出します。</p><pre>2. canInitiateExit(stateUpdate: bytes, initiationWitness: bytes) -&gt; bool</pre><p>この関数はコミットされたステートアップデートに対し、誰が主張を行えるかをプレディケートコントラクト上で制限するものです。例えばownership predicate(コインの所有権の移し変えを行うプレディケート)の場合、canInitiateExitを呼び出せるのはおそらくその資産の所有者だけに制限されているはずです。</p><pre>3. getAdditionalDisputePeriod(stateUpdate: bytes) -&gt; uint</pre><p>この関数はステートアップデートの主張に対する反証期間の延長をしたい時に呼び出すものです。アトミックスワップなど裁判期間を長く要するような複雑なプレディケートにのみ使うものであり、ほとんどの場合この関数は0を返すだけです。</p><h4>Predicateの具体例：Ownership Predicate（コインの所有権の移転を行うプレディケート）</h4><p>全ての事柄は具体例を見ることによって理解しやすくなると思うので、早速１つ例を見てみましょう。最もシンプルなプレディケートはownership predicate (コインの所有権の移転を行うプレディケート)です。あるステートにおいてparameters.ownerに入力され指定されたアカウントはいつでもexitでき、またどんな状態へもステートをアップデートできます。 プレディケートを作る一番最初のステップはステートオブジェクトを設計することです。 ownership predicateの場合、幸運なことにとても簡単で、オブジェクトのparametersに入る唯一のデータはその時点での所有者のアドレスです。 ownership predicateを使ったステートオブジェクトはおそらくこんな感じでしょう。</p><pre>OwnedByAlice = {<br>  parameters: {<br>    owner: &#39;0xAliceAddress...&#39;,<br>  },<br>  predicate: &#39;0xOwnershipPredicateAddress...&#39;<br>}</pre><p>実装しなければならない最も重要な関数はverifyDeprecatedです。verifyDeprecatedは任意のdeprecationWitnessを受け取ります。ownership predicateの場合、正しいdeprecationWitnessは state.parameters.ownerからの新しいstateUpdateへの合意を示す署名 新しいstateUpdateが後ろのプラズマブロックにコミットされたというプルーフ（インクルージョンプルーフ）</p><p>を持っています。 verifyDeprecated関数は上記の署名と、Merkle proofが正しく揃っているかどうか確認しなければならないということです。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/0*6PRAaPWr_1squnLr" /><figcaption>所有権のステートが無効化される時に必要な項目</figcaption></figure><p>まとめると、以下の図ようにして所有者が所有権を無効化し新しいアップデートを承認すると説明することができます。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/0*1rdSOFJK-BT0JQDL" /><figcaption>ownership predeicateの流れ。アリスがblock0からのアップデートを無効化し、ボブにstateIDを送っている図</figcaption></figure><p>残りの関数はかなりシンプルなものとなっています。</p><p>canInitiateExitはexit申請者が所有者であることを確認し、finalizeExitは資産をその所有者に送ります。そしてgetAdditionalDisputePeriodは返り値0を返します。</p><p>私たちがPythonで実装したシンプルなownership predicateの実際のコードはこのような感じです。シンプルさを追求するためPythonで実装しましたが、SolidityやVyperでも簡単に書くことができます。</p><p>見てわかる通り、上で説明した全てのインターフェースを実装済みです。思うほど難しいわけではないのです。はい、というわけで移転可能な資産の所有権を表したプレディケートをつくることができましたね。ここまでのほとんどのロジックは今までのプラズマコントラクトと同じです。<a href="https://www.ethdenver.com/">ETHDenver</a>にて<a href="https://twitter.com/plasma_group/status/1097983085855965185">プロトタイプ</a>も作ってみましたが、ほぼ今まで書いてきたコードを寄せ集めて書く順番を変更する作業でした。</p><h3>未来へ向けて</h3><p>私達は、プラズマにアップグレード性と汎用性を与えるプレディケートはプラズマを単なるペイメントチャネルから汎用性の高いステートチャネルへと押し上げるための大きな飛躍になると信じています。</p><p>それだけではなく、他にもたくさんプラズマ全体の研究を深めていけるようなプレディケートの設計に関する研究項目があります。</p><ul><li>ステートチャネル</li><li>DEX</li><li>Defragmentation</li><li>Nested Plasma</li><li>P2P CDPコントラクト</li></ul><p>しかし、プレディケートはプラズマをベースにしたアプリケーションにしか対応できないため、全てを解決する銀の弾丸ではありません。それでもとても大きな影響を与える技術であると思いますし、Plasma Cash派生以外のプラズマにも実装できるでしょう。</p><p>これはプラズマのエコシステム全体での汎用性に繋がると考えております。state deprecationの設計を兼ね備えているプラズマであればプレディケートコントラクトを共有し、相互運用できるでしょう。</p><p>レイヤー2スケーリングソリューションは全てオフチェーンデータを使い未来のオンチェーンのステートを保証するという設計で動いています。ステートチャネルにおいて古いステートが署名によって無効化されたり、プラズマでコミットされたり、いろいろなレイヤー2ソリューションが最終的に目指すことはこの一点に尽きます。私達はその都度個別につなぎを作らなくても、全てのレイヤー2ソリューションが共通のインターフェースを通して繋がっていく未来を描いています。全てはインターオペラビリティのために、そしてインターオペラビリティはスケーリングというゴールのために！</p><h3>参考文献</h3><p>Pythonのシミュレーション: <a href="https://github.com/plasma-group/research/tree/master/gen-plasma">https://github.com/plasma-group/research/tree/master/gen-plasma</a></p><p>技術的な仕様: <a href="https://pigi.readthedocs.io/en/latest/src/specs/generalized-plasma-state.html">https://pigi.readthedocs.io/en/latest/src/specs/generalized-plasma-state.html</a></p><p><strong>Plasma Groupの運営するPlasma Contributorsテレグラムグループへの参加はこちらから: </strong><a href="https://t.me/plasmacontributors">https://t.me/plasmacontributors</a></p><h3>Thanks to:</h3><p>この記事を翻訳するにあたり協力してくれた<a href="https://www.cryptoeconomicslab.com/">Cryptoeconomics Lab</a>チームのメンバーに感謝申し上げます。</p><p>Cryptoeconomics LabでもPlasma Groupと協力し、できる限り仕様を統一し汎用的なプラズマのフレームワークPlasma Chamberを開発しています。</p><p><strong>Cryptoeconomics Labの運営する開発者向けPlasma Chamber日本語テレグラムグループへの参加はこちらから: </strong><a href="https://t.me/plasmaqanda"><strong>https://t.me/plasmaqanda</strong></a></p><p>弊社の技術的なアップデートもぜひMediumやGithubなど以下のソースをチェックして追ってみてください。</p><h4>●Cryptoeconomics Labのリンク集</h4><p>Github：</p><p><a href="https://github.com/cryptoeconomicslab">Cryptoeconomics Lab</a></p><p>Medium：</p><p></p><p>Twitter：</p><ul><li><a href="https://twitter.com/yuriks_official">Yuriko (@yuriks_official) | Twitter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3c20e01c713" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/%E6%B1%8E%E7%94%A8%E7%9A%84%E3%81%AA%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E3%81%AE%E6%A7%8B%E9%80%A0%E3%82%92%E7%90%86%E8%A7%A3%E3%81%97%E3%82%88%E3%81%86-d3c20e01c713">汎用的なプラズマの構造を理解しよう</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[「Plasma Chamber」 はなにを解決するのか？]]></title>
            <link>https://medium.com/cryptoeconomics-lab/plasma-chamber-%E3%81%AF%E3%81%AA%E3%81%AB%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B-107d267a1713?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/107d267a1713</guid>
            <category><![CDATA[plasma-chamber]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[Daiki Sekiguchi]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 08:16:18 GMT</pubDate>
            <atom:updated>2019-04-18T23:57:18.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>「Plasma Chamber」 はどんな問題を解決するのか？</h3><p>イーサリアム上で動くアプリケーション (通称: DApp) を開発するにあたって、<strong>「</strong>スケーラビリティ<strong>」</strong>という問題は誰しもが直面するクリティカルな問題ではないでしょうか。<br>ブロックチェーンが登場してから、世界中でこの「スケーラビリティ」の問題を解決するために様々な議論や開発が行われています。</p><p>そのソリューションの1つとして Plasma という技術が提唱されています。<br>Plasma はイーサリアムを親チェーン (通称: Rootchain) とし、そこから階層的に派生する別のネットワーク (通称: Childchain) を構築します。<br>新たに構築した Childchain 上でトランザクションの処理を行い、大量の処理をまとめて Rootchain に記録することによって、セキュリティを担保したままイーサリアムの「スケーラビリティ」問題を解決するものです。</p><p>しかし、その Plasma も実際に日本や、日本とインフラの異なる外国での日常生活でブロックチェーンの存在を意識することのないユーザー体験を考えると、多くの課題が見えてきます。<br>また、ブロックチェーンを用いる意義を損なわないようにそれらを改善するには、深い技術への理解が必要です。</p><p>Cryptoeconomics Lab ではブロックチェーンを用いる意義を失うことなく「実社会で実用可能な Plasma」を目指して、「Plasma Chamber」の開発を行っています。</p><h3>「Plasma Chamber」はどんな問題を解決するのか？</h3><ol><li>たくさん処理がきても大丈夫なの？</li><li>GAS 代がかかって使えないんじゃないの？</li><li>決済が完了するまでに時間がかかるんじゃないの？</li><li>いくら早くなっても資金奪われるリスクとかあるんじゃないの？</li><li>保有するデータ量多すぎて使えなくない？</li><li>通貨の価値が安定しないと使えなくない？</li></ol><h4>1. たくさん処理がきても大丈夫なの？</h4><p>イーサリアム上では 15 TPS (Transactions Per Second) しか処理できないのに対し、Plasma Chamber では 数100~数1,000 TPS の処理を行うことができます。</p><p><a href="https://medium.com/cryptoeconomics-lab/%E5%88%9D%E5%BF%83%E8%80%85%E5%90%91%E3%81%91%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E5%8B%89%E5%BC%B7%E6%B3%95%E3%81%BE%E3%81%A8%E3%82%81%E3%83%8E%E3%83%BC%E3%83%88%E3%83%BC-0%E3%81%8B%E3%82%893%E9%80%B1%E9%96%93%E3%81%A7%E5%AD%A6%E3%82%93%E3%81%A0%E3%81%93%E3%81%A8-f9d68a4d617f">初心者向けプラズマ勉強法まとめノートー 0から3週間で学んだこと</a></p><h4>2. GAS 代がかかって使えないんじゃないの？</h4><p>サービス運営者 (通称: オペレーター) が代わりに GAS 代を支払うことで、送金におけるエンドユーザーの GAS 代負担をゼロにすることを実現しています。</p><p>エンドユーザーが支払う GAS 代は Plasma 上へ資産を預ける際 (通称: Deposit) と、Plasma から資産を引き出す際 (通称: Withdraw/Exit) にのみ発生します。</p><p>オペレーターが支払う GAS 代は大量のトランザクションを1つにまとめた Merkle Root をイーサリアム上へ提出する際にのみ発生するため、イーサリアム上で発生する GAS 代に対して、1 / 数100~数1,000 しかかかりません。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiPgUMhApzPQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiPgUMhApzPQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiPgUMhApzPQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb838146a8955e5e5e8d3b79cbc5afb6/href">https://medium.com/media/bb838146a8955e5e5e8d3b79cbc5afb6/href</a></iframe><h4>3. 決済が完了するまでに時間がかかるんじゃないの？</h4><p>Plasma Chamber では Fast Finality というガジェットを搭載しており、送金完了後すぐに着金させることを実現しています。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvNCc5I9Q29k%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvNCc5I9Q29k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvNCc5I9Q29k%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/de951ab2a9fca23d21705db6c4e5a0dd/href">https://medium.com/media/de951ab2a9fca23d21705db6c4e5a0dd/href</a></iframe><h4>4. いくら早くなっても資金奪われるリスクとかあるんじゃないの？</h4><p>Simple Exit Game という設計により、スケーリングを図ると同時にセキュリティの担保をしっかりと設計し、Plasma Chamber 上で資金が奪われるリスクを限りなくゼロに近づけています。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGS12XDIcb9U%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGS12XDIcb9U&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGS12XDIcb9U%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/faadfa51a32ca934a74847d26af45c09/href">https://medium.com/media/faadfa51a32ca934a74847d26af45c09/href</a></iframe><h4>5. 保有するデータ量多すぎて使えなくない？</h4><p>Checkpoint という仕組みを導入することで不正証明 (通称: Fraud Proof) のためのデータ量を最低限まで抑えることを可能にしています。<br>これによりスマートフォン上でも Plasma Chamber を利用した決済を実現しています。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkXK7Wm8El2E%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkXK7Wm8El2E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkXK7Wm8El2E%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec704546383d3ae61bad047fe299c7e7/href">https://medium.com/media/ec704546383d3ae61bad047fe299c7e7/href</a></iframe><h4>6. 通貨の価値が安定しないと使えなくない？</h4><p>Plasma Chamber は ERC20 トークンを利用できるように実装しています。<br>この実装によって DAI や LCJPY などのステーブルコインを利用することができるため、価値が安定した通貨での決済を実現しています。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPZ7fJLO1ai4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPZ7fJLO1ai4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPZ7fJLO1ai4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a0d19e6af534a921848590341fbc997/href">https://medium.com/media/8a0d19e6af534a921848590341fbc997/href</a></iframe><h3>「Plasma Chamber」は実社会でも利用できるように実装された Plasma です</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10KE6iCv9KRGoNZS1vTTSg.png" /></figure><p>ここまでで紹介した問題を解決することで、「Plasma Chamber」は実社会でも利用できる Plasma を実装しています。<br>現在、Cryptoeconomics Lab では「Plasma Chamber」の開発を OSS で行っており、Contributor を募集しています！</p><p><a href="https://github.com/cryptoeconomicslab/plasma-chamber">cryptoeconomicslab/plasma-chamber</a></p><p>ブロックチェーンコミュニティを盛り上げるべく、社会へ普及するために開発を進めています。ご協力よろしくお願いいたします！</p><h3>Cryptoeconomics Lab とは？</h3><p>ブロックチェーンのセキュリティを失うことなくスケーラビリティ、ユーザビリティを兼ね合わせた DApps を開発できるフレームワーク「Plasma Chamber」の社会実装に取り組んでいる研究チームです。</p><ul><li><a href="https://www.cryptoeconomicslab.com/">Plasma Chamber | Cryptoeconomics Lab</a></li><li><a href="https://scrapbox.io/cryptoeconomicslab/">cryptoeconomicslab</a></li><li><a href="https://research.cryptoeconomicslab.com/">Cryptoeconomics Research</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=107d267a1713" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/plasma-chamber-%E3%81%AF%E3%81%AA%E3%81%AB%E3%82%92%E8%A7%A3%E6%B1%BA%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B-107d267a1713">「Plasma Chamber」 はなにを解決するのか？</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Plasma Chamber’s Fast Finality]]></title>
            <link>https://medium.com/cryptoeconomics-lab/plasma-chambers-fast-finality-3fe20a05f80d?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/3fe20a05f80d</guid>
            <category><![CDATA[fast-finality]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[plasma]]></category>
            <dc:creator><![CDATA[Jérémie Grandsenne]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 03:59:43 GMT</pubDate>
            <atom:updated>2019-04-10T14:19:52.440Z</atom:updated>
            <content:encoded><![CDATA[<h4>Cryptoeconomics Lab’s Plasma Chamber allows for a quick and safe Plasma chain with instantaneous confirmation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ROuZmYPaPZYbMJHKMJRDIQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/sb7RUrRMaC4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mathew Schwartz</a></figcaption></figure><p>If you’ve been following the technical developments over the last few years, you know that so much has already been done, and people have dedicated so much energy to invent solutions to the technical issues that stand in the <strong>blockchain</strong>’s way: many ideas are on their way, many protocols and models are being built to fit with each project’s specific goals, and a variety of tokens standards are invented for different use-cases.</p><p>Several protocols are also being researched to solve the scalability problem, also known as the <strong>Blockchain Trilemma</strong>: meaning that between security, decentralization, and scalability, you always have to sacrifice one of them.</p><p>And as decentralization and safety are both blockchain’s sacro-saint fundamentals, until now, <strong>scalability</strong> is usually the weakest point of the triangle. Which is why some passionate minds today are working on to drastically improve blockchain’s scalability while maintaining the highest guarantees of security and decentralization, both fundamental qualities of blockchain that can’t be replaced by traditional databases.</p><blockquote>One of the most promising solutions to the scalability issue is <strong>Plasma</strong>, co-created by Vitalik and Joseph Poon, and researched by our team at Cryptoeconomics Lab: <strong>a network of child-chains</strong>, offloading a lot of work from the root chain, to which it commits only very light <a href="https://en.wikipedia.org/wiki/Merkle_tree">Merkle Roots</a> instead of the full blocks. The goal is to accelerate the inspection process, and scale <strong>from 14 to millions of transactions per second</strong>.</blockquote><p>In this model, <strong>one single operator</strong> validates the Plasma child chain’s transactions, which is much quicker than waiting for a lot of nodes in the network to agree with each other to validate them. But to resist potential malicious behaviors from this operator, the transactions he commits remain pending for a long period of time, during which <strong>users can challenge the transactions</strong>, meaning they can check that they are valid, and have them removed if they’re not: for instance, in the case of a double spend.</p><p>Fantastic: thanks to the combination of the exit game and Ethereum’s security to confirm finality, child chains are now secure, and thanks to all the work offloaded from Ethereum to the Plasma chain, the rock-secure Ethereum is now also fast.</p><blockquote>Still, lightfast child chains now face slow blocks confirmation, due to the pending transactions’ legitimation period.</blockquote><p>The reason is that the Plasma chain’s operator could fraudulently censor a Plasma transaction: for instance, in order to benefit a merchant’s service, but then to delete the transaction with which he actually pays the merchant.</p><p>This would require the malicious control of both the L2 confirmation mechanism, controlled by the L2 operator himself, and then of the L1 confirmation mechanism for the L2 block’s commitment, controlled by the L1 miner. Either the operator would also be a miner on the L1 layer, either he would collude with a fraudulent L1 miner.</p><p>This way, they would be able to maliciously cancel the commitment of the legal L2 block sent on L1, and send back the unconfirmed legal block on L2. The L2 operator would then propose a new block, without the legal transaction he wants to delete, and send the fraudulent block back to L1, where it will be confirmed by the malicious miner.</p><p>The legal block has been refused, and the illegal block has replaced it and been confirmed.</p><p>Therefore, slow blocks confirmation on L2 is a way to allow for the detection of such behaviours, and <strong>to avoid such scenarios</strong>.</p><blockquote>So how does Alice pay for her last-minute travel so that her transaction is complete right away?</blockquote><p>At Cryptoeconomics Lab, we believe that Bob and Alice are right, and we provide them with a way to jump in the plane in just the time to pack up their stuff: what we call <strong>Fast Finality</strong>.</p><p>In essence, Fast Finality is an option that a service provider (in our example, the travel company) will buy from the Plasma chain operator, and most likely provide in return to its customers (Alice or Bob), thanks to which the transaction will not be pending for days, but be processed immediately.</p><p><strong>So how does that work?</strong></p><p>First things first, who plays the roles: <strong>Alice</strong> is Alice, let’s call <strong>the Service Provider</strong> or merchant TravelWorld, and <strong>the Operator</strong> is most likely a legally registered entity, that has, 1) the ability to continuously run a network, 2) absolutely no interest in being associated with fraudulent behaviors, not only for its reputation but also because of the possibility for disputes to end up in court, and 3) a huge collateral capacity, to be able to refund potentially all users at once in case something goes wrong with their transactions. And in case the operator is proven fraudulent, <strong>his collateral is withdrawn</strong> and he loses it, which he will want to avoid. <strong>Example of such an operator: Amazon Web Services (AWS)</strong>.</p><p>But don’t worry hearing « Amazon »: remember, Amazon doesn’t have access to anyone’s identity nor personal information. Amazon is strictly receiving transactions’ impersonal numbers (Plasma TxHashes), compressing these numbers into a Merkle tree, and sending the root hash to the root chain.</p><p>Now what happens when Alice wants to go to Bahamas <em>right now</em>?</p><p>Alice sends a transaction with her signature to TravelWorld. TravelWorld forwards it to Amazon Web Services, the operator of the Plasma chain. TravelWorld also buys a non-fungible Fast Finality Token from AWS, in exchange for Amazon to process Alice’s transaction right now.</p><p>The operator, AWS, sends back the transaction to the merchant, TravelWorld, now signed both by Alice and Amazon, and also takes care of including it in the next Plasma block, and of committing the appropriate Merkle Root to the root chain.</p><p>And in case the operator now decides to censor the transaction, the merchant has the Tx in hand signed by Alice and confirmed by the operator, and can send it to the Ethereum L1 root chain for dispute, like he would send a customer’s check to his bank, assured that he will receive his money.</p><blockquote>Duration of the whole operation: 300 milliseconds.</blockquote><p>TravelWorld can now issue the flight ticket for dear Alice.</p><p>In this model, <strong>the merchant can’t be fraudulent</strong> because he needs both signatures of Alice and of the operator, and <strong>Alice can not be fraudulent</strong> because she doesn’t have access to a sensitive part of the model. <strong>The operator can be fraudulent, but</strong> the challenges protocol allows the merchant to prove that although he bought the Fast Finality Token, Amazon didn’t process it quickly. Amazon can produce a counter-proof, and two disputes’ rounds of proofs production in both directions are allowed.</p><p>And as always, if the operator makes malicious actions such as block withholding or double spend, any user can dispute him within 2 weeks after the Fast Finality confirmation. In case the operator is proven fraudulent, <strong>his collateral is withdrawn</strong> and he loses it, which he will also want to avoid.</p><h4>All boxes are checked: scalability, decentralization, security.</h4><p>With Plasma Chamber, the whole process speeds up, and thanks to its Fast Finality feature, finality confirmation is instantaneous: blockchain is now fast, trustless and safe.</p><h3>Know more</h3><p>To know more about Plasma Chamber and see what it can do for you, use the Plasma Chamber SDK to develop your applications, or simply get in touch with the team, please check <a href="https://www.cryptoeconomicslab.com/">https://cryptoeconomicslab.com</a>, or <a href="https://medium.com/@yuriks_official">Yuriko Nishijima</a>’s profile on Medium. You can also hear Yuriko introducing Plasma Chamber at <a href="https://www.edcon.io/">EDCON 2019</a> in Sydney on 2019/4/13. Thanks to the team at Cryptoeconomics Lab, especially Yuriko Nishijima, <a href="https://twitter.com/_sgtn">Shogo Ochiai</a> and <a href="https://twitter.com/syuhei176">Syuhei Hiya</a> for their kind time answering my questions about the technology behind Plasma Chamber. Remaining errors are my own.</p><p>* * *</p><blockquote>Author’s note: I’m the content manager for the European Union Blockchain Observatory &amp; Forum, an initiative led by ConsenSys for the European Commission. If you wish to get in touch with me, I’m not such a heavy tweeter but you can find me on <a href="https://www.linkedin.com/in/jeremiegrandsenne/">LinkedIn</a>. And if you need a researcher / writer in Tokyo, don’t think twice and hit me up.</blockquote><p><a href="https://twitter.com/jgrandsenne">Jérémie Grandsenne (@jgrandsenne) | Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fe20a05f80d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/plasma-chambers-fast-finality-3fe20a05f80d">Plasma Chamber’s Fast Finality</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[初心者向けプラズマ勉強法まとめノートー 0から3週間で学んだこと]]></title>
            <link>https://medium.com/cryptoeconomics-lab/%E5%88%9D%E5%BF%83%E8%80%85%E5%90%91%E3%81%91%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E5%8B%89%E5%BC%B7%E6%B3%95%E3%81%BE%E3%81%A8%E3%82%81%E3%83%8E%E3%83%BC%E3%83%88%E3%83%BC-0%E3%81%8B%E3%82%893%E9%80%B1%E9%96%93%E3%81%A7%E5%AD%A6%E3%82%93%E3%81%A0%E3%81%93%E3%81%A8-f9d68a4d617f?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/f9d68a4d617f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Sun, 10 Feb 2019 08:33:55 GMT</pubDate>
            <atom:updated>2019-02-10T08:33:55.113Z</atom:updated>
            <content:encoded><![CDATA[<h4>はじめに</h4><p>こんにちは！この記事は先月Cryptoeconomics Labの公式Mediumから発信した<a href="https://medium.com/cryptoeconomics-lab/how-i-started-learning-plasma-and-what-ive-got-within-3-weeks-cf3db8cf619a">How I started learning Plasma and what I’ve got within 3 weeks</a> の日本語版記事です。ブロックチェーンのスケーラビリティ問題に興味のある日本の皆様向けにより読みやすく分かりやすい記事を書いて、CELの技術者たちが日々取り組んでいるPlasma Chamberの開発アップデートを伝えていけたらいいなと思い日本語でも記事を発信していくことになりました。</p><p>2018年12月にCryptoeconomics Labにインターンとしてジョインし、初めてしっかりとPlasmaを学び始めた際、メンターである<a href="https://twitter.com/_sgtn">Shogoさん</a>にアドバイスを受けながら、後々勉強方法のまとめ記事を書くために自分でも初心者ならどのように学んでいくのが効率がよいか考えながら勉強してきました。今回はやっとその『プラズマスタディガイド』をみなさんにシェアできます。特にPlasmaの技術を1から勉強したい人に向けて参考になれば幸いです！</p><h4>昔抱いていたスケーラビリティ問題への第一印象・Plasmaを掘り始めたきっかけ</h4><p>最初スケーラビリティ問題はブロックチェーンの発展において大変クリティカルだと知りながらも、レイヤー1、レイヤー2ソリューションなどそれぞれたくさんありすぎて複雑そうだな..自分にはまだプロトコルレイヤーを掘るなんて難しすぎるかな…と躊躇していました。</p><p>多くの人に当てはまるかもしれませんが、Dappsや分散技術から可能になるWeb3.0の世界観・哲学に魅了され、興味を持ったのが私のブロックチェーンとの出会いでした。それ以来色々なプロジェクトをリサーチしてきましたが、その中でプロトコルレイヤーの開発をし、スケーラビリティ問題の解決に注力しているチームもたくさん見ながらも、先ほど述べたように単純に難しそうと思っていたことや、多くのアプリケーションレイヤーのプロジェクトがスケーラビリティ問題をまだ後回しにしている状況を垣間見てから個人的にこのトピックに足を踏み入れるのは億劫に思っていました。が、そんな中でPlasmaから実用化が進むであろうブロックチェーンというテクノロジーへの強い確信とトラストレスな社会を目指す哲学を持ってPlasmaの開発をしているCELチームと出会いました。彼らの技術力の高さと確固たるビジョン、こんな初心者にも質問すれば時間を割いて丁寧に技術的な解説をしてくれる面倒見の良さに感動し、自分も早くチームに貢献できるようになりたい！と試行錯誤しながらPlasmaを勉強し始めました！</p><p>CELでは現在<strong>Plasma Chamber</strong>という<strong>Plasma Cashをベースにしたオフチェーントランザクション検証フレームワーク</strong>を実装しています。Plasma Chamberを使えばPlasmaの上に簡単にセキュアでスケーラブルなDappsを作れるようになります。ソースコードは全て<a href="https://github.com/cryptoeconomicslab">Github</a>にアップしてありますので、この記事を見て実装レベルで興味を持った方はぜひご覧ください！</p><h4>Plasmaの全体像ー3つに分解</h4><p>一番最初は<a href="https://twitter.com/_sgtn">Shogoさん</a>がこれを読むといいよと沢山のリソースを渡してくれる中、Plasma全体の仕組みを俯瞰できていない状況だったので、一つ一つの記事が全体の中でどの部分の話をしているのか見えず記事の途中で情報を完璧に処理できず離脱してしまっていました。</p><p>大枠をとらえておけばわからない事項が出てきても、最低限自分がどの部分を理解できなかったかは捉えられますし、部分的な理解を繋ぎ合わせる作業もやりやすくなると思ったのでまずはその大枠から紹介したいと思います。</p><p>Plasmaを大きな視点で捉えた全体構造から、ある一点にズームインし詳しく解説している文章はたくさんありますが、どこの部分の話をしているか大きく分けて<strong>下記の3つのカテゴリ</strong>に分けることができます。<strong>＊重要ポイント</strong>は新しい情報に出会った時になんとなくどこの話をしているか分類するために知っておけばいいので、今全部言っている意味がわからなくても大枠を掴んでおけば大丈夫です！</p><p>＊今回はルートチェーンはEthereum として話します。前提としてEthereumの基礎知識があることが好ましいです。</p><blockquote><strong>1.Ethereumというルートチェーン x Merkle Treeを従えたチャイルドチェーンを組み合わせてスケーラビリティをあげる</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*W4rjl44IfRzLmLULWQtYag.jpeg" /></figure><p><strong>＊重要ポイント</strong>：本来一つ一つ検証しブロックチェーンに刻んでいた（そのせいで『詰まり』が起こっていた）トランザクションたちを『<strong>オペレーター</strong>』と呼ばれるシングルパーティー（Dappsの運営者）がその場で検証することはとりあえず置いておいて、マークルツリーというデータ圧縮ボックスに入れていきます。マークルツリーのてっぺんにある全てのトランザクションデータの圧縮値（<strong>マークルルート</strong>といいます）のみをルートチェーンのブロックに刻み、ユーザーがお金を引き出したいときに該当txを（この出金作業を『<strong>Exit</strong>』と呼びます）というのがPlasmaの一番の基本構造です。この<strong>Txデータを圧縮してルートチェーンに刻んでいく仕組み</strong>のおかげで、Plasma上でアプリケーションを走らせればGasコストが下がりトランザクションのスループットも上がるというわけです。</p><blockquote><strong>2. Exit Gameを考え、セキュリティを担保する</strong></blockquote><p><strong>＊重要ポイント</strong>：沢山のトランザクションを集めてマークルツリーにまとめ、マークルルートのみをルートチェーンに刻む作業は<strong>オペレーター</strong>というシングルパーティーに任せられています。このオペレーターには<strong>不正なトランザクション</strong>（例えばオペレーターの所有しているアカウントに不正にコインを送りお金を稼ぐトランザクションなど）<strong>を発生させ、ルートチェーンに刻む（『正しい履歴』として確定させてしまう) 力</strong>があります。つまりこのままPlasma使ってしまうとブロックチェーン特有のトラストレスさが失われ、ブロックチェーン上にアプリケーションを開発した意味がなくなってしまいます。なのでネットワークに参加している誰かがこのようなオペレーターの不正行為を感知した際、告発『<strong>Challenge</strong>』し善良なユーザーの資産を守れる設計が必要です。（この告発・資産保護プロセスに関しては次の記事で詳しく説明していきます）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lg-m__Fw27X2hstW" /><figcaption>＊この図はブロックチェーンではなく、コインが使われた履歴を表した図です</figcaption></figure><p>⬇︎</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tZPAK6oAfzHtNP6u" /><figcaption>＊運営＝オペレーター</figcaption></figure><p>⬇︎</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mn8G5QImtx9ViPMS" /><figcaption>不正exitに対して証拠を提出して『challenge』（異議申し立て）できる。</figcaption></figure><p>オペレーターの不正行為を抑止するために、どう漏れなく不正を感知・告発しユーザーの資産保護するかの設計を ‘<strong>Exit Game</strong>’ と呼び、Etheresear.chなどで数々の新提案が投稿され、議論がなされています。（2019年2月8日現在、Plasma CashのExit game最新版は多分<a href="https://ethresear.ch/t/a-simpler-exit-game-for-plasma-cash/4917/4">これ</a>）この設計によってスケーラビリティを上げながらも（ルートチェーン＝パブリックチェーンであるEthereuem ブロックチェーンの）セキュアさを保持するというプラズマの真髄が決まるので、とても重要なポイントとなっています。</p><p><strong><em>3. Exit Gameからユーザービリティ/UXを考える</em></strong></p><p><strong>＊重要ポイント</strong>：Plasmaの実用化・マスアダプションを目指すにあたり、最後に考えなければならない重要事項はユーザービリティです。ユーザーがExitを申請してからChallenge (異議申し立て) 期間というものが始まるのですが、その期間の間一度もexitに対してChallengeが承認されなかった時初めてユーザーはExit（お金の引き出し）を許されるわけです。しかしセキュアさを上げるためにChallenge期間を長く設ければ、同時に引き出しまでにかかる時間が長くなってしまい利便性が落ちてしまうという欠点があります。このセキュアさとユーザービリティの兼ね合いにおいて適切な設計が考案され続けています。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xfbio00JvmuBV8bX" /><figcaption>*勉強し始めの頃の落書きなのでところどころ間違いもあります。ご注意ください。</figcaption></figure><p>この全体像とプラズマを構成する3つのおおまかなカテゴリを理解したところで、下記の図のように自分の手で設計を描いてみることは理解を助けるのにとても役立つということをシェアしたいと思います！</p><p>自分で図に落とし込んでビジュアルで理解しながら文章を読むだけで理解度が全く違うと思うので是非試してみてください。</p><h4>便利なツール</h4><ul><li><strong>Plasma World Map</strong></li></ul><p><a href="https://plasma.io/">プラズマの原案</a> <a href="https://www.learnplasma.org/en/learn/">https://www.learnplasma.org/en/learn/</a>がJoseph PoonとVitalik Buterinによって発表されてから、様々な修正が考案され、色々な新提案がEtheresear.chなどで発表されてきました。今まで発表されたきたモデル Plasma MVP, Plasma Cash, Plasma Cashflow, Plasma Primeなどをベースのモデルとして、世界中のリサーチチームで実装プロジェクトが走っています。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ki-wUds-4ww_avn6" /><figcaption>ソース：<a href="https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333">https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333</a></figcaption></figure><p>一番大まかなカテゴリーとして ‘<strong>Simple Transfer</strong>’ (決済送金など基本的なトランスファーモデル）と’<strong>General States &amp; Computation</strong>’ (アプリケーションプログラムなど複雑なスマートコントラクトを可能にしたモデル）と分かれています。</p><p>次に大きな分類として、<strong>アカウントモデル</strong>か、<strong>UTXOモデル</strong>か、という点もありますがこの分類についての一歩踏み込んだ説明は次の記事でしたいと思います。</p><p>補足：それぞれの提案も現在進行形で修正点が加えられEthresear.chで発表されているので、最新のアップデートがこのワールドマップに反映されていないかもしれません。ご注意ください。</p><ul><li><strong>Mastering Ethereum</strong></li></ul><p>今のプラズマはEthereum ブロックチェーンをルートチェーンとして実装されていることがほとんどで、GithubのドキュメンテーションやMedium記事などもEthereumの知識が読者にあることを前提として書かれていることが多いです。そのため、根本的にわからない概念が出てきた場合初心に戻ってEthereumの基本原理から学びなおすのが一番早いと実感しました。<a href="https://github.com/ethereumbook/ethereumbook">ethreumbookというGithubページ</a> <a href="https://www.learnplasma.org/en/learn/">https://www.learnplasma.org/en/learn/</a>にオープンソースドキュメンテーションとして記載されているのでわからなかった単語やキーワードをレポジトリ内検索して該当説明文を探してみることをおすすめします。</p><h4><strong>教材としてオススメの信頼できるソース</strong></h4><p>今でこそEthereumやBitcoinなど主要ブロックチェーンを解説した本などは出回っていますが、その中でもスケーラビリティソリューションに特化して説明している解説書などはまだ売っていないでしょう。そうするとネットで色々検索して情報収集していくしかないのですが、どの記事がソースとして信用できるか迷ってしまう人も少なくないかもしれません。その中でSgさんにオススメされた情報の信頼度も網羅性も高いPlasmaを勉強するためのソースとしては以下の3つが上げられます。</p><ul><li><a href="https://www.learnplasma.org/en/learn/">Learn Plasma</a> : Simple Transferのカテゴリで提案されてきたUTXOベースの主要モデル、Plasma MVP、Plasma Cash、Plasma Debit、Plasma Primeの4つを説明しているサイトです。</li><li><a href="https://ethresear.ch/c/plasma">Ethereum Research</a> : 紫色のPlasmaカテゴリに飛ぶと、’Plasma xx’とタイトルづけられた提案がたくさんポストしてあり、それぞれ提案したリサーチチームのコアメンバーによって解説されています。その中でも上述したPlasma World Mapが投稿されている<a href="https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333">この記事</a> はそれぞれの提案をカテゴライズし修正点が加わるごとにそれぞれの提案の進化の流れをまとめてくれているので参考にしながら読むとすごくわかりやすいと思います。</li><li><a href="https://www.youtube.com/channel/UCG2MeKuKDJRK4gFNk-dQuZQ">Plasma Implementers Call</a> : Ethereum FoundationのPlasmaのコアリサーチャー/技術者たちが不定期で開催しているオンラインコールミーティングを録画したシリーズです。</li></ul><h4>さいごに</h4><p>ここまでスタディガイドを書いてきましたが、私自身もまだまだ勉強途中なので何かいいソースや学習方法があればコメント欄に残してくれたら嬉しいです。また、自分のPlasmaへの理解力向上のため知識が0の時からいつも貴重なお時間を割き知識の共有・レビューをしてきてくださったCEL <a href="https://twitter.com/_sgtn">Shogoさん</a> 、<a href="https://twitter.com/syuhei176">Hiyaさん</a> 、<a href="https://twitter.com/yosu718">Yosukeさん</a>に感謝申し上げます。この記事内で残っているエラーは全て自分に起因するものです。</p><p>これからもPlasma伝道師として日英両方で、初心者向けの記事から細かい仕様にフォーカスした技術的な記事まで、色々なレベルの記事を発信していけたらいいなと思います。Plasma Chamberの最新アップデートにもご期待ください。Stay tuned!</p><p><a href="https://twitter.com/yuriks_official">Yuriko (@yuriks_official) | Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9d68a4d617f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/%E5%88%9D%E5%BF%83%E8%80%85%E5%90%91%E3%81%91%E3%83%97%E3%83%A9%E3%82%BA%E3%83%9E%E5%8B%89%E5%BC%B7%E6%B3%95%E3%81%BE%E3%81%A8%E3%82%81%E3%83%8E%E3%83%BC%E3%83%88%E3%83%BC-0%E3%81%8B%E3%82%893%E9%80%B1%E9%96%93%E3%81%A7%E5%AD%A6%E3%82%93%E3%81%A0%E3%81%93%E3%81%A8-f9d68a4d617f">初心者向けプラズマ勉強法まとめノートー 0から3週間で学んだこと</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to Basics on Plasma proposals]]></title>
            <link>https://medium.com/cryptoeconomics-lab/back-to-basics-on-plasma-proposals-1b67faa4647c?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b67faa4647c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 09:46:40 GMT</pubDate>
            <atom:updated>2019-02-06T01:48:43.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>What’s the most fundamental philosophy behind all the Plasma research proposals?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1aC6YqdBEsDAouPv" /></figure><h3><strong>Introduction — what to keep in mind on the long journey</strong></h3><p>If you are following a series of Plasma proposals posted online, there have been so many updates and modifications added on to preceding proposals. Although it is obviously astonishing that so many people around the world have been contributing to the research and joining the intense discussions going on online, for example, at <a href="https://ethresear.ch/">Ethresear.ch </a>(you can follow most of the modifications and updates of Plasma proposals here), some of the newbies might have felt that there are too many versions of proposals and seemed too difficult for the beginners to follow and differentiate them.</p><p>So here in this article, I will describe the most important, essential property of Plasma that all the new proposal of modification and security models are trying to stick with. Whenever learning new stuff and attempting to keep yourself updated, it is very crucial to focus on its fundamental first and always remember it when you gain new information. So, let’s review the “must-have” properties of Plasma, otherwise they wouldn’t be even regarded as a Plasma in this article together.</p><h3><strong>Definition of Plasma</strong></h3><p>First of all, how would you define Plasma in one simple sentence if you want to explain what it really tries to achieve? Here is my answer;</p><p>Plasma is <strong>an off-chain protocol that offloads complex transaction processes from the Ethereum chain to side chains in a highly secure way</strong> so that each user client application that uses Ethereum blockchain can reduce gas cost per transaction and increase the transaction throughput, <em>while keeping the security of assets on the application, most importantly</em>.</p><p><strong><em>Merkle hash</em></strong> on top of each <strong><em>Merkle tree </em></strong>(hierarchically arranged tree including transaction data)<em>, </em>which helps to compress the amount of transaction data, is used to verify that a transaction existed in a certain block. <strong>Block height</strong> identifies which block a certain transaction has been included in. Block height is significantly important information since it is required in the rootchain contract (exit/challenge) when transactions ‘<strong>exit</strong>’ as users request to withdraw their funds.</p><p>When transactions are exiting from the Plasma chain to the rootchain, the end user has to submit a UTXO’s Merkle proof to the rootchain, in order to prove that the exiting transactions actually existed.</p><p>The whole securing processes are structured in this way since they wanted to offload the transaction processes such as basic remittance, swapping, and multi signing as securely as possible by limiting the utilization of the rootchain as little as possible.</p><h3><strong>Security Model</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mDMXNb81mQZ5OYhM" /></figure><p>In order to let this offloading securely processed, however, not only the Block height, but also this certain condition is required for exits;</p><blockquote>a condition where NO ONE successfully challenged that the exiting transactions are invalid during a certain period of time</blockquote><p>This requirement is really what makes Plasma interesting. <strong>Users cannot successfully exit transactions only by proving that the transaction actually existed (</strong>by submitting existence proof),<strong> but also they have to show that they didn’t get called out by others that the transactions were incorrect.</strong></p><p>After you make sure that the transaction actually existed, you also have to ask yourself “With what kind of additional information would it make appropriate for users to claim that their withdrawals are valid?”</p><p>Well you can apply reverse thinking here;</p><p>“What kind of situation would operators want to avoid in order to claim that the withdraws are valid?”</p><p>You need this additional requirement because child chain transactions are managed in a pretty much centralized way where operators are able to act maliciously. More precisely, only operators could maliciously create invalid UTXO output without any input which in the end enables someone to receive money created from nothing.</p><p>Only under this condition where no one calls malicious operators out that they were trying to deploy fraudulent transaction history during the challenge period AT ALL, operators are allowed to withdraw their funds.</p><p>Next question is, how many consecutive days would be convincing enough to prove that you are a good actor if there is no successful challenge during the period? A week or a month? Including this question, how you design all the exit procedure especially a challenge process is extremely important, and hence all the intense discussions are going on amongst professional Plasma researchers on Etheresear.ch.</p><p>The reason why challenge period is arranged a week to guarantee the validity of transaction history for now is that 7 consecutive days are assumed to be a sufficient set amount of time for individuals to discover fraudulent exits and submit a challenge. In reality, users who have the potential to be economically harmed by those fraudulent exits should be able to automatically challenge if the background setting of the application is active, considering the user experience. Say, Plasma chain used for a remittance app, we just assume that it would not be too bad for users to be required to access to the app at least once a week. As another security model idea suggested, it is also possible to let users who want to withdraw their funds as soon as possible pay a commission fee to someone who can wait longer term for their withdrawal, and thus the urgent withdrawal will come with the money subtracted by the fee.</p><h3><strong>Exit/challenge game modeled by each proposal</strong></h3><p>Under each section below, I will go over each proposal and check their ‘<strong>challenge completeness;</strong>’ the coverage of transaction type it can detect to challenge with its security model (in other words, how likely they don’t miss any fraudulent exit) as well as the validation system for transaction histories as a whole.</p><h4><strong>Plasma MVP</strong></h4><p>As I mentioned in the previous article, Plasma MVP was the first Plasma proposal suggested as a UTXO model.</p><p>You can refer to the chart called ‘<strong>Plasma World Map</strong>’ below for the detailed classification of each proposal, how they evolved in what context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZzYKYur_oVSMw70l" /></figure><p>(image source:<a href="https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333"> https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333</a> )</p><p>With the MVP exit contract, it can automatically inspect whether or not an operator behaved maliciously, more specifically, check either he/she (operator can be a group of people, more accurately) has created a UTXO output from nothing by making sure that the amount of UTXO outputs is larger than input when the transaction exits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*STRlilwOP_FBtfof" /><figcaption>Ordinary UTXO: multiple inputs are spreading out from one transaction, looking like leaves on a branch</figcaption></figure><p>(image source: <a href="https://bitcoin.org/en/)">https://bitcoin.org/en/)</a></p><p>UTXO outputs should be larger than inputs as you cannot buy something that costs (as an output) more than the amount of money you have in your wallet (as an input). However, challengers have to check all the transactions with UTXO inputs and outputs spreading like leaves (of outputs and inputs) on branches (transaction histories) and make sure alchemy (creating money from nothing like magic) transaction has not happened among the accounts that the operator is taking care of. Since the contract can’t automatically suspect those, client parties with a full node in the network have to check all the transaction histories backward with UTXO inputs and outputs spreading infinitely. Consequently, the solution to the high inspection cost was considered that it would be efficient to ask for help to a trusted watchtower to examine them on behalf of you.</p><p>Where there are numerous types of transactions that you have to inspect and challenge, (in other words, without a “challenge completeness,” which I’ll explain under Plasma Cash section) the only way to prevent a fraudulent transaction from exiting was ‘<strong>Mass Exit</strong>.’ This is the worst-case scenario since all the application users have to exit at the same time, which is very time and money consuming. Also, clients can’t exit when they are being lazy on inspection and miss the timing to leave; right after some invalid transactions are created. Since all the transaction after the invalid transactions included in the block will be regarded as invalid as well, they have to exit the childchain as soon as possible. In Plasma Cash, which I’ll explain in the next section, this problem of burdensome data checking process and inefficient exit game get much better somehow as all the transaction histories get laid on one line assigned a unique coin ID, hence invalid transaction history becomes much easier to be challenged.</p><p>Please refer to the original proposal posted on Ethresear.ch for more details: <a href="https://ethresear.ch/t/minimal-viable-plasma/426">https://ethresear.ch/t/minimal-viable-plasma/426</a></p><h4><strong>Plasma Cash</strong></h4><p>Plasma Cash’s security model is quite different from that of Plasma MVP. TxInput and TxOutput on a transaction get paired and corresponds to each other in each transaction since a unique serial number is assigned to indivisible coins that were spent in transactions.</p><p>Hence, the inspection of the transaction validation will be much simpler and less time-consuming. There are only 3 patterns of invalid exit;</p><p><strong>1. Exit Spent Coin Challenge</strong></p><p><strong>2. Exit Double Spend Challenge</strong></p><p><strong>3. Exit with Invalid History Challenge</strong></p><p>(source:<a href="https://karl.tech/plasma-cash-simple-spec/"> https://karl.tech/plasma-cash-simple-spec/</a>)</p><p>I personally title them (in a more explanatory way)</p><p><strong>1.</strong> <strong>Spent/challenge[By]After[TxProof]</strong></p><p>Exiting coin is later spent by other transaction and ownership of the coin is already moved to another person. Therefore, it can be challenged a transaction that occurred after the exiting invalid transaction.</p><p><strong>2.</strong> <strong>Double Spend/challenge[By]Between[TxProof]</strong></p><p>Exiting coin is double spent. Therefore, it can be challenged by a valid child transaction between the parent transaction and the exiting invalid transaction.</p><p><strong>3.</strong> <strong>Invalid History/challenge[By]Before[TxProof]</strong></p><p>Exiting coin has an invalid history. Therefore, it can be challenged by the last valid transaction which occurred before the invalid transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuyHv18M-d384zD38-Y-ZA.jpeg" /></figure><p>Since any invalid transactions can be categorized into those 3 patterns, if there anything goes wrong, then it easily gets recognized and challenged; this condition is particularly called “<strong>challenge completeness</strong>.” This is one of the very fundamental requirements of Plasma, that has to be fulfilled by any kind of proposals no matter how amazing functions and modifications are newly added. With the “challenge completeness,” it should be perfectly safe to deposit a huge amount — even billion of money anytime you want. No joking.</p><p>This architecture focused very much on its secureness but the benefit of it isn’t just that. Eliminating the need for watchtower to monitor all of the transaction histories like in Plasma MVP, clients just have to keep an eye on the transaction that can economically impact them; much less inspection cost and extra scaling are expected by the implementation.</p><p>Please refer to the original proposal posted on Ethresear.ch for more details: <a href="https://ethresear.ch/t/plasma-cash-plasma-with-much-less-per-user-data-checking/1298">https://ethresear.ch/t/plasma-cash-plasma-with-much-less-per-user-data-checking/1298</a></p><h4><strong>Plasma Cashflow</strong></h4><p>Adding some modification to a basic and thus the most secure model ‘Plasma Cash,’ Plasma Cashflow introduced two new attributes, “<strong>swapping</strong>” property, which increases the interoperability of different coins on the same Plasma chain, as well as “<strong>range</strong>” property, which enables all the unique coins fungible. Implementing the atomic swap feature, the security model of Plasma Cashflow had to require another special exit-game called ‘<strong>Force Include</strong>.’ From this alteration, you can clearly see that adding more features, which makes user experience better somehow, means that you need to add some more inspection process and think of a new exit/challenge procedure to secure the exit contract.</p><p>Please refer to the original proposal for more details: <a href="https://hackmd.io/DgzmJIRjSzCYvl4lUjZXNQ?view">https://hackmd.io/DgzmJIRjSzCYvl4lUjZXNQ?view</a></p><h4><strong>Plasma Prime</strong></h4><p>Based on the Plasma Cash security model, Plasma Prime added a concept of light client’s storage scalability. <a href="https://github.com/cryptoeconomicslab">Cryptoeconomics Lab</a>, the author of this article is working at as a researcher and writer, is currently building a 2nd layer security protocol called Plasma Chamber, implementing some of the attributes that Plasma Prime proposed. The detailed implementation of Plasma Prime is more complex, so I will describe it in my future blog posts. Building on the flexible UTXO model, the implementation will enable complex transactions by smart contracts, while guaranteeing the 1st layer security even on depositors’ assets on the 2nd layer. For instance, decentralized exchanges and multi-signatures would be able to be implemented while using those flexible, very adaptable contracts. (The detail of this implementation can be referred to on these slides; <a href="https://speakerdeck.com/shogochiai/stateful-txo-is-the-new-contract">https://speakerdeck.com/shogochiai/stateful-txo-is-the-new-contract</a>)</p><p>While having much flexibility on the contracts’ expression, however, it is far more important to think how you can guarantee the 1st layer security, again.</p><p>Please refer to the original proposal for more details:</p><ul><li><a href="https://ethresear.ch/t/plasma-prime-spec/4181/2">https://ethresear.ch/t/plasma-prime-spec/4181/2</a></li><li><a href="https://ethresear.ch/t/plasma-prime-design-proposal/4222">https://ethresear.ch/t/plasma-prime-design-proposal/4222</a></li></ul><h3><strong>Must-haves of Plasma</strong></h3><p>As I mentioned above, even when you get excited for new features proposed, you also have to make sure that the new architecture has an ability to guarantee the</p><p>- Proof that the transactions exist (eg. Block height)</p><p>- Validation of the transaction histories with challenge Completeness</p><p>Those are the “<strong>must-haves</strong>” of any Plasma security model, no matter how impressive new modifications are.</p><p>While going over those must-haves of Plasma in this article, you can probably see how our new solutions Fast Finality and Commit Aggregations, which lower the transaction inspection cost (there are some detailed explanations on them on Learn Plasma and Etheresear.ch) guaranteed must-haves in the implementation.</p><p>Although this back-to-basics article sounds very basic to experts, it is highly important to make it sure with everyone especially new learners in that it might help to redefine “what really Plasma is” while following all the fresh proposals thrown on Ethresear.ch. Even all the genius Plasma implementers seem to have been struggling to share the solid definition of it in common. Therefore, by defining what the core mentality of Plasma so far, I hope it would enable each of us to distinguish whether the model is well designed much easier.</p><h3><strong>Conclusion</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4DulrMCLKRN7UJUn" /></figure><p>The goal of this article was to remind what the core feature of every Plasma proposal is in common; <strong>how they secure users’ funds</strong>. Whenever you are learning new stuff, it is important to stick with the fundamental philosophy you learned first as you move forward. This lesson is even applicable to from playing tennis to leaning Plasma; learning new techniques doesn’t mean you can forget the basic forms!</p><p>My understanding is of course not on the 100 % level yet, so please leave any comments/suggestions in my articles as I keep going forward on my long Plasma journey. I will be writing more of the articles focusing on the technological details I left out in this article in the future. Hope this Back-to-Basic article can save you a little time and let you jump into the philosophy of Plasma as you start learning it. Last but not least, I would like to give special thanks to <a href="https://twitter.com/_sgtn">Shogo Ochiai</a>, <a href="https://twitter.com/syuhei176">Syuhei Hiya</a> for always sharing their invaluable time and insights with me to improve my understanding of the technology. All remaining errors are my own.</p><p><a href="https://twitter.com/yuriks_official">Yuriko (@yuriks_official) | Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b67faa4647c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/back-to-basics-on-plasma-proposals-1b67faa4647c">Back to Basics on Plasma proposals</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I started learning Plasma and What I’ve got within 3 weeks]]></title>
            <link>https://medium.com/cryptoeconomics-lab/how-i-started-learning-plasma-and-what-ive-got-within-3-weeks-cf3db8cf619a?source=rss----3df45712993b---4</link>
            <guid isPermaLink="false">https://medium.com/p/cf3db8cf619a</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[plasma]]></category>
            <dc:creator><![CDATA[Yuriko Nishijima]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 13:42:31 GMT</pubDate>
            <atom:updated>2019-02-07T06:26:17.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I started studying Plasma and What I’ve got within 3 weeks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7u0ruDgIXFU6Aj1mID4oQ.jpeg" /></figure><h4>Scalability Issues at First Glance</h4><p>Blockchain’s scalability and a whole bunch of solutions to the problem — one of the most fundamental aspects that you should focus on to learn in the space, yet doesn’t seem like very approachable for newbies to catch up all of them. That was what I have been seeing all the scaling solutions as.</p><p>When I first got to know about blockchain technology (more specifically Ethereum blockchain), I was really fascinated by all the decentralized applications and their philosophy behind it, dreaming of the Web3.0 created by Ethereum. Even though I knew that scalability is one of the most important criteria to consider while running a project (for now, I’ll skip explaining it but you can see where the issue comes from and the significance of it referring to an article <a href="https://hackernoon.com/blockchains-dont-scale-not-today-at-least-but-there-s-hope-2cb43946551a">here</a>), I have been distancing myself from the topic because it seemed too difficult for someone who was just looking at application layers to comprehend fully.</p><h4>Got advised by pro researchers</h4><p>Ever since I started reading online resources on Plasma on my own, however, professional Plasma researchers around me from <a href="https://www.cryptoeconomicslab.com/"><strong>Cryptoeconomics Lab</strong></a><strong> </strong>proposed me a very approachable way for complete beginners to start learning Plasma from the very scratch. They provided me with a whole bunch of article references with the right order to read them. They know the topic comprehensively even from a beginner’s point of view since they’re currently working on to implement an off-chain transaction verification protocol called ‘Plasma Chamber’ in order to guide any engineers towards effortless development of their own Dapp on top of Plasma. The source code of their ongoing development can be found via their <a href="https://github.com/cryptoeconomicslab">Github page</a>.</p><p>I’d like to share their thorough guide here with all the blockchain intermediates who know much about application layers, yet want to gain a deep dive of the technology leaning more of what is going on with the protocol layers. So let’s get it started!</p><h4>Study Guide Framework on Plasma</h4><p>First, you gotta know the whole structure of Plasma and which part the article is talking about. There are a variety of specific topics that authors are focusing on to discuss in the article, but essentially you can classify them into several categories so let’s decompose the whole system into 3 parts as follows;</p><p><strong>1. Ethereum as rootchain -&gt; UTXO-based childchain with Merkle Tree</strong></p><p>Important point: you can reduce a gas cost by putting all the transactions in a Merkle Tree without verifying them and only submitting Merkle Hash of it onto the root chain (Ethereum chain). The Merkle hash must be submitted to the rootchain after every single block is generated so that UTXO on the childchain (your partial balance) belongs to a certain block height.</p><p><strong>2. Merkle Tree -&gt; Exit Procedure</strong></p><p>Important point: since you only have to verify each transaction when you exit from the childchain (thus you can reduce the gas cost!), incorrect transaction information can be published by childchain PoA single group of operators unless you can inspect those transactions in an efficient way. There have been numerous studies discussing how to reduce its inspection cost.</p><p><strong>3. Exit Procedure -&gt; Usability/User Experience; Aiming for the adoption of Plasma (as its final goal!)</strong></p><p>Important point: Considering the exit procedure, how long of challenge period would it be necessary to prepare?</p><p>In addition to acquiring the whole picture and understanding each category within it, you should also know that drawing will really help you to visualize how the whole system works clearly while reading articles. Trust me, it is surely better than just imagining the intricate system inside your head, it will prevent yourself from being lost on the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*60aXdpDNqgRDe8Ub" /><figcaption>my handwritten notes while struggling to gain the full understanding</figcaption></figure><h4>Useful Study Tools</h4><p>Second, you should keep in your mind that there are many different types of approaches that Plasma research projects are employing; there is a classification diagram that lists all different kinds of Plasma proposals that are currently under research. It categorizes each of them along with branches illustrating how they evolved from previous proposals’ pros and cons and for what specific purpose each modification is added for. You can refer to this article for more information here; <a href="https://medium.com/onther-tech/plasma-world-map-ba8810276bf2"><strong>Plasma World Map</strong></a></p><p>It is a good starting point to know the two major categories of numerous studies; Simple Transfer and General States &amp; Computation as this article stresses.</p><p>You should also note that every project is ever growing, hence the map might not be perfectly reflecting the current status of each project, but it will definitely help you understand how each has evolved from which previous solution’s weak points (cons) and mitigation towards it in the next-proposed solutions.</p><p>Third, you should have a ‘dictionary’ that you can always look up a term that you didn’t know in a credible source; ‘<a href="https://github.com/ethereumbook/ethereumbook"><strong>Mastering Ethereum</strong></a>’</p><h4>Credible Sources</h4><p>Now you are done with getting everything ready before starting studying Plasma. Here are the all credible sources you should use to study plasma</p><ul><li><strong>Learn Plasma</strong>: it will allow you to learn 4 major UTXO-based solutions, Plasma MVP, Plasma Cash, Plasma Debit, and Plasma Prime, in pursuit of simple transfer. <a href="https://www.learnplasma.org/en/learn/">https://www.learnplasma.org/en/learn/</a></li><li><strong>Ethereum Research</strong>: Under the ‘Plasma’ category, there are a whole bunch of proposed Plasma schemes titled like ‘Plasma xx’ edited by the core members of its researching teams.<a href="https://ethresear.ch/c/plasma"> https://ethresear.ch/c/plasma</a></li><li>A series of videos by Ethererum Foundation’s core developers, ‘<strong>Plasma Implementers Call</strong>’ on Plasma Youtube Channel. <a href="https://www.youtube.com/channel/UCG2MeKuKDJRK4gFNk-dQuZQ">https://www.youtube.com/channel/UCG2MeKuKDJRK4gFNk-dQuZQ</a></li></ul><p>I’m still on a long journey to the full understanding of Plasma myself, so please leave any comment on if you have any suggestions/ better idea on how to keep learning. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf3db8cf619a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptoeconomics-lab/how-i-started-learning-plasma-and-what-ive-got-within-3-weeks-cf3db8cf619a">How I started learning Plasma and What I’ve got within 3 weeks</a> was originally published in <a href="https://medium.com/cryptoeconomics-lab">Cryptoeconomics Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>