Orbs 백서

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

s block and disqualify it from being included in the blockchain because it contains an invalid transaction. Note that in both cases, what limits Mallory from wrongdoing is knowing that an undefined, random group of future miners will not confirm her blocks’ validity. In the case of Bitcoin and Ethereum, we see two properties that together assure the validators are not in control of the ledger: the cryptographic protocol makes it impossible for validators to send transactions unilaterally, and the openness of the network makes it impossible for validators to indefinitely prevent transactions. The cryptographic protocol defines what valid transactions are, in a deterministic and universally accepted fashion. This means that if invalid transactions are included in a block, and the network consensus is to accept the block, then this consensus is not following the protocol and in essence it is not a consensus of the Bitcoin or Ethereum network. If we allow ourselves to use some circular logic, we could say that if Bitcoin accepts invalid blocks, then it’s not Bitcoin anymore. The openness of the network is provided by the ability of anyone to join the network as a validator. If Alice suspects her transactions are censored by the network’s validators, she may join the network as a validator and approve her own transaction. Because her block is valid, future block validators should include it in their chain (as said before, if they’re not following the protocol, it’s not the same network). 71 ​https://coincenter.org/entry/when-does-a-company-actually-control-customer-bitcoins 71 Censorship and Front-running Relying on the openness of the protocol for combating censorship of transactions is not ideal in some real-world uses. Though miners cannot indefinitely prevent a user from transacting, a miner closing a block can arbitrarily choose to leave transactions out, delaying them to a future block closed by another miner. This power is significant in the hands of large mining pool leaders. Moreover, miners can choose the order in which transactions are placed in blocks, and even craft transactions that will manipulate them for financial gain. For example, suppose we have a smart contract implementing a two-sided trading market in which a certain class of assets are traded for a currency. At a certain time, Alice posts a “bid” for an asset, for a maximum price of 100 tokens. Bob posts an “ask” for the same asset, for a minimum price of 90 tokens. A fair trading contract will split the spread and commit the trade for 95 tokens, leaving both Bob and Alice with surplus of 5 tokens. But Mallory, the miner who will close the block, can then add two more transactions: prepend Bob’s transaction with a “bid” for a maximum price of 90 tokens, and append it with a transaction containing an “ask” with a minimum price of 100 tokens. The new sequence of transactions will cause the smart contract to sell Bob’s asset to Mallory for 90 tokens and then sell it to Alice for 100, leaving the entire surplus of 10 tokens in her hands. A similar scenario, albeit in a more complex setting, was proposed by Emin Gun Sirer as theoretical attack against the Bancor smart contract . 72 However, we maintain that the challenge of combating manipulation by miners can be tackled with more adequate tools than openness. A consensus protocol in which validators agree on the order of transactions without knowing their contents could assure that validators don’t have knowledge they can use for manipulations such as censorship and front-running. Such 72 ​http://hackingdistributed.com/2017/06/19/bancor-is-flawed/#front-running 72 protocols, like HoneyBadger BFT , were proposed. A similar scheme is used in the Helix 73 protocol. Compliance Protocols A common problem in dealing with blockchain assets is conformance to the requirements of regulation on ownership, custodianship and transfers of assets. One class of international regulation that current cryptocurrency facilities struggle to comply with is Anti-Money-Laundering regulation (AML). AML regulation has been adopted globally in the past two decades and is seen as a systemic measure to combat crime and terrorism, by eliminating the financial incentives for criminal actions and the funding of terrorism. AML regulation that applies to financial institutions requires that asset owners be identified and their identity recorded, that sources of money transfers be verified, that large or anomalous transfers of money be reported to enforcement agencies, etc. Value transfers on cryptocurrency platforms do not conform with AML standards of financial institutions, which sometimes prevent the financial institution’s ability to register the transaction. For example, some institutions require deposits to be associated with a payment and for the source of the payment to be proven legal. In virtual currencies in which payers are anonymous, it may be hard or even impossible to prove the legitimacy of the transaction. Another asset class whose management entails regulatory requirements are securities. In many jurisdictions, securities law requires ownership of securities to be properly registered; if ownership of an asset by a single individual exceeds a threshold, it may also require reporting. Some assets may be limited in the ability to be owned by individuals, such as private companies whose equity can only be shared by a small number of unaccredited investors. We intend to develop a framework of interfaces and smart contracts to allow representing common asset classes on the blockchain, with the intention of it being compatible with local regulation, including protocols that allow trading of assets between localities when the legal framework allows for that. Privacy and AML An interesting challenge is brought about when designing new protocols for a payment ledger that can be used in normal circumstances and interface with traditional financial institutions. On the one hand, consumers expect a high level of privacy from financial platforms; in blockchain platforms that aim to be a major payments method for their users, this will require a very high level of privacy. In many countries, this expectation is made mandatory by privacy laws. On the other hand, existing AML regulation requires significant compromises on user privacy. In traditional financial institutions, records are kept discreetly and so the institution 73 ​https://eprint.iacr.org/2016/199.pdf 73 can maintain users’ privacy towards the public eye, while exposing all information to enforcement agencies. It is important to make the distinction between existing regulation and long-term enforcement strategy. Many enforcement agencies acknowledge that the transparency that a shared global ledger provides is a powerful tool for identifying anomalies, suspicious transactions and problematic accounts. Regulations that force virtual currencies to comply with procedures that make sense in traditional banking diminish both the commercial and the enforcement advantages of newer technologies. We believe that in time, regulators and enforcement agencies will prefer protocols that are more suited to the nature of virtual currencies and blockchain and are better at safeguarding users’ privacy. Our intention is to make an effort on both fronts: design our payment protocols to comply as much as possible with any existing regulation which may apply; and to design novel, forward-looking protocols, that can provide users with superior privacy and law agencies with sufficient tools to combat crime. The White Chain As one can expect, not all transactions and not all use cases will see value in conforming to the protocols. For example, apps that only use small payments that are exempt, or apps that predate the release of such protocols, are likely to choose not to adopt them. A payment ledger may contain both types of accounts and a mix of conforming and non-conforming transactions. And naturally, some businesses will limit their transactions to be only on the “white-chain” of strictly conformant accounts. 74 Modern Deployment Paradigms Network Governance In the past two decades, software engineering methods shifted away from long cycles of design, implementation and testing to ever-shorter cycles, up to the point where high-frequency of fine-grained releases are the industry standard in development of back-end servers for mass-market apps. Google , Facebook , Amazon (and in particular AWS) are the 74 75 76 most prominent examples of a near-unanimous agreement that frequent software releases enable higher quality of deployed software, fewer deployment problems, faster response to bugs in production and enable faster development. For decentralized apps, backend servers are replaced by blockchain. However, governance models of current-generation blockchain platforms are incompatible with methodologies that rely on frequent, fine-grained software release cycles. Mass-market applications developed for or migrating into decentralized architecture must compromise on their development methods, forcing them to a position of disadvantage in their competition with their centralized opponents. We’re designing the Orbs platform to aim for continuous integration and continuous delivery on the application back-end. That applies both to backend endpoints, to smart contracts, and to the platform core. Naturally, decentralization creates barriers to quick acceptance of changes. Our approach combines fine-grained definitions of the deployment procedures of each component with economic incentives for quorum members on testing and deploying changes rapidly, and disincentives for lingering, as well as for carelessness. Fine-grained definition of the procedures refers both to the form of the procedure (for example, implementation optimizations to an endpoint may be tested and deployed by every quorum member separately; changes to protocols need to be in consensus before any implementation is deployed; and so on) and the participants. The participants involved in different governance procedures may vary based on the nature of the procedure. Some changes need to be 74 ​http://eclipsecon.org/2013/sites/eclipsecon.org.2013/files/2013-03-24 CI at Google Scale.pdf 75 ​https://code.facebook.com/posts/270314900139291/rapid-release-at-massive-scale/ 76 ​https://www.youtube.com/watch?v=dxk8b9rSKOo 75 MODERN DEPLOYMENT PARADIGMS accepted by Orbs federation members, some by a virtual chain’s parties of interest; some changes, mostly in smart contracts relating to decentralized applications, may require a referendum of the affected users, etc. The economic incentives for involvement are applied by altering a node’s reputation scores, which determine the pricing it could charge for its services. Evergreen Nodes An important aspect of high-frequency deployments is that each change is small enough to be quickly reviewed and tested, and perhaps more important, to gain full confidence in its robustness soon after it is used in production. As changes propagate quickly across the network from nodes that are risk-takers to nodes that are relatively risk-averse, outdated code can be deprecated early, reducing security risks and system complexity. This behavior is not simple to implement in consensus-based decentralized systems where nodes are operated by independent organizations. Examining historic behavior of systems like Bitcoin is not encouraging, where several proposed changes like SegWit2X have shown that 77 consensus among participants is not always simple to achieve. The danger of a lack of consensus in this case is that the network is under risk of splitting, where some nodes reject a proposed protocol change while the others adopt it and fork outside. Projects like Tezos have been discussing the question of governance extensively and 78 proposing several mechanisms to make its process of consensus more streamlined. We believe that these mechanisms are important, but they are not enough if the fundamental cohesion of the network is fragile. This is usually the case when network politics create different pressure groups whose interests are misaligned and guided by opposing incentives. Taking the question of fees as an example, miners are usually in favor of keeping fees high, naturally because fees provide their means of compensation. Users, on the other hand, are usually in favor of reducing fees as much as possible, as long as they retain the same quality of service. The most important design decision towards easing the consensus process is eliminating opposing interests by assembling the network from similar players that share the same general motivations and view of the world. In the case of the Orbs platform, as the target audience of the network is consumer applications, choosing a consensus algorithm that allows these same consumer applications to become efficient miners, goes a long way. Further incentivization towards fast resolution of governance questions can also be applied through economic means. The node reputation system maintained by the ​Helix Consensus Algorithm allows for simple implementation of incentives, since reputation score controls the voting power of a node in the consensus process and the pricing it could charge for its share of the fees thereafter. We want to incentivize nodes to vote quickly on making a new protocol version official. This can be done by reducing the reputation of those who linger. We want to 77 ​https://www.coindesk.com/2x-called-off-bitcoin-hard-fork-suspended-lack-consensus/ 78 ​https://www.tezos.com/static/papers/white_paper.pdf 76 incentivize nodes to upgrade to the latest version of the protocol which is under consensus. This can be done by reducing the reputation of those who fail to do so - slowly at first, when the new protocol versions are still backwards compatible, but more aggressively when the older versions approach end of life. The voting mechanisms for governance purposes in the Orbs platform are implemented as smart contracts. Another important mechanism for reducing friction is providing an outlet for changes that are important only for a small part of the network. Consider a modification that is only required by one of the consumer brands participating in the ecosystem. If this change is not important to anyone else, or even worse, impacts performance in a negative way for those who don’t need it, its contributor may find it difficult to bring it to consensus. This issue is resolved on the Orbs platform by allowing protocol modifications to apply to a specific virtual chain only. In this case, the consumer app requiring the modification would limit its effects to a voluntary configuration that is only enabled in the dedicated virtual chain it is renting from other nodes. This would eliminate most of the reasons for the other participants to oppose to the change. Gradual Migrations Once a core protocol change has been agreed upon, the question of its methodology of deployment still exists. Migrating the entire network at once, a process often seen in Bitcoin protocol modifications, holds substantial risk. What happens if unforeseen problems arise only after deployment to production? It is almost impossible to guarantee that all malfunctions will be identified in advance by testing and simulation. Almost all changes can be deployed gradually, enabling the developers and chain administrators to gain confidence in its correctness based on actual performance rather than estimates (reviews, simulations, tests, etc). Using the method of Blue/Green Deployments , 79 when changes are entering the production system, the entire network clones and directs traffic to both the unchanged (blue) and changed (green) code. Processed traffic can then be considered either live or in testing; essentially every transaction is processed on both environments, but the “live” transactions are committed to the permanent storage and the “test” transactions are only tested to verify that they are correct and maintain a set of predetermined key performance indicators (KPIs) as compared to the live environment. The deployment process starts with a period in which the entire “green” traffic is in testing, then split 90%-10%, 50%-50% and 0%-100%. Each such change can be approved by its developer or by consensus, after checking performance KPIs of both systems. Another benefit of this methodology is the ability to rollback and return to the blue system in case a major malfunction is discovered. This gradual process of migration can also be used in order to migrate from a previous blockchain solution like Ethereum to Orbs in a risk free manner. Consider a secondary token, 79 ​https://martinfowler.com/bliki/BlueGreenDeployment.html 77 TOK, that was originally launched on top of the Ethereum blockchain. Let’s assume that the time comes and TOK is ready to migrate from Ethereum to Orbs. Naturally, performing a full migration at once holds risk. Instead, we propose a softer, limited-risk migration. The TOK client SDK used by consumer apps that support the token will start ​mirroring all transactions performed by end users to Orbs in parallel to Ethereum. All writes will take place to both blockchains, creating a duplicate ledger for TOK on top of the Orbs platform. This ledger can constantly be audited and compared to the Ethereum ledger which is considered the source of truth. Initially, TOK clients perform business decisions based on the Ethereum reads, but this can be changed per user with a runtime feature toggle. To start the migration, this feature toggle is switched for 5% of users. If everything is alright, 50% and finally 100%. If a problem is discovered, the feature toggle can be switched back and all users will return to making their business decisions based on Ethereum. Since all writes are duplicated, there is no risk of losing the ability to rollback. Upgradable Contracts Once deployed, smart contracts are immutable in nature and cannot be updated. After all, what’s the point of a contract if one of the parties can change it single-handedly after it has been signed? Although this behavior is a feature of smart contracts, immutability poses a lot of practical concerns. Developers are known to make mistakes and every piece of software always has another bug yet to be discovered. What happens if such a bug is discovered in an immutable smart contract? This problem is similar in nature to the governance problem of updating protocol versions of the node codebase. We’ve resolved the questions of protocol updates using consensus. Once a majority of parties has agreed to upgrade the protocol to a new version, we can start enforcing the upgrade throughout the network. It makes sense to resolve the upgrades of smart contacts in a similar fashion. Smart contracts over the Orbs platform are encouraged to employ an upgrade strategy. This strategy is implemented as another smart contact and controls the process through which the contract can be upgraded. Contracts for secondary tokens can elect to upgrade based on a stake-weighted vote of all holders of the token. Multi Chain Hybrids Practical design concerns of real-world decentralized applications often require that we base the complete solution on multiple blockchain infrastructures running side by side. Consider the following challenge we’ve met while collaborating on Kin with Kik Interactive. The Kin token was launched on the Ethereum blockchain, which was at the time the de facto standard for raising funds as part of an ICO (Initial Coin Offering). Ethereum has a great ecosystem and secondary tokens based on its ERC20 standard are easily integrated into exchanges, third party wallets and hardware wall
프로젝트로 돌아가기