Orbs 백서

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

network operation. Processing of each transaction requires writing to the native token’s ledger, making transactions harder to shard (since even unrelated contracts need to be synchronized). In addition, per-transaction billing adds an overhead in processing and storage, when compared with bulk subscriptions. A different fee model that is used to reduce per transaction costs in the industry is minimum balance per wallet. This model is used for example in blockchain platforms like Stellar. The system is designed to provide the necessary friction to reduce spam and fake transaction abuse. Once a user has proven to the platform that their wallet is indeed “real”, by placing a certain amount of tokens in this wallet in this case, the platform lifts usage limitations and allows the user to place a large number of transactions from this wallet for a negligible fee. The problem with this approach is that consumers are not likely to commit up front for a service that they’re not sure about. Expecting end users to pay the minimum balance fee will probably drop conversion below a level that consumer products can accept. What happens usually, is that consumer-facing digital services, the providers of the decentralized apps, attempt to subsidize these fees to attract customers. Once these fees are subsidized by a 3rd party, they lose their edge in countering Sybil attacks. Even worse, they create a new target for Sybil attacks, enabling attackers to pocket the subsidy in addition to any other gains. By enabling subscription payments as alternative to per-transaction fees, the Orbs platform limits the bounty one can find in such a Sybil attack, and the costs can only be laid on the digital service - who is the only party in power to mitigate such attacks. Ever-Growing Storage A big cost factor in current generation blockchain platforms is the fact that resources often scale without correlation to actual technical requirements. On Ethereum, for example, there would be as many full copies of the blockchain storage as the number of full nodes, and about as many processors running every piece of smart contract code. While distributed and decentralized systems do require a certain level of redundancy in both execution and storage, the proper redundancy for them would likely be constant, and in most cases not more than a dozen or two. Though fees are only paid to the solver of the PoW puzzle, all miners expect the mining operation to be cash-flow positive, so in equilibrium the fees would offset the total 63 costs for all miners. The architecture of the Orbs platform assures redundancy of any component is within determined bounds. Storage is a cost generator in another sense. Orbs storage APIs natively define expiration for data, as well as explicit expiration blockchain history. This ensures that data has a defined (rather than infinite) time to live, and greatly reduces storage costs to a magnitude expected in cloud services. In addition, relying on consensus that provides finality allows the Orbs platform to maintain the state under consensus and removes the need for high bandwidth access to block storage. Light Clients As indicated in our discussion about ​ network entities​ , consumers will access the network primarily by using mobile apps and websites. These usage patterns are characterized by extremely low availability of resources, thus requiring a thin client implementation that is commonly referred to in the industry as a ​ light client​ . These clients do not synchronize over the entire blockchain history like a full fledged node and usually must maintain some relationship of trust with the node serving them as gateway. The need to trust a gateway node creates a dependency of the client on the node’s honest behavior and enables vulnerabilities such as man in the middle attacks. In order to mitigate the risks, some clients perform a partial validation of the state by validating block headers. Another common strategy is validating data by querying multiple nodes, which of course doesn’t scale well. The problem is even more significant when a client needs to query a smart contract, as it requires the client to trust a node that runs this smart contract on its behalf. We see value in providing light clients that can operate with a low level of trust in a gateway node. This capability is provided over the Orbs platform using ​ network-owned secrets​ . Going back to the smart contract example, the client will provide the contract address and arguments to a gateway node, which will perform the query and return a signed response. The light client will be able to validate the signature of the network as a whole, thus reducing the level of trust needed from the specific gateway. An additional aspect of the Orbs platform that reduces the need for a light client to trust a node is that the protocol guarantees fairness in transaction ordering. By transmitting encrypted pre-consensus transactions that are opaque to consensus nodes, we can ensure that transactions will be ordered for execution without censorship or bias. Separation of Ordering and Validation The Orbs platform relies on multiple strategies to increase scalability by several orders of magnitude in order to meet the requirements of mass-market consumer-facing apps. Beyond the careful selection of a consensus strategy that favors professional nodes that are incentivized towards maintaining high SLAs regarding connection speed, uptime and 64 processing power, several other strategies are incorporated into the platform. The first strategy is separating consensus ordering and validation. The validation process of transactions and smart contracts is expensive and incurs duplicate computational cost since it has to run over multiple nodes. When validation and ordering are performed sequentially, transaction throughput is limited by the overall time required for the completion of both. Separating the two creates a ​pipeline​, thus increasing overall throughput. In addition to improvements in throughput, validation of ordered transactions is an easier problem which permits simpler schemes for concurrent computation. Moreover, it allows the network to reduce the amount of consensus nodes required for validation, thus promoting better resource utilization overall. Many existing blockchain implementations perform validation and ordering sequentially. Nodes normally execute all transactions first to validate their output and only then propose a block comprised entirely of valid transactions. Separation techniques are used by few state-of-the-art implementations like Hyperledger-fabric , where a transaction is first sent to a 69 group of endorsers that execute it and return proposed responses. When enough endorser responses are collected, the transaction is forwarded to the consensus ordering service. Performing validation before ordering works well for some applications. However, for 69 ​http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html 65 consumer applications we see a benefit in performing ordering first on encrypted transactions, in order to guarantee fairness. Efficient Consensus via Committees (Randomized Proof-of-Stake) The second strategy used by the Orbs platform to increase scalability involves reducing the number of nodes directly participating in the consensus process through the process of randomized proof-of-stake (RPoS). This is important since in most consensus algorithms, message complexity grows quadratically with the number of nodes. If we plan to scale the network to a large number of validators – an important goal for security and decentralization – it is certainly desirable that performance will remain within reasonable bounds. An efficient method for reducing dependency on the total number of nodes is relying on smaller ​ committees for consensus. If we randomize committee members between consensus rounds, e.g. on every new block, we can prevent an attacker from knowing which nodes to attack. This retains the security of a large network of thousands of nodes like Ethereum with the speed of smaller committees of block producers akin to EOS. The randomization process must fulfill several properties to make sure membership cannot be manipulated in advance or else we risk compromising the security of the entire model. The process is discussed in detail in the technical white paper for the ​ Helix Consensus Algorithm​ . 66 Sharding via Blockchain Virtualization In systems engineering, scaling systems cannot always be achieved by adding more resources, due to bottlenecks that cannot grow easily. Sharding is a technique for scaling out systems by dividing them into smaller, nearly-independent parts called ​ shards​ , each small enough to work well despite bottlenecks. Blockchain virtualization constitutes an intelligent form of sharding, as opposed to the random sharding proposed for other systems. Decentralized consensus is an unavoidable bottleneck, but the Orbs platform decouples tenants to different shards allowing the network to scale out horizontally as new tenant apps are added. It does this by isolating each dApp on Orbs onto its own virtual chain, segmenting end-users logically according to their likelihood to interact (in this case, those using the same dApp). Contrary to centralized infrastructure solutions like AWS, simply adding resources is usually not enough to increase capacity. When the number of products that use AWS grows, increasing infrastructure capacity by adding hardware like servers and network connections, is usually enough to meet demand since separate products run completely separately. This normally isn’t the case with blockchain. Transactions on Ethereum, for example, even by different contracts, may affect one another and therefore must be performed in sequence. To make matters worse, the number of verifiers in PoW blockchains is related to the level of security the blockchain enjoys; reducing unit sizes by sharding is reducing the level of security in the same proportion. Significant efforts are invested in research and development of effective sharding techniques in Ethereum. This problem is apparently much simpler to solve in the proposed architecture for Orbs. Permissioned consensus models, especially when employing consensus committees via RPoS, do not weaken its security properties when sharded. Different decentralized apps are independent and work with different unrelated assets. This is particularly true if fees are paid in bulk as Orbs proposes, rather than per transaction. By sharding decentralized apps by default, the architecture can revolve around parallelization. The Orbs infrastructure is designed to support a large number of independent dApps running on top of it. While applications are independent from one another by design, when running on top of this shared infrastructure they enjoy the benefits of sharing resources, but still allow the system to scale out thanks to the natural sharding of virtual chains. Unlike other forms of sharding in development, Orbs segments traffic by those most likely to interact with each other – users on the same dApps. The three types of cost factors in blockchain applications are consensus rounds, reads and writes of state storage, and compute operations. Consensus on transactions of different virtual chains can run independently as long as there are no ordering dependencies among them. Therefore, consensus of different virtual chains can be sharded and run concurrently on separate resources. As there is no ordering requirement, the ledgers of virtual chains can also 67 be maintained independently. Compute scheduling requires that dependent transactions will be executed in order. As virtual chains have independent ordering, their computing can be performed in parallel. Moreover, the isolation of state for each virtual chain reduces the memory requirements of its virtual machine. Elastic Capacity Large-scale applications require an ever-growing increase in transaction rate, accounts and storage. Moreover, as additional applications use the infrastructure, there’s a need for higher resources capacity. No transaction rate, compute, or storage resources, as large as they may be, that are allocated initially, can meet future requirements. In order to meet future capacity recruitments, there is a need for elastic capacity. Elastic capacity requires that the architecture will enable blockchain components - such as consensus, compute or storage - to scale with the addition of resources. Moreover, on-the-fly updates in resource allocation should be performed without interruption to the operation of decentralized applications. When an application requires additional resources in a centralized system, their capacity can be adjusted by a system administrator by providing additional resources, virtual or physical. For a decentralized infrastrastructure, there is a need for a decentralized mechanism for resource allocation. In addition, there is a need for an incentive mechanism for the nodes to provide the resources that are required by the applications. 68 Consumer Protection and Regulation Regulatory Evolution In his 2006 book Code v2 , Lawrence Lessig observes a pattern in which societies that 70 emerged into a free, unregulated and anarchic state, grow to create the institutions, the structures and the constraints that rule them. Lessig shows how this pattern applies to the evolution of the Internet, and how invisible powers shape these institutions; left to their own devices, those powers may end up stifling the freedom and progress that could exist. Bitcoin was introduced 3 years after Lessig published Code v2, and the crypto state has followed precisely the path he laid out. At first, blockchain presented itself as an architecture of freedom: unregulatable, self-ordering, free from control. As it matures, new structures emerge, forming the architecture of the ever-growing blockchain society. But the invisible hand in forming this architecture is not neutral. Established companies and distinguished and important members of the crypto community are the drivers of much of the innovation in the industry; this may create a force that will steer progress towards constructs that enable monopolistic control of markets. Governments, frequently out of genuine desire to protect users, use the crude power of law to shape the interfaces of blockchain with the “old world”; this may steer progress towards constructs that enable more control of the platform. It is up to the designers of blockchain protocols to assure the architecture we’re forming is one of freedom and progress. Established Consumer Brands Through our work with design partners that have established brands outside of the blockchain domain, we observed the stark difference between their preferences to those of companies operating entirely inside of it. Typically, the former have millions of existing users and ongoing business operations that are expected to maintain their performance. As a result, they are particularly concerned with the risks of regulatory uncertainty associated with blockchain operations, perceiving the possibility of an encounter with regulators as one that puts their 70 ​http://codev2.cc/download+remix/Lessig-Codev2.pdf 69 CONSUMER PROTECTION AND REGULATION existing business at risk. Blockchain companies, on the other hand, tend to see this uncertainty as a natural state for a new industry - let alone one that introduces disruptive business paradigms - and ignore it as an industry risk. Not derogating from the importance of pure blockchain companies and their remarkable contribution to the ecosystem, we believe it is wrong for platforms to ignore the newcomers’ concerns in this case. For blockchain technologies to become mainstream, it is vital that established companies enter the field with their existing user bases. These companies cannot afford the legal uncertainty, and it is up to platforms to enable protocols that can comply with existing regulatory requirements. Consumer Protection Suppose an app developer wants their app to enable users to store or transfer valuable assets. This could be peer-to-peer payments, trade of virtual goods, payment for services and so on. The product engineering challenge is not big: the developer can choose from a plethora of industrial grade transactional databases, and put together a straightforward implementation of a ledger. But once the assets transferred are convertible to cash, new types of problems arise: this ledger becomes a big target for thieves, crackers and embezzlers, and anybody with access to it is at risk of being liable for damages or criminal accusations. Good protection against these risks is an elusive goal. In some contexts, someone in control of the ledger can even make profit in subtle and indirect methods, such as delaying or deleting transactions. For a business whose core competency is consumer applications, properly protecting its users is a big burden. In many cases it could force the company to alter its procedures and structure in ways that will make it harder for it to go about its usual business. Most prefer to avoid such features if they’re not their main product focus, or integrate 3rd-party solutions to provide such risky services. To some extent, blockchain technologies have the potential to lower the barrier to provide such risky services, thanks to its reliance on secure cryptographic protocols and decentralization that mitigate or completely neutralize that risk. Decentralized Ledger Security Decentralized implementations for a ledger are easier to secure because the burden of securing the ledger is shared between multiple independent entities. When there is no centralized ownership or governance, no single entity can control the ledger and jeopardize it if it becomes compromised. Simply put, if nobody is in control of the ledger, nobody is able to steal off of it. In addition, multiple parties constantly audit the integrity of the ledger and can identify discrepancies from the agreed upon protocol. 70 In established PoW platforms such as Bitcoin or Ethereum, in a typical transaction, Alice sends some value to Bob by transmitting a transaction (signed with Alice’s private key) in which ownership registration of a certain amount of token will be modified on the shared ledger to reflect the transfer. The signed transaction is propagated across the peer-to-peer network and reaches miners who verify its validity, and if valid, include it in a block candidate. Each miner then looks for a solution to the PoW puzzle on the block candidate. Eventually, one miner will solve the puzzle and publish the closed block. Other miners receive the closed block, check its validity, and, if valid, use it as the previous block for their future block candidates. Let's see whether validators are in control of the virtual currency, which means the validators have sufficient credentials or authority to execute unilaterally or indefinitely prevent transactions for a user . Mallory, a malicious miner, can simply prevent a transaction for 71 users by not including their transactions in the block candidates; however she cannot block it indefinitely because other miners should eventually include it in their blocks. Could she execute a transaction unilaterally? Without Alice’s private key, Mallory cannot create a valid proof that she has the authority to move value to Bob. But Mallory can create a block candidate that includes an invalid transaction moving Alice’s funds to herself, and with some work can solve the PoW puzzle and get that block closed and published. Miners of future blocks are supposed to validate Mallory’
프로젝트로 돌아가기