Bifrost 백서

Bifrost

원문

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

sed on the Linker description, which is generated during the DApp splitting process. • Container-wise Linker: It controls DApp-wise Linkers on a Container. It works to create (replicate) and eliminate DApp-wise Linkers. The Container-wise Linker also manages the native coin balance, which is required to execute the component when DApp-wise Linkers relay cross-function calls from the components. Figure 6 shows the internal state for Linkers and DApp components. A DApp component maintains the variables and native coin balance. Linkers do not maintain the variables for DApps but they keep track of the change ofBFC. By spending the native coin balance, the DApp-wise Linker executes the smart contract. 4.3 Relaying state of cross variables To have a consistent state on a cross variable between the components,Bifrostsynchronizes the updates or transforms the access to the variable as cross-function calls. Both approaches require 17 the stub code addition in the Recipe splitting process and the intervention of the DApp-wise Linkers. In the first approach, during the deployment phase,Bifrost puts an identical cross variable in both components and replaces the definition (assignment) statement with a setter-function call. The setter function marks that the cross variable is in the transient state and notifies the DApp-wise Linker of the update. The DApp-wise Linker then relays the update by calling the setter function in the other component. In the second approach,Bifrost locates the cross variable in a component side and replaces all the access to the variable in the other component with the getter and setter functions. This option reduces the process of a state update to that of cross-function call. Thus, it is more advantageous when a cross variable is mainly used in a component only. 4.4 Linker availability A DApp-wise Linker interacts with its components through an account in each blockchain. How- ever, the task of the DApp-wise Linker is executed on Containers. InBifrost, multiple Con- tainers can form a federation blockchain networks that are physically or logically separated. Whenever a Container is created, it replicates all the information including the Linker descrip- tion from an existing Container. Thus, the availability of Linkers is provided by the parallel, redundant operation of Bifrost Containers, which is multiplexed via a shared account in the blockchain. 4.5 Relaying cross-function calls The DApp-wise Linker delivers a call from a component to the cross function in the other compo- nent. In the Recipe splitting process,Bifrost replaces the cross-function call with a stub code that notifies the Linker of the call requests. If the blockchain system supports an event system, such as Ethereum, the DApp-wise Linker can be notified of the call request by subscribing to an event. Otherwise, it monitors the transactions for the address of the component in order to catch the call request. Figure 7 shows an example of the interoperation of states and actions. The DApp-wise Linker can relay the intra-DApp cross-function call between components. To handle an inter-DApp call, where an external smart contract calls the cross function,Bifrost also adds a dummy function having the same function signature as the cross function. The dummy function also notifies the Linker of the call request. DApp developers need to assume that the cross function can be asynchronously executed in Bifrost. Thus, the Recipe program supports callback handlers on the results of cross-function calls. 18 #MPDLDIBJO# #MPDLDIBJO" $POUBJOFSXJTF -JOLFS DApp- wise Linker C C’ B C’ B DApp- wise Linker Action getter/setter Local Var. Cross Var. Action getter/setter Cross Var. Action (virtual) #'$DPOWFSTJPO #'$ USBOTGFS $SPTTWBSJBCMF BDDFTT *OUFS%"QQ DBMM *OUSB%"QQ DBMM Figure 7: Interoperation of states and actions via DApp-wise Linkers 4.6 Relaying coins As a platform-wide coin, BFC can be used everywhere on Bifrost. However, it should be converted into a suitable form to be used in DApps. When transferring an asset to an external system, several methods for atomic swap are used (e.g., proof of burn, multi-locks).Bifrost also moves BFC among blockchains. However, the conversion ofBifrost is a simpler case: the Container operator-backed DApp-wise Linker automatically converts all the receivedBFC into the native coin, and transfers it to the predefined address of the component. Thus, via a hashed timelock contract with the Linker,BFC can be securely delivered. Note that the component and the Linker of a DApp have separated balances. The balance of the component is controlled by the DApp. The balance of the Linker is used only for conversion or payment for transactions (or gas). 4.7 Linker description The Linker description is automatically generated in the Recipe splitting process. A Linker description contains the signatures of cross variables and cross functions. It also holds the handler functions for finalized cross variables and functions. In particular, to manage different finality types between blockchains, the condition for the finalized result is also appended. For example, for the component in the PoW-based blockchain, this condition tells how many confirmations 19 should be obtained before the result is finalized. 5 Container 5.1 Multiple Containers for service availability In Bifrost, we consider the following conditions for building the multiple blockchain systems: • To ensure the fundamental security and availability of the private blockchain network, the configuration of multiple Nodes is required. • When multiple institutes participate in a blockchain network as a federation, the Nodes should be flexibly configurable to support the requirements of the federation. • The availability of the services provided byBifrost, such as Linkers, is as important as that of blockchain networks. We devise the Container structure based on the idea thatBifrost modules needs availability by redundancy. Thus, we bind a managed blockchain subsystem and the supporting modules of Bifrost into a Container as shown in Figure 3. TheBifrost Containers that forms the same private blockchain network perform the same tasks simultaneously. The Container manager controls the Containers to maintain a desirable availability and performance. 5.2 Container manager When Bifrostcreates a new Container to add more Nodes to a blockchain network or to initiate a new standalone network, the Container manager handles the process. By adjusting the network configuration of Containers, the Container manager can create a federation of Containers, while each Container itself is independent. A new standalone Container manager can also be set up for isolated blockchains. Creation by replication. When a Container is added to a federation network, the embedded blockchainsystemisautomaticallyreplicatedduetotheintrinsiccharacteristicsoftheblockchain. The Container manager additionally replicates theBifrost modules (e.g., Linker) to the newly created Container. More specifically, it copies the Linker descriptions and Linker account infor- mation from an existing Container to the new Container. 5.3 Container/Node operator An Operator is a service provider of a Container, and it provides theBifrost platform service to DApp providers/developers. SinceBifrost guarantees autonomy for each Container, a third- party Container can run a Container service in a standalone manner or in a federation. Thus, a Container operator can use different combinations of blockchains with its own pricing policy for DApps. 20 6 Bifrost Ecosystem 6.1 Bifrost ecosystem overview In order to increase and diversify the new DApp services on theBifrost platform, an ecosystem where participants work with one another is needed.Bifrost aims to construct a sustainable DApp ecosystem with decentralized governance among participants and a well-defined incentive system. The main participants ofBifrost can be defined as follows: • Bifrost Operator: Operates one or a federation of blockchains contained by one or more Containers on specific blockchains and provides services to the DApp Providers. • DApp Provider: Chooses aBifrost Operator and runs its own DApp The ecosystem goals ofBifrost are as follows: 1. Bifrost Operators ask reasonable operating fees of DApp Providers, who pay them for Bifrost Platform services. 2. Bifrost Operators provide agreed service plans to DApp Providers. 3. Bifrostfacilitates DApp Providers’ migration among Containers to ensure optimal service for DApps. Bifrost guides the Operators to develop and upgrade their services through competition. 4. As theBifrostecosystem matures, all the participants benefit from the economies of scale and system sustainability. To maintain theBifrost ecosystem, we designed a unified currency system,BFC. BFC can be used platform-wide, consideringBifrost’s nature of combining various blockchains.BFC is used for the transactions between DApp Providers and Operators and as an incentive tool for participants. 6.2 Mechanisms Since Bifrost Operators are paid fees by DApp Providers for providing services, they are re- sponsible for reliable system operation and fair charges. In addition, DApp Providers try to find better Operators who charge reasonable fees and provide high-quality services. In theBifrost ecosystem, all the participants with their own goals make a fair competitive market through information asymmetry usingBFC. Main process. Operators promote their service plans by highlighting their low fees and the strength of their Containers, and DApp Providers choose optimal Operators after a careful review process. Theamountof BFCstakedineachOperatorshowsthecurrentstatusofDAppProviders’ choices. Since Bifrost facilitates migration among Operators, DApp Providers can choose 21 another Operator whenever there is any security or performance defect. Therefore, the DApp Providers’ BFCstaking information can be regarded as an indicator of the reliability of Operators. We call this information “Operator Credit.” SinceBFCresides on a public blockchain, it is easy to confirminformationonthestatusofOperatorCredit. Bifrostguaranteesinformationsymmetry by providing tools that enable this kind of information to be checked easily. Service plan publication. Bifrost Operators promote their service plans and content as follows: • Basic Operator information: Provide detailed information about the services through Con- tainers and the structure of combined blockchains. (The security mechanism for other support systems for performance upgrades can be added.) • Pricing function: Shows the fee mechanism of DApp use. Operators can chargeBFC based on DApp Providers’ frequency of use (complexity of transactions or use of the components) and ask for the predefined amount ofBFC for staking. To define the price function, they must parameterize the complexity of transactions, the staking amount ofBFC to use the service, etc. Operators have to provide pricing functions using their defined parameters. • BFC staking per DApp: To prevent Operators’ malicious behaviors, Operators must stake BFC proportional to the number of active DApps on its Containers. This is a kind of security deposit so that a DApp Provider can claim through the blame process if it does not receive an appropriate service from the Operator. DApp Providers can see how many DApps are active and the available slots left in the Container by checking the amount of BFC that the Operator stakes. Optimal Operator selection. All the statuses of Operators inBifrost are provided with their service plans. When a DApp Provider chooses an Operator, theBFC amount asked for in the service plan must be staked, and the actual fee is charged based on the pricing function. DApp Providers’ choices can be verified by the amount ofBFC that Operators get (Operator credit). Operator credit can be an indicator of Containers’ reliability. Hence, Operators can demand more BFC staking for better services. Penalty and blame. Operators can be forced to pay penalties for inappropriate service op- eration through DApp Providers’ blame process. We designed a mechanical blame process. An Operator signs the service-level agreement according to the parameters in the service plan with a DApp Provider. If the Operator breaks the agreement, theBFC staked for the corresponding DApp is reimbursed automatically by a smart contract. As a complementary measure, a penalty based on a vote by the Operators’ committee can be considered. All Operators automatically become members of the Operators’ committee and have voting power proportional to their Op- erator credit. If a DApp Provider creates a blame report on a certain Operator to the Operators’ 22 committee by staking BFC, the member of the Operators’ committee must accept or reject it within a set period. If the blame report is accepted, theBFC staked for the corresponding DApp is reimbursed. 6.3 Bootstrapping The Bifrost ecosystem has a network effect. That is, the entireBifrost platform becomes more stable and efficient as the number of participants increases. Given the proportional effect of the number of Containers and the quality of the services offered, ecosystem effects are apparent not only in terms of network effects but also in terms of the type and diversity of the supported mainnet protocols. In addition, it is a “two-sided market,” where DApp Providers andBifrost Operators prosper together as the market gets bigger. Therefore, initial effort to trigger the network effect is needed.Bifrost designed the step-by-step approach as follows: • At the initial stage,Bifrost takes the lead in Container operation: Support for pricing function and initial model which can be the basis of Container operation. • Bifrostpartner organization operate Containers as additional Operators: Manage various promotion to expand the number of Operators. • As the Bifrost ecosystem matures, they open the Operator qualification to ensure better services under a market economy with free competition. Bifrost’s token, BFC, is initially issued with a certain amount, and there is no subsequent mining. If the DApps are attracted to the purpose of Bifrost and the ecosystem is established, the demand for fee-typeBFCs provided to the Container Operators in addition to theBFCs required for the initial stage staking will also increase. The network effect of Bifrost ensures the overall platform stability and better service delivery and also guarantees the value ofBFC. 7 Conclusion A common first question among those interested in blockchain services is what the most popular “Killer App” would be to date. The moment when anyone can answer this question in agreement will be the time when blockchain technology becomes popular. In other words, the first step that blockchain can take to change the world is the universalization of DApps where the public can experience the service. The goal of Bifrost is to present solutions to speed and scalability in order to solve the current DApp development problems and to support the practical activation of its ecosystem. However, we do not follow the way many protocols are going through and instead use the existing system. Multiple blockchain systems currently operate in many fields and each have their own strengths. We aimed to address the problems in the DApp development environment by providing 23 the unique strengths of the different blockchains simultaneously throughBifrost. The Bifrost platform will grow with the advancement in blockchain technology, and DApps can adopt new technologies under stable circumstances without changing platforms and maintain. Bifrost is innovative because it provides the most efficient solutions to “the platform risk” problems of DApp development environments.Bifrosthas the potential to expand the horizons of DApps significantly, and will ultimately create an opportunity for the blockchain technology to be actively used by the public. 24
프로젝트로 돌아가기