Orbs 백서

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

the rigid per-transaction billing and fee model used in most blockchain solutions today. 29 THE O RBS TOK EN Programmable Fee Models The Orbs billing subsystem takes infrastructure fee models a step further. Our experience with design partners taught us that different applications prefer to collect fees for infrastructure costs in different ways. Microtransaction-oriented peer-to-peer marketplaces hosted on digital services prefer that the digital services will subsidize the fees for infrastructure and hide them from their end users. Imagine for example a dating app like Tinder where the free model is crucial for user adoption. In these scenarios, expecting the end user to pay upfront for infrastructure costs makes as much sense as asking end users of an instant messenger to pay for the costs to deliver their own messages. This is achieved on Orbs through the introduction of subscriptions. Subscriptions are designed for the developers of decentralized consumer applications which are often responsible for payment for the infrastructure services. This fee model is closer to the pricing model of AWS than to that of Ethereum where the end users pay for infrastructure costs by themselves. The Orbs platform is designed to support alternative models as well. Consumer applications where larger sums change hands in a less frequent manner, such as in a decentralized Airbnb for example, may prefer that the party that originates the transaction will pay its fee. They may even go one step further and make the fee proportional to the amount paid despite the actual cost of infrastructure being constant. In other products, it makes more sense for the recipient to fund the fees. The elegant way to deal with these varying demands is to move elements of this decision from the infrastructure layer to the application layer. By adding a degree of programmability to the fee model, with a smart contract so to speak that specifies how the fee is paid, applications will maintain the freedom to adjust the fee model to their needs. This also resolves another common challenge on such systems, where the fee is paid with one token and the transaction is performed with another, requiring users to hold balances in both tokens in order to operate. Economy Incentives One of the main benefits of basing economies on a token instead of traditional fiat currency is the ability to design an inherent system of incentives that will govern the system and steer it towards a global set of predefined goals. Bitcoin’s goal, for example, is relying on the native token to incentivize the security of the network and rewards nodes for securely closing blocks with Proof of Work. As of January 2018, Bitcoins with value of approximately $150,000 are distributed every 10 minutes in average for this purpose . This mechanism creates an 38 economy in Bitcoin where predefined inflation in supply, in addition to the fees paid by users, 38 ​ https://www.anythingcrypto.com/guides/bitcoin-mining-block-rewards-2018 30 provide the funding for this self professed global goal. The reward is scheduled to decrease gradually until fees comprise most of the incentive for miners. On the Orbs platform, compensation to validators (consensus nodes) is designed to be based entirely on fees (no inflation to the token supply) from the very beginning. As opposed to where Bitcoin stood, we believe the blockchain industry is mature enough to correctly price transactions and validation without the “training wheels” of block rewards. Moreover, whereas fees distribute the burden relative to the amount of actual use of the validation services, generating rewards by inflation levies the cost of the reward on holders of the token relative to their holding amount. Like usage of property taxes to subsidize trade which creates a skewed market, using inflation to subsidize validation will lead app developers to make uneconomical choices. The fees for the Orbs platform are designed with several aims in mind: ● Incentivize nodes to maintain a high SLA ○ High server availability with no downtime ○ Secure servers against hacking and protect their private keys ○ Fast server hardware with a fast network connection ○ Uphold its commitments to other nodes (like dedication of resources) ○ Regular server maintenance ● Incentivize nodes not to fork the official ORBS token ○ Take part of the official ecosystem and not split apart ○ Participate in the consensus process with other network members ○ Incentivize new consumer brands and organizations to join the network ● Incentivize nodes to evaluate protocol updates regularly and to adopt them ○ Participate in examining protocol changes proposed by the open source community, other federation members and the Orbs project ○ Run the same protocol as everybody else ○ Enable fast end-of-life cycles for outdated versions, reducing maintenance costs ● Incentivize public audit of the network ○ Public validation that the network is secure ○ Operation of audit nodes that verify conformity to the protocol in real-time ○ Incentivize security researchers to report vulnerabilities instead of exploiting them Other goals for the economy include handling excessive demand gracefully and determining who gets service in this scenario, allowing applications to pay for dedicated resources such as throughput or storage and providing the necessary friction to prevent applications and users from spamming the network and paying for actual node server costs. 31 Besides the specific implementation details of the billing subsystem, which controls how collected fees are paid to node operators that provided services across the network, two other core aspects of the Orbs platform are used to implement the economy incentives. The first is a ​reputation systemfor nodes calculated during the consensus process and facilitated by the platform consensus algorithms such as the ​Helix Consensus Algorithm​. The second is encouraging consumer applications to join the ecosystem and maintain a consensus node. This creates alignment between the incentives of the users of the platform and those of the nodes operating it. In addition, in order to bootstrap the platform, the Orbs project is budgeting tokens in reserve for offsetting the entry costs of high profile consumer brands in joining the ecosystem. Token Implementation On the initial launch of the Orbs platform, we plan to start implementing the billing subsystem over the Ethereum blockchain. We believe that Ethereum is a great initial choice for a practical decentralized billing system mostly due to the extensive amount of third party integrations available for ERC20 tokens in the industry today. These ecosystem integrations with exchanges, third party wallets and hardware wallets are important for the target audience of the billing subsystem, companies and professionals, as they are often required to manage large amounts of money in the form of cryptocurrencies. The current scale limitations of Ethereum are not likely to pose a problem for a billing product since the rate of billing transactions is low – once per month, and the amounts transferred are high – making the significant fees of Ethereum negligible in this case. These parameters are not very different from that of a wire transfer which is a common means of payment for centralized infrastructure solutions like AWS. Avatar Tokens For projects already in operation, migration to Orbs would involve a simultaneous locking of tokens on the original Ethereum network with creation and launch of tokens over Orbs. The Orbs version of the tokens, avatar tokens, would represent the original ERC20 tokens in a 1:1 ratio. Implementing the ORBS token on launch as an ERC20 token will also provide a production use case for core platform features of Orbs like ​Polyglot Cross-Chain Contracts​, as the subscription smart contracts running over the Orbs platform will access billing information found on the Ethereum blockchain. This is a great example where a multi chain hybrid makes sense for practical reasons, where two blockchains can be used side by side, focusing on their relative advantages. Towards launch, the resources of the Orbs project are better allocated towards the primary differentiating factors of the platform such as consumer scale and blockchain virtualization. Producing an ecosystem of integrations to exchanges, third party 32 wallets and hardware wallets is not an immediate priority. However, the Orbs project ultimately intends to invest efforts in those as well. 33 Architecture To Fork or Not to Fork One of the first questions that comes to mind when designing a new blockchain infrastructure is whether to fork an existing system as a starting point from which to build. As some measure of dominance in the industry, we can look at the top 20 tokens on CoinMarketCap , 39 excluding Bitcoin and Ethereum, and see that ​over half of the tokens are forks of other popular tokens. Forking has become a popular method to bootstrap new systems quickly due to the permissive nature of intellectual property in the field. Our conclusion, ultimately, was that this decision should depend on what the system is trying to achieve. Let’s assume that we have adequately mapped the space and found an existing blockchain solution. The solution closely implements our conceived ideas, so we consider carrying out a fork. If we suspect that our final result will differ in 30% from said system, we should fork. If we suspect that our final result will differ in 70%, we shouldn’t. Using this as our guiding principle, and the lack of maturity of the consumer application sector over blockchain in general (with the first billion dollar consumer brands starting transitioning to blockchain only recently) we have decided not to fork. We are willing to take the short term penalty of delaying our time to production for the luxury of architecting a system from scratch and designing it for our distinct use case. We want to free ourselves from the potential burdens caused by using an architecture emerging from a different set of requirements. Polyglot Microservices In the evolution of software systems architecture, traditional systems grew gradually from the initial single program to complete systems. Initially, systems were very simple with all functionality in a single program - what is considered a ​monolith​. As functionality was added to the system, both its codebase and group of contributing developers grew. Gradual growth then lead to decomposition of the project to separate modules following the ​separation of 39 ​https://coinmarketcap.com/ 34 ARCHITECTURE concerns principle . Over the years, well-architected modular systems proved to work well for 40 scaling functionality and for scaling development teams. The Internet revolution brought about new challenges to systems design, as modern systems commonly need to work at massive scales - interfacing with other systems and millions of end users. This leads to changes in both ends of the engineering process. On the development end, the complexity of such systems requires new development paradigms such as refactoring, agile development, continuous deployment and build-measure-learn cycles. On the operational end, it leads to dependence on intricate infrastructure to enable scaling the throughput of overflowing interfaces. Both changes prove to be hard to apply in modular systems that suffer from delicate module interdependencies. This hardship lead to the evolution of ​service-oriented architecture and microservices design methodology, where each 41 functional component is implemented as a separate, simple and focused product. It is easy to observe that most current-generation blockchain platforms are built as monoliths. This not only shows the immature state of their development, but also hampers the ability to evolve and extend the functionality of systems based on these platforms. Moreover, in high-complexity open source projects, the reliance on well-acknowledged libraries and frameworks becomes limited when monoliths are constrained to design choices optimal for just some of their functions. The optimal environments for developing high-performance cryptography are different from those optimal for decentralized storage or from those for high performance networking and so on. The microservices architecture enables a system to be polyglot​, i.e. use different programming languages and frameworks for the different services. Such an approach allows for higher quality services, and better usage of resources such as open source solutions and engineering talent with expertise in relevant domains. Specification as Code As many software engineers know, a specification document grows stale the minute it gets published - if not before. Therefore, we strive for ​executable specifications that will trigger conspicuous alerts upon failing. By using executable specifications, we ascertain that at no point in time does a codebase diverge from its specification, thus assuring that backwards compatibility and correctness are never compromised. The distributed and decentralized nature of a blockchain network makes utilizing executable specifications even more important as the developers have little control over the deployment lifecycle of the services, so rolling back a deployment that broke an API or introduced a bug is not a viable option. Therefore, our workflow makes extensive use of executable specifications 40 ​https://en.wikipedia.org/wiki/Separation_of_concerns 41 ​https://martinfowler.com/articles/microservices.html 35 in two major categories: using Protocol Buffers for generating our API schemas, and using 42 Test-Driven Development (TDD) for achieving highly testable code. Protocol Buffers (or protobuf) is an Interface Definition Language (IDL) developed at Google that is programming-language-agnostic and allows defining APIs with backward and forward-compatibility in mind. This creates a clear distinction between the code that defines an API specification and the language and code used to implement it. If a developer changes an implementation in a way that breaks an API, static type-checking will fail the build and an alert will be sent to the developer immediately upon failure. An added value of using a language-agnostic IDL is as an enabler for writing polyglot microservice, as the API between each pair of microservices is not defined in any specific language. Test-Driven Development (TDD) is a methodology in which each required behavior is coded into unit tests before coding the behavior itself. In practice, it means the developer starts by defining the missing behavior, thus creating a test that fails and making sure the failures are as expected. Only then can he go on to implement the code that makes that test pass. Pursuing this methodology assures that no untested code ever gets into the source code repository. Next, the code is reviewed, but unlike regular code review, the reviewer focuses on validating the correctness of the test (representing what the code does) rather than that of the code itself (how it does it). The tests are written in a semantic language describing the business domain (for instance, transferring some funds between two addresses) rather than the specific implementation; changing the implementation does not affect the test. Practice shows that TDD leads to shorter, more concise code and that the coding process comprises of more cycles of refactoring, thus reducing technical debt. Meta Programming As the distributed and decentralized nature of a blockchain network imposes engineering challenges that are not present in a traditional deployment, the need arises for creative solutions allowing to circumvent some of these limitations. The Orbs platform makes extensive use of ​meta programming for critical components that will need to support Over The Air (OTA) deployment. Other blockchain networks such as Ethereum offer the concept of smart contracts as a way to execute user-deployable code. The Orbs platform borrows from these ideas and extends them for engineering-facing problems such as deployment and provisioning. One interesting area where we make use of meta programming is resource management and provisioning. This is implemented as hot-deployable code not unlike smart contracts, running on an instance of the network itself (which can be thought of as a meta network), controlling the way resources are provisioned. For example, new virtual machines we call “virtual chains” may automatically be instantiated to increase network capacity when a new member joins the ecosystem - particularly when this member is paying for dedicated resources. Since it is 42 ​https://developers.google.com/protocol-buffers/ 36 difficult to foresee the types of limitations and challenges we might face when onboarding new members to the ecosystem, making this area of the management code OTA-deployable makes a lot of sense. An added value of this approach is that the developers will have immediate visibility into the platform’s runtime, as they will be users of the platform themselves, “eating their own dog food”. Another example is a public DNS-like service which enables the resolution of a public address in a more user friendly format (alternatively, it can be used to shuffle between multiple addresses). Implementing such an address resolution mechanism as a smart contract makes it easier to maintain than making it part of the platform’s native core - just as Ethereum chose to implement ENS as a smart contract. Universal Addressing Addressing is an important topic in blockchain infrastructure controlling the scheme of how various resources are labeled and referred to across the system. Logical entities that have a distinct address include token accounts, smart contracts and their stored variables. Different blockchain implementations have adopted different addressing schemes. We believe that no single scheme is superior over all others, furthermore, different addressing schemes have different qualities and are suitable for different applications. For example, some addressing schemes, such as Schnorr public key based, enable native support for multiple signatures. Other addressing schemes have wider ecosystem presence and are supported by more hardware devices and HSMs. Moreover, an addressing scheme that is compatible with the one used by another blockchain implementation will allow end users the convenience of using the same public address across multiple platforms. In order to promote interoperability between blockchain implementations and allow for easier migration onto the platform, Orbs supports a universal signature and addressing scheme. This method allows applications and users to use a range of popular addressing schemes side by side by specifying the type of address next to the address itself. From an architecture perspective, addressing schemes are managed by a dedicated module which can be upgraded to support additional future schemes as they become popular across the industry. Network-Owned Secrets In centralized systems, secure operations are commonly based on secrets owned by the governing service which can be used to sign, encrypt or decrypt data. As decentralized networks are comprised of independent nodes in a trustless setting, applying a similar method is not as straightforward. Secrets can only be held by individual nodes. The network as a whole is usually unable to hold a shared secret and use it for secure operations, as due to the open and decentralized nature of the system, this secret will easily leak. 37 This limitation often causes blockchain implementations to rely on trust for scenarios where trust should not have normally
프로젝트로 돌아가기