Orbs 백서

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

reduce this latency by using data structures that embrace forks as a valid state of the blocks’ formation. Significant work has been done in this field by Sompolinsky, Lewenberg and Zohar, including the design and validation of the SPECTRE protocol that implements a block-DAG (Directed Acyclic Graph) to 51 replace the conventional block-chain. Such work shows a lot of promise in advancing PoW decentralized payment ledgers beyond their current limitations, but at the moment do not offer a good solution for more abstract systems such as smart contracts, as their use entails very high complexity of calculating the system state. The Orbs research group has invested significant efforts based on the original SPECTRE research and had discussions with Prof. Zohar in attempt to develop a practical production implementation of the protocol. Ultimately, due to the difficulty in attaining the finality required for the efficient execution of smart contracts in DAG-based systems, and inherent limitations of PoW in general, we have decided to move away from the SPECTRE research as the base for the Orbs platform consensus strategy. We remain supportive of this promising concept and watchful as its research matures with advances like PHANTOM . 52 Proof of Stake An alternative means for countering Sybil attacks is to tie suffrage to ownership of a digital asset, usually a cryptocurrency. On the face of it, PoS provides an elegant alternative to PoW, without the costs and energy waste associated with it. But the fact that PoS schemes don’t require verifiers to risk any exogenous resources requires dealing with a whole new set of challenges. One major challenge is that participation in the validation process is not a direct concern of most users of the platform. Someone using a blockchain for transferring value, or a user of an application that makes use of smart contracts, would usually not be aware of the mechanics of the decentralized ledger, and is likely to have little motivation to participate in the process. This is especially problematic for real-time validation of transactions, in which the validator is required to be constantly online and to allocate network and processing resources to a nonstop feed of transactions. Some platforms try to replicate the ecosystem of specialist miners that are commonplace in PoW systems. This includes a wide variety of models, ranging from purely permissionless models in which would-be verifiers need to stake or burn tokens as a form of earnestness, to semi-permissioned models such as delegation, where stake-owners trust their voting rights to a specialist. Though the models greatly differ, all face the same fundamental challenges of a 51 ​ https://eprint.iacr.org/2016/1159.pdf 52 ​ https://eprint.iacr.org/2018/104.pdf 47 lack of incentives for validators to act honestly and an increased risk of formation of a dishonest majority. There are attempts at creating a full-participation, direct voting PoS systems. One notable example is AlgoRand by Chen and Micali, which very cleverly weighs a random sortition by 53 user stake, thus requiring only a small sample of users to participate in validation at any given moment as some kind of jury duty. We have high hopes for such models, but it is important to note that at the moment there are significant practical barriers to their implementation in mainstream applications. Mass-market users cannot be expected to be active in the technical process of transaction validation, nor to verify the software they are using for such validation; they merely download an app from an app-store. In practice, this gives the app developers total control over a user’s voting power, making the system just as good as a delegated PoS system with all its disadvantages. We hope that newer advances in cryptography, such as proof bearing code and other innovations, can make these systems practical for mainstream applications. Permissioned Models The idealistic nature of the blockchain community has traditionally pulled towards consensus designs that are decentralized, permissionless, open and transparent. By relaxing the constraint on being permissionless, Sybil attacks are no longer a concern, and faster, more efficient consensus algorithms can be used. Furthermore, permissioned validation also entails that the identity of the validators is known to all. Not hiding behind the veil of anonymity, validators may be required to make public commitments to abide by the rules of the protocol; in such case even the rules that cannot be enforced using technical measures, may be enforceable in commercial lawsuits. There are two forms for setting up a public permissioned network in decentralized context. The first, a ​consortium​, in which a central body governs the network thus distributing the validation permissions. Real-time validation permissions may still be considered decentralized, although the question of whether the governing body carries liability for operating the network remains. The second, a ​federation​, leaves the governance decentralized: permissions are not common to the network but are rather specified by each user or app developer. Different users may be seeing different projections of the ledger, when they don’t share the same set of permissioned validators. In some architectures, this adds significant complexity to the consensus protocol and ledger structures, however it remains very simple in platforms that provide blockchain virtualization. Federated models for public blockchains are well-established in the industry with projects like Ripple and Stellar steadily gaining ground. These projects maintain a high degree of 54 55 53 ​https://arxiv.org/pdf/1607.01341.pdf 54 ​https://ripple.com/ 55 ​https://www.stellar.org/ 48 decentralization, openness and transparency, where any party can set up a node and verify the history for transaction integrity. The permissioned aspect of the model comes into play in the validation of new transactions being written onto the chain. Every node can specify the list of nodes it trusts to participate in the validation of its transactions, thus creating a combination of groups with differing consensus quorums. A Layered Approach How should we choose a consensus strategy best suited for the use case of large-scale apps? The first question to ask is how should political power be distributed in the network. Apps are already a primary and certain stakeholder as they drive traffic to the network and bring their user base. We established that consumers trust consumer brands through which they make transactions in decentralized apps. Is adding additional stakeholders as validators in a permissionless way beneficial for consumers? We believe that today, federated blockchains offer the best solution for mass market consumer applications, both in performance and in alignment with the interests of the consumers. We do not expect consumers to be directly involved in governance of the blockchain anytime soon; any practical system that wishes to align with the long-term interest of the consumer can either empower app developers or interested 3rd parties such as miners. App developers are already the trusted, dominant stakeholder in the app market, entrusting them to this power maximizes the benefit for the consumer. Distribution of power between developers should be such that limits the individual power held by each one separately. All these requirements are best met by federated consensus models. Are federated models open enough? We can try to answer this question in several ways. From the practical perspective, the answer is clearly “yes,” it puts the trust in parties that have a clear stake in the success of the platform and that proved to collaborate well in most scenarios (with the exception of blocking competition). From a strategic perspective, it is unclear whether these models are stable over time, especially in comparison to PoW models which are considered very robust. From the legal and regulatory perspective, there is no ruling currently on the subject, either for or against. Our analysis (see ​Decentralized Ledger Security​) and the de-facto prominence of federation models among today’s leading blockchain platforms provide some indication that these models are seen as sufficiently decentralized. As the market matures, new insights or new regulatory approaches could tip the scales against federated governance. In such circumstance, we anticipate that the governance of the federation itself (accepting and rejecting of federation memberships; changes to federation members’ permissions; changes to the federation rules) will transition to a permissionless model such as delegated PoS, similar in principle to the governing model of EOS or TON . 56 57 56 ​https://eos.io/ 57 ​https://techcrunch.com/2018/01/08/telegram-open-network/ 49 This structure preserves most advantages of the pure federated model, but remains our second choice because it lacks the simplicity and elegance of the federated model. Helix Consensus Algorithm As blockchain technology reaches mass-market apps, we realize that classic forms of decentralized consensus are simply inapplicable. The volumes of transactions in a mass-market setting would cause PoW consensus to be too expensive, too slow and cause too much environmental damage. The fact that the apps themselves, rather than the mass-market users, are in control of the users’ voting power make PoS too risky of a choice for such a platform. Moreover, the typical pattern of app popularity is that of extreme inequality: at any given time and for almost any segment, a handful of popular apps overpower the infinitely long tail of less-popular apps. Because we think the ideal power distribution should be one that avoids significant inequalities in power, we prefer to create a system that assures an upper limit to any one stakeholder’s power. With the birth of the Orbs platform, we will be introducing Helix, a decentralized, open and transparent consensus algorithm tailored to the ideals of mass-market apps. Our fundamental assumption is that app vendors hold most of the power in a platform that caters to apps, and that a consensus protocol must be designed from ground up to ensure that vendors’ interests are aligned with each other and with the interests of their users. For network governance, this means the protocol has to work natively with blockchain virtualization, as it allows the governance of each app to be separate from that of other apps. Beyond that, voting power is distributed between known verifiers that are members of a federation, thus limiting the power held by a single voter. For real-time validation, we require the protocol to be fast, immediately-final and for it to be impractical for validators to manipulate the selection and ordering of transactions. The full details of the algorithm are published in a separate peer-reviewed technical white paper. The primary requirements that dictated the design of the algorithm include: Finality of Consensus Results The Helix Consensus Algorithm provides immediate transaction finality. In business applications, transaction finality is a highly desirable property, enabling stakeholders to provide intended services immediately once the transaction is executed. Unlike the probabilistic finality of transactions in systems like Bitcoin, stakeholders are not required to wait for multiple blocks in order to gain sufficient confidence that a transaction will not be reversed. The finality property also enables efficient usage of the state database. The state database can be updated under consensus at the closure of each block and its authenticity can be easily validated by its root hash. Keeping a state database that is always under consensus 50 prevents the need for high bandwidth access to a large transaction journal and the need for additional checkpoint mechanisms. Ordering of Opaque Transactions An important property of consensus algorithms that rarely gets the attention it deserves is fairness. Many algorithms rely on full-nodes or miners to decide the fair order in which new transactions are inserted into blocks, without defining rules or method to enforce fairness. Furthermore, some networks give miners the freedom to choose which transactions to include in a block, thus creating preference for high-fee transactions and enabling censorship. The Helix consensus algorithm uses ordering of opaque transactions to ensure fairness and censorship resistance. Transactions are encrypted by end-users before transmission and are only decrypted after consensus on their ordering was reached. This mechanism guarantees clients receive fair service without a need to trust nodes or to provide them with direct incentives. Separation of Ordering From Validation Pending encrypted transactions are first ordered, and only once consensus on the ordering is achieved, are the decrypted transactions executed, achieving consensus on their validation. Separation of ordering from validation enables higher scalability and a higher transaction rate. Moreover, it allows the system to optimize the properties for each stage, such as committee size or the use of encrypted data. Fast Consensus by Committees Through RPoS, a grouping of a suggested 21 nodes are randomly selected to form a consensus committee. This obtains the speed of smaller committees while retaining the security of the total number of nodes on the network. The amount of communication in consensus protocols is highly dependent on the number of nodes participating in the consensus. On one hand, we desire to increase the number of nodes in order to increase the decentralization and security. On the other hand, we want to control the amount of inter-node communication in order to reduce confirmation time and increase throughput. Using randomly selected, unpredictable committees that take active part in the creation of each block allows the system to increase the overall number of nodes while maintaining an upper bound on communication overhead. Efficient Leader Election by Randomized Sort Many Byzantine Fault Tolerance algorithms, such as PBFT , are based on rotation of a 58 primary or a leader node. In order to ensure liveness, these algorithms require mechanisms to 58 ​http://pmg.csail.mit.edu/papers/osdi99.pdf 51 identify a faulty leader and act for its deposition. These mechanisms are typically complex, rely on timeouts and result in a slow transition in cases where a new leader election is required. The transition overhead discourages frequent leader rotation resulting in imbalance and suboptimal fairness. In order to efficiently and randomly elect different leaders for each consensus round, Helix uses sortition for committee and leader election. For each block, the consensus nodes are sorted based on a hash of the decrypted data of the previously ordered block, which provides a random and consistent selection. Using the decryption that is only available after the previous block has reached consensus prevents a leader from manipulating the block data in order to control the next block committee members. The availability of a sorted list of the committee members enables efficient fault tolerant communication protocols. These can reduce the amount of network traffic and maximum propagation time, thus improving transaction rate and scalability. Node Reputation System The consensus algorithm operates in a Byzantine environment, where some of the nodes may be faulty or act maliciously. Moreover, not all the consensus nodes are homogeneous and their performance or responsiveness may vary. In order to rapidly identify faulty nodes, balance resources and incentivize nodes to behave according to the protocol, the Helix algorithm maintains a decentralized reputation system where every node is scored by its peers. Node reputation affects the political power of a node, such as its chance of being included in committees. Reputation also assists in economic incentivization, such as payment of fees to operators. For example, a node behaving in a manner discouraged by the protocol will have its reputation score reduced accordingly and will be able to charge less for its services. 52 Service Level Agreement (SLA) Industry Standard A Service Level Agreement (SLA) is a contract that describes the official commitment between a service provider and a client. It describes the expected level of service, the metrics used to measure it and the penalties in case the agreed service level is not achieved. SLAs are widely used for services provided between organizations or even within an organization. It is an industry standard in telecommunication, Internet providers, online services and also - cloud Infrastructure as a Service (IaaS) providers such as AWS. A separate SLA is typically defined for each of the provided services. For example, in an IaaS platform, each of the core services (compute, storage, networking) would have their own SLA. Users may have a choice between different SLAs, enabling different customers to plan according to their needs. For example, an online consumer application may focus on availability and consistent performance. Alternatively, offline applications may prioritize average performance over consistency. An SLA protects both the customer and the service provider. It prevents misunderstandings and misinterpretations by setting expectations explicitly. Moreover, an SLA helps customers predict the level of received service in advance and budget accordingly. For service providers, an SLA provides a means to estimate required resources and plan ahead. While SLAs are prevalent for applications running on centralized IaaS platforms, they are lacking for decentralized ones. The inability to predict performance and costs reliably creates a challenge for consumer brands to transition to decentralized businesses. CryptoKitties - a Case Study CryptoKitties is a social game operating on top of the Ethereum platform that allows players to adopt, raise, breed and trade virtual cats. While the kitties themselves are cute and delightful, the surge in popularity of the game and the amount of traffic it generated managed 53 SERVICE LEVEL AGREE MENT ( SLA) to bring the Ethereum network to severe congestion, exceeding its capacity and demonstrating Ethereum’s extreme need for further scalability CryptoKitties was launched at the end of November 2017 and immediately received high interest from users, pouring game-related transactions into the Ethereum network. In the days that followed the launch, game-related transactions became almost 20% of the total transaction volume on Ethereum. As a result, the amount of unprocessed transactions rose about six-fold and gas transaction fees climbed accordingly. 59 The resulting congestion on Ethereum has drawn attention from the crypto community and the media. Many of the articles covering the phenomena raised questions about the general scalability of blockchain technology . 60 DAppss running on top of blockchain infrastructure cannot base performance and fee estimations on whether or not a popular game will pop up and congest the network. Popular apps like CryptoKitties should not be viewed as a potential problem; popular decentralized applications showcase the potential of blockchain technology and the impact it can have on everyday life. 59 ​ https://www.theatlas.com/charts/rkt8jKMZz 60 ​ http://www.bbc.com/news/technology-42237162 54 Kin by Kik interactive launched their Kin IPLv2 to production at the apex of the CryptoKitties craze. As a result, their launch suffered from significant side effects of the impact CryptoKitties had on Ethereum . Their main concl
프로젝트로 돌아가기