Astar 백서

Astar

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 3쪽 중 1쪽

Plasm Network Version1.0 Takumi Yamashita ​ takumi@stake.co.jp Sota Watanabe ​ sota@stake.co.jp Kim Hoon ​ hoon@stake.co.jp March 15, 2020 Reminder: This is the second draft. We will polish this draft to make it understandable and professional. Abstract Plasm Network’s mission is to provide a scalable and decentralized application development platform that defines and realizes the new form of the web: Web3.0. This paper discusses the purpose of Plasm Network, the technical background information that is necessary to understand the blockchain industry, the reason this industry is important, and lastly what Plasm Network will bring to the table. Furthermore, this paper will discuss the Plasm Network’s core product specifications. 1 Introduction We aim to realize Web3.0 via blockchain technology. The traditional social structure allows people with authority to monopolize information and history has proven that these people will bend the rules to their benefit [1]. Even if people claim that their system is fair it still lacks transparency proving that everything is still conceived upon ​ a pillar of sand called trust ​ . In contrast to this, blockchain provides a system with decentralized governance that does not require a single group or organization to manage everything; e ff ectively removing a single point of failure and making a transparent and trustless system. This is possible because blockchain is a system that allows anyone to view, prove, and host with a highly fault-tolerant consensus mechanism [2]. For end-users to fully utilize the strengths of the blockchain protocol, there must be an application that provides an interface to them. Applications that work on top of blockchains are referred to as Decentralized Applications (Dapps). Currently, there are countless Dapps developed in the form of smart contracts and chain codes that are deployed on a blockchain, providing utility for various people. However, due to the decentralized nature of Dapps the processing speed is far from fast. At the time of this writing, the second-biggest blockchain is Ethereum [3], and Ethereum has a transaction throughput of 15 transactions per second [4]. In contrast to this, VISA or Alipay can process around 1,700 transactions [5] and 256,000 transactions respectively [6]. It is true that the transaction speed for Dapps is very slow for users to utilize this technology to its full potential, so to solve this issue there have been several blockchain scalability solutions being proposed. These are some of the well-known blockchain scalability solutions. 1. SegWit: Fixing transaction malleability by removing the signature information and storing it outside of the base transaction block [7]. 2. State channel: Combining o ff -chain transactions among particular users and only the final state is committed to the main blockchain[8]. 3. Sharding: Allowing many more transactions to be processed in parallel at the same time by making shards[9]. 4. Plasma : Storing transactions in separate child chains and only the root hash is stored in the main chain[10]. Henceforth, we want to place emphasis on processing transactions outside of the main chain which is called the Layer 2 solution, Layer 1 refers to public blockchains like Ethereum or Bitcoin. In recent years, this layer is su ff ering from increased transaction capacity making the blockchain "full" [11]. So From this, we can predict that in about a decade blockchain will have a di ff erent usage where Layer 1 will be used as the trust layer while Layer 2 will be the transaction layer. Among all layer2 solutions, the reason we focus on Plasma is that it is a scaling solution that is the least dependent on the processing performance of the main chain. In Plasma, an operator manages its side-chain without sacrificing decentralization. This implies that many transactions can be handled in a centralized way that does not require a consensus process but all participants on the side chain can safely exit by submitting fraud proofs. The scaling solutions used in the existing centralized system can be used as they already are. Hence making it possible to achieve high processing performance that is not feasible with a native distributed ledger. Plasma would be recognized as an indispensable technology in the future because it can dramatically improve processing performance for all distributed ledgers. However, Plasma has several drawbacks. Firstly, there is a limitation on what can be done with Plasma Applications (Plapps). All the things that Plasma can do are described with The first-order predicate logic as "Predicate"[12]. Second, it is more di ffi cult to make a Plapps compared to making a traditional DApps because writing and deploying smart contracts are not enough to make a Plapps. Plasma is the complicated technical stack that consists of several components [13]. Precisely, Plasma application consists of 4 components, a smart contract on a parent chain, a child chain, an operator, and a user. We address these two problems via the "Plasm Network". This provides a set of standard libraries that enable us to write a "Predicate". Adding to this, we provide cloud services to deploy and manage the Plasma components. We will discuss this in detail in the later section. With these tools, Plasm Network developers can build their applications with ease. We use the Optimistic Virtual Machine[13] which was invented by the Plasma Group from the Ethereum Foundation. OVM is the virtual machine designed to support all layer2 protocols. It is a possible unification of all layer2 scalability constructions. This means that Plasm Network will not only be for Plasma applications but also for State Channel applications or any other layer2 protocols such as Optimistic Rollup and ZK Rollup. Our aim is to be a platform that houses all layer2 scaling solutions so users can choose which solution to use and make their use case possible with minimal overhead. We are planning to build these systems around Polkadot[15]. Polkadot is a heterogeneous multi-chain framework that empowers blockchain networks to work together under the protection of shared security. In addition, there is a framework to create blockchains called Substrate[16]. Currently, Polkadot itself and parachains are created with Substrate. Hopefully, In the future, we think blockchains will be paralleled simply because there is no single perfect blockchain which supports all governance models and customer’s needs by itself. Hence there are more than 900 public blockchains have been built and more and more blockchains are being created. Polkadot and Substrate empower this movement of creating the perfect custom blockchain based on the user’s need. We believe that Layer2 is one of the most promising domains on Polkadot as Dr. Gavin, the co-founder of Ethereum and creator of Solidity Language, showed interest in this during the Subzero Summit[17]. We aim to implement this Layer2 solution for Polkadot and Substrate. 2 Plasm Network Plasm Network is a Substrate blockchain project that provides the methods for developing scalable Dapps. The general architecture can be visible from the following figure1. Plasm Network is a Layer1 permissionless public blockchain where everyone can join since it is built with the Substrate framework. Plasm Network is capable of becoming a Polkadot Parachain and it is expected to be the first scalable Parachain in the Polkadot ecosystem. Plasm Network consists of the Plasm main chain and multiple Plasm child chains. In general Plasm Network is the default root chain for developers to connect their applications. Plasm Network provides various modules that allow the developers to utilize Layer2 solutions with ease such as the Optimistic Virtual Machine (OVM) module and DApps Staking module. In addition, it has an innovative token issuance mechanism. The issue with the traditional DApp platform is that despite the fact that creators of applications are contributing to the ecosystem, they have to pay the price for doing so in the form of Gas. To solve this issue we divide the block reward to two. 50% of the block rewards on the Plasm root chain are distributed to DApps developers who increase the value of the network and the other 50% of rewards are distributed to the validators of the block. By doing this, half of the block rewards can act as a basic income for DApp developers, which not only incentivizes the validators but also incentivizes the developers for the platform. Figure1:Plasm Network architecture. In addition to implementing Layer2 solutions that are not possible in Plasma we have the Plasma as a Service for supporting Dapp developers. Plasma as a Service is a form of Platform as a Service that allows developers to easily deploy Plasma applications. It is capable of allowing developers to choose a parent chain that they want to deploy their application to and deploy a custom child chain onto it. This is fully managed via an intuitive GUI that does not require the developers to go through the pain of learning everything from scratch. We plan on implementing this via the Plasma Rust Frameworks [18] provided by Cryptoecnomics Lab[19]. 3 Plasma Plasma is one of the blockchain scalability solutions. The basic idea of Plasma is to delegate the Merkle Tree outside of the chain so it can process the transaction at a fast speed and only record the resulting Merkle Root in the chain. In Plasma the person who is responsible for performing the o ff -chain processing and submitting the hash to the blockchain is called an Aggregator. Figure 2: Plasma state. The "Plasma" that is supported in Plasm Network is based on Plasma-Cash. Instead of handling the transaction from the leaf of a Merkel Tree, we allow the tree to have a state of a single non-fungible token (NFT) on its own. The rule for transitioning the state is defined by the OVM which will be described in detail in the next section. Figure1 shows an example of the NFT state transition that has ownership of a state and the required Transaction. In the figure3 case, in order to make a state transition, (1.) It must be signed by "Owner" (2.) A new state must be specified for output and (3.) A state must not have already been transitioned in another way, this is described using OVM. The logic described here is called "Predicate". It is described in first-order logic. When OVM receives the accepted Transaction, it changes the state and updates the Merkle route. Figure 3: Plasma state transition. In Plasma, a single Aggregator handles these transactions and submits the Merkle route. If the Aggregator cheats, the transaction submitted by the user may be falsified. Plasma can dispute the correctness of transactions and states on the main chain using OVM and Predicate described above for such tampering. This allows Plasma to combine both the fast transaction processing power by a single Aggregator and the strong security of the blockchain. 4 OVM The OVM(Optimistic Virtual Machine) is a set of standards that streamlines and unifies di ff er-ent Layer2 protocols. We can express complex dispute logics via a single OVM language, and that language consists of Optimistic Game Semantics[13]. For example, we can express Plasma checkpoint and exit claims with 2 simple definitions (we call these "property") by OGS. Plasm Network divides the OVM from the smart contract and uses smart contract function as a module so that OVM can be used more simply and conveniently. The OVM and its surrounding architecture are as shown in the figure4. Figure4: OVM modules Plasma applications (Plapps) can be created and executed via the dedicated client application called L1 adapter. On the other hand, Ethereum’s Plasma implementation consists of multiple modules that are managed by a set of smart contracts. However, this method makes it di ffi cult to predict the gas price for a plasma application as these contracts contain several layers of logic that work behind the scene. Furthermore, having multiple smart contracts working in the back makes the implementation process more confusing for developers. In contrast to this, our OVM implementation on Substrate will work di ff erently. Instead of using multiple contracts working interdependently, we abstract these inner workings into three major modules: the OVM module, the Plasma module, and the Contract module. The OVM module has a function called Universal Adjudication. Users can cause a dispute when they find a malicious attack on the layer1 blockchain. The Plasma module supports a set of smart contracts that are necessary to make a Plasma structure. Lastly, the Contract module manages the implementation of application-specific logic and functions. The Plasm Network uses the aforementioned modules as building blocks for allowing developers to create applications implementing Plasma L2. 5 Lockdrop Lockdrop[21] is a new low-risk economic incentivization mechanism, where it uses opportunity costs rather than legal tender (or assets) as collateral. Plasm Network uses this mechanism to issue tokens with monetary value. Throughout this section, we will explain Plasm Network’s token issuance mechanism. The concept of a lockdrop was first conceived by Edgeware[22], and the one used for Plasm Network is an expansion of its original mechanism. The native token used in the Plasm Network is written PLM and pronounced as "plum". PLM will only calculate from the 15th decimal place and truncate any numbers below that. For more information regarding the role of the Token, please refer to the PLM Token Economics section14. 5.1 Lockdrop overview For our first lockdrop, we will be using Ethereum’s opportunity cost. Therefore, further sections will make the assumption that the locked token is ETH. However, lockdrop itself is an algorithm that can be implemented to any chains that support TimeLock and is not limited to Ethereum. Figure5 shows an example of how the lockdrop will work on the Plasm Network. Figure 5: Lockdrop overview A lockdrop will work by the following process. 1. Ethereum token holders will send the number ETH locking, and the duration of the lock as a transaction to the LockContract that resides within the Ethereum blockchain. 2. For every token holder who participated in the lockdrop, the number of PLM calculated by total locked ETH ​ × Lock bonus per duration ​ ×α will be recorded on the Plasm Network genesis block. 3. The Plasm Team will take the total issued amount of ​ × ​ 15% PlasmTokens from the genesis block. 4. Once the lock duration that the token holder specified has passed, the exact number lock ETH will be returned back to the participant after the lockdrop. Our assumption is that the Ethereum token holder’s opportunity cost is proportional to the number of tokens locked and the duration of the lock. PlasmToken is able to generate value by using those opportunity costs as collateral. Furthermore, the final token supply is not decided. This is to ensure fairness to tokens issued from post-genesis lockdrops. 15% of the total tokens circulating from the lockdrop will go to the Plasm team as part of the development fee. To elaborate, the tokens will be distributed multiple times via the following method. 6 Multi Lockdrop Multi-Lockdrop is a mechanism in which we repeat the aforementioned lockdrop multiple times. Plasm Network will do this in a total of 3 times. Because of this, Plasm Network’s total token supply will not be made concrete at genesis. Tokens will be issued every 3rd lockdrop, and additional tokens will be used via utilizing the "Staking" function, which will be later explained in detail. There are two main reasons why we have decided to divide the lockdrop into multiple times. First, is to prevent uneven token distribution, as if the number of early bird participants was low, it is possible that there might be someone who holds the majority of the total supply. Furthermore, if we commence a rollback to the previous block state to fix this issue, the integrity of the network itself may be damaged. In a blockchain, it is important to establish a rule before the launch, we must avoid any situation in which we go against the predefined rules. To solve this problem, we have developed an algorithm that does not define the total token supply at genesis. The second reason is to create room for experiments so that the team can ensure that the Plasm Network can scale and be decentralized without any hiccups. The strong security and integrity of a blockchain rely on the distribution of nodes and token holders. With this, repeating the lockdrop three times allows us to understand the distribution of tokens amongst the holders beforehand, which also leads to reducing maintenance costs for fixing these issues and preventing any risks that are followed by such a fix. This aligns with our goal of making Plasm Network a complete public blockchain. Furthermore, Plasm Network will accept the following tokens for the 1st, 2nd, and 3rd lockdrop. • 1st: ETH • 2nd: ETH, BTC • 3rd: ETH, BTC • Polkadot parachain auction: DOT(Note: That’s special lockdrop. The details are section8.) 6.1 Definitions We define the amount of distributed PLM ( ​ T total PLM ​ genesis ​ ) from the first lockdrop to be as the following. TotalP PLM ​ genesis ​ ​ = 500 ​ , ​ 000 ​ , ​ 000 The total amount will be distributed to the lockdrop participants in accordance with the token issue rate (IssueRatio). The IssueRatio is proportional to the number of locked tokens, the exchange rate in dollars ( ​ DollarRate ​ token ​ ) of the locked tokens at the time of the lockdrop and the number of days multiplied by 1.0005 to the power of days ( ​ Days ​ × 1 ​ . ​ 0005 ​ Days ​ ). The value of 1.0005 is based on Polkadot’s interest rate. To elaborate, by default, Polkadot defines its maximum average annual interest rate to be 20% [23]. Converting this into daily interest rates with compound interest gives us an approximate value of 0.05%. The users have the option to choose the lockdrop duration from the following 4 + 1 options table6.1. The ​ IssueRatio will be determined by the duration of the lock which comes directly after evaluating the value of the locked tokens in Dollars. Locked days LockBonus 30th × ​ 24 100th days × ​ 100 300th days × ​ 360 1000th days × ​ 1600 About 2 years( ​ ※ ​ DOT only lockdrop) × ​ 2000 Table 1: Lockdrop bonus table. ※ ​ The 2 years option is only available for locking DOT tokens. Furthermore, the DOT lockdrops are special in that they are only allowed to lock for 2 years. More information can be found from the Polkadot auctions Lockdrop section8. Based on the aforementioned information, the IssueRatio will be defined as the following. • Locked ​ token ​ ​ is the number of locked tokens for the lockdrop • DolalrRate ​ token ​ ​ is the value for 1 token in Dollars • LockBonus ​ days ​ ​ is the amount of bonus the user will receive according to the locked days IssueRatio ​ = ​ Locked ​ token ​ × DollarRate ​ token ​ × LockBonus ​ days ​ ( ​ token ​ ∈ ​ {ET H, BT C, DOT } ​ ) The distributed tokens will be determined based on the IssueRatio. The algorithm for this will be like the following. • Let ​ n ​ be the number of lockdrop participants (users) • Let ​ IssueRatio ​ i ​ be the ​ IssueRatio ​ for user ​ i • Let ​ P LM ​ i be the number of PLM user ​ i will receive Considering that the Plasm development team will get 15% (17/20) of the total issued tokens, the receiving number of tokens will be like the following. In other words, PLM will be distributed by the ratio of your ​ IssueRatio ​ to the total ​ IssueRatio ​ . At this time, 75,000,000 PLM, which is 3/20 as development cost, will be used. Here, we
프로젝트로 돌아가기