Quant 백서

Quant

원문

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

obsolete, or no longer suitable, Virtualchain offers the ability to migrate to a more convenient one. For this reason, the interaction between blockchains happens only between the two blockchains involved in the migration. Sidechain. In Sidechain the communication happens between two chains, the main one called the Parent chain and the other one with new features called the Sidechain. Newer applications can use existing blockchains for which security is consolidated as a lower or parallel layer of their business logic. These applications can build messages out of the chain, hash them and add only their digests in the blockchains. In the case of parallel chains, they can build these extension-chains that allow the exchange of assets with the main ones. The extension chains provide benefits, allowing the development of more complex applications and delegating the complexity in the external layer. The Sidechains project uses this approach to transfer assets between existing blockchains like Bitcoin, Litecoin and others offering new features. These extensions should always be compliant with the main blockchain protocol (e.g. the Bitcoin one) without changing it, because the protocol isn’t flexible. Even small changes would result in a hard fork. Cosmos. Cosmos has an architecture that allows zones (blockchains compliant to the protocol) to communicate to each other through hubs, multi-asset blockchains, where coins can be owned by individuals or by zones. The Hub blockchain appends transactions to its ledger among individuals or zones. Polkadot. Polkadot uses relay chains to coordinate consensus among parachains. Parachains gather, collect and process transactions and use the relay chain consensus for normal and cross-ledger transactions. AION-1. Aion provides a protocol to route, propagate and translate messages among blockchain networks. At the root of this network there’s an ad-hoc blockchain called Aion-1. Page of 948 Overledger. It should be noted that all of the above solutions only allow communication between two blockchains at the same time. Our solution can conduct operations across multiple blockchains simultaneously. Overledger can read information like transactions, scripts or contracts and map them in the “over layer”, only if that information is compliant with the selected business logic. In this way, Overledger can connect all blockchains allowing the ability to add an arbitrary hash of a message to a host. In most cases, the projects that encourage connectivity among blockchains create a network of ledgers, where the asset, or the information, needs to be routed from the source to the destination, across different hops (when it is applicable). We do not propose a network approach; we introduce a multi-layer approach. We move the information in the layers above, creating a common interface among ledgers. In table 1 we summarise the level of interoperability by using the following notation: ●1-C-1: Two connected blockchains per time with a connector; ●N-C-N: Many connected blockchains per time with connectors; ●1–1: Two connected blockchain connected per time without connector; and ●N–N: Many connected blockchains per time without connectors. 1.2.3 Layer of Communication Our idea’s to build a presentation layer on top of blockchains to allow applications to run on them. Communication among blockchains happens on a logical layer, which sits on top of the transactional one. Virtualchains adopt a similar approach to ours. Virtualchains are designed to perform migration between two blockchains. The migrations are executed through messages exchanged on a virtual layer. This means the transaction where the fingerprint of the operation is added doesn’t affect the underlying transaction. Instead, the other projects carry out the communication at the transaction level. Since the protocol for Interledger and Sidechains focus on tokens and coins, they need to impose the connection happens at the same level of transactions. Cosmos, Polkadot and Aion define new standards to work on a new sharable transaction layer. A limitation of this approach is that they can only work with token-based ledgers. 1.2.4 Connection Method All the projects in Table 1 propose different ways to communicate across-ledgers. However, when it comes to interactions with different ledgers, in all cases, connection methods between different ledgers require a two-phase commit approach. This consists of two or more states. The first, where the transaction is proposed, propagated and processed (committed or aborted) by the stakeholders. Interledger. In the case of the protocol for Interledger, particular nodes called connectors are in charge of communications. A connector of two chains is an entity having at least one node in each of the two ledgers. They coordinate transfers on multiple ledgers using smart contracts. Smart contracts force connectors to cooperate, therefore people don’t need to trust anyone. The escrow’s implemented with the financial equivalent of the two-phase commit, that first locks resources and then moves them, or rolls back the transaction to the previous owners. Page of 1048 Virtualchain. Virtualchain's migration uses a two-step commit that locks the application in the new blockchain until the migration is ended. Sidechains. Sidechains are newer blockchains that have particular rules allowing transfers from parent chains. They proposed a scheme that locks coins on one chain by sending them to unique addresses, then a simple payment verification (SPV) proof is used to unlock them on the other blockchain. SPV are used by lightweight clients, but rather than checking the validity of all transactions in the blocks, they only check a transaction’s a member of the Merkle tree in a block appended in the past. This method’s described in the original Bitcoin whitepaper [1]. This is much faster, as users only need to check the membership in a Merkle tree and only the block header. Only when the block header is received the transaction that belongs to the longest blockchain is checked, as can be seen. This doesn’t guarantee it’s the longest valid chain. Cosmos. In Cosmos, the zones communicate with each other through the “Hub” with an Inter-Blockchain Communication (IBC) protocol defining two types of messages (IBCBlockCommitTx, IBCPacketTx). This is similar to the SPV approach. Polkadot. Polkadot seeks to address the unsolved questions of extensibility and scalability by decoupling the tied bound of canonicality and validity in the popular blockchain architectures, with a focus on security. Parachains communicate among them through the relay chain. The relay chain provides the foundation (through a consensus mechanism, a parachain interface and a routing protocol) on which the Polkadot network’s built. AION-1. Aion, like Cosmos and Polkadot, connect blockchain networks compliant with a set of requirements (AION-compatible) and make them communicate through a central node, in this case, the AION-1. Overledger. Also, Overledger adopts a two-phase commit schema, similar to the one used by the other projects. 1.2.5 Scalability Interledger. The scalability of the payments for the Interledger protocol depends on the connectors. If a connector can run a node in a ledger, having the right to do transactions, then it can potentially use this protocol to exchange to and from the particular ledger. Virtualchain. The scalability for virtualchain depends on the ability of a blockchain to add metadata on the blockchain. Sidechain. For Sidechain, the scalability parameter depends on the blockchain’s ability to implement a two-way peg scheme. It must be considered that the two-way peg scheme uses SPV proof, that requires proof of work, which means it needs to be adjusted for blockchains using another consensus mechanism. Cosmos. Cosmos can scale as long as a new blockchain can adopt the inter-blockchain communication protocol and also connect to a Cosmos Hub. Page of 1148 Polkadot. Similar to Cosmos, Polkadot can scale if new ledgers adopt the requirements to connect to a relay chain, i.e. new ledgers must be compatible to the connector standard. AION-1. AION-1 also follows a similar approach to both Cosmos and Polkadot. Overledger. Internet-scalability has been built into the core of the Overledger protocol and approach. 1.2.6 Fault Tolerance Interledger. For the Interledger protocol there’s two modes of working: Atomic mode and Universal mode. The fault tolerance in the atomic mode depends on the behaviour of the group of notaries that approve transactions. In the case of universal mode, it depends on the institution that fills that role in charge of an incentive. Since the Interledger protocol is only intended for value exchanges among blockchains, a blockchain error can’t compromise the business logic. If a blockchain becomes insecure, connectors won’t transfer values from or to that blockchain. Virtualchain. Fault tolerance is the main reason behind Virtualchain, if a blockchain becomes insecure, the application can migrate from one blockchain to another. However, if a blockchain’s already fully compromised, the previous state of the application can’t be recovered. This is very unlikely to happen, but to avoid this, Virtualchain frequently publishes logs on other blockchains. Sidechain. With regards to fault tolerance, one should consider that Sidechain treats the two chains as isolated. In the case of a security fault or a malicious design in a sidechain, the damage is confined to the sidechain itself and doesn’t compromise the main one. Cosmos. In Cosmos' topology, the Hub is the critical point of failure, therefore security is enforced. The Hub uses the Tendermint consensus protocol [18], considered secure, and uses only trusted validators for the transactions. The problem arises if one of the zones has a security issue, it can spread through the network. The Hub doesn’t validate transactions inside zones, it only validates inter-zone transactions. Polkadot. Polkadot also has a single point of failure in the relay chain. This is the reason the project focuses more on security for these entities. AION-1. In the Aion-1 blockchain, at the root of the network, is a potential single point of failure for this type of technology. 1.2.7 Connection Speed Although it’s very hard to estimate the connection time, let’s see how the different software architectures of the projects in Table 1 may influence it. Interledger. The Protocol for Interledger payments operates over three phases: proposal, preparation and execution. The phasing works utilising a two-phase commit protocol, and a chosen group of notaries act like the Transaction manager. The transaction time depends on the time required by the blockchain to add information about these three phases for all nodes involved in the transactions, plus the time required by the notaries to check all the information needed at each phase of these protocols, to send a vote Page of 1248 (commit, or abort). The liveness property (deadlock free and not starvation) is guaranteed in this process because of the presence of timeouts in each stage. Virtualchain. Virtualchain is a logical (not physical) layer on the blockchain showing the evolution of the state of a virtual machine. This chain needs to respect the consensus rule to be fork-consistent and, depending on these rules, we can give a rough estimation of the speed of their transactions. Where there is communication among blockchains, i.e. migration, they require only two messages: one to announce they’re leaving a message on the old blockchain and one on the new blockchain, announcing a migration started on that blockchain. Sidechain. Sidechain’s two-way peg requires sending SPV proof to lock coins on a blockchain (parent or side one) and then unlock them on the other. This process delays a specific period of time before sending the SPV proof (confirmation time) to allow sufficient proof of work to be created, after the SPV proof’s been sent (contest period), to prevent double spending. According to the Sidechain white paper [5], this period would be one or two days. Cosmos. The connection speed in Cosmos depends on the parameter of the Tendermint consensus protocol [18]. A good trade-off with one hundred validators can allow thousands of transactions per second. Polkadot. In Polkadot the connection speed depends on the protocol and the involved entities (nominators, collators, validators, and fishermen). AION-1. To estimate the connection speed in Aion we need to consider its architecture. Considering Bitcoin can manage approximately seven to ten transactions per second, given the underlying speed, this will depend on the transactional speed of the underlying Aion compatible blockchains involved, as well as the Aion-1 blockchain itself. Overledger. All projects that don’t create a presentation layer and aim to achieve communication at the transaction level needed to route information across-ledgers from the source ledger to the destination. Since our solution doesn’t route the information across-ledgers, the connection time is proportional to the latency of the involved chains and only requires a fixed set of transactions. It doesn’t depend on the path length, since all ledgers are directly connected to our presentation layer. 3.Overledger Philosophy One of the challenges with digital ledgers is they exist in silos. Different structures and working mechanisms make it harder to build a common interface. Overledger addresses this issue sitting on top of them rather than struggling to match them up. Sometimes you may have different rights on different ledgers. Overledger’s vision is to build a unique group of transactions, put together, and then ordered by distributed applications. The analysis of the projects in Table 1 on DLT inter-communication and interoperability allows us to extract the connection methods adopted in those cases. A comparative analysis permits us to extract the common logical elements pertaining to those methods: Page of 1348 ●Build a platform with new features designed to address today’s DLTs challenges (slow transaction rates, migrations, cryptocurrency exchanges etc); ●Build a network of blockchains where nodes have different roles and responsibilities (e.g. parentchain-sidechain, hub-zone, relaychain-parachain [16]); ●Define a standard to connect blockchains to the platform; ●Build adapters to make existing technologies compliant with the standard; ●Transaction-oriented, not application oriented; ●Connections at low-levels strictly involving consensus mechanism; and ●Tree/Graph network that requires complex routing algorithms. The methods proposed so far are very limited in their application, as they set strict rules and create a standard on the connection level. This approach automatically excludes some technologies and limits the evolution of the new ones are bounded within the new constraints. Moreover, it becomes harder and harder to include the current and new technologies being developed. It’s indeed impossible to build a general meta-adapter to connect all present and future blockchains, resulting in a platform needing to build different adapters of different complexity. Fig.1 represents a common scenario where there’s special nodes with more responsibility than regular ones. The special node, becomes a single point of failure for the connected bodies. It also needs to be able to manage as many nodes as possible. If it’s designed to be optimised for the connection: this is represented with a hexagon. The hexagon is the symbol for connectivity because of its property to cover a plane (its internal angle is a divisor of 360). Despite its design, it needs to connect legacy or existing technologies not designed for inter-communicability (the purple and the blue polygons). Therefore, it must implement and maintain different adapters. The yellow node is the representation of a brand new blockchain technology that’s particularly complex, and therefore its adapter has an irregular shape to highlight its complexity. ! Fig. 1: Connectivity and differences between regular and special nodes. Other issue are upgrades or changes. The upgrade of the communication protocol, or standard, adds complexity. Since we’re dealing with transactions, it can lead to unavailability of the service or inconsistency problems. This also affects the flexibility of the communication because of the resistance to Page of 1448 changes. Furthermore, one should take into account that an upgrade of the platforms may also require the adapters be updated. The resulting architecture is a graph network requiring different adapters for different DLTs and a routing strategy that forwards information from a source to a destination, avoiding loops. Fig. 2 shows a topology for such an architecture. ! Fig. 2: Connection Topology. Let’s suppose DLT-A wants to send a message to DLT-G, the following issues arise: ●Convert the message in the platform format from the DLT-A format respecting the time; !Route the message from the node to the next one. The routing strategy must be efficient because the different consensus timing adds complexity. The fastest path may not be the shortest one. The safest path may not be the fastest one. The user may not have control of the path of their information; !The message needs to be converted from the DLT-A platform format to the DLT-G one; and !Special node (master, relay, parent, hub) are points of failure as well as the adapters itself, in this example. The Overledger approach manages the connection in an upper layer despite the underpinning technology. The applications bind blockchains and treat them as a decentralised queue of transactions where messages are attached to transactions and are appended to the different ledgers. Page of 1548 2.Overledger In this paper we propose an architecture that acts like the OSI model for the Internet, redistributing the tasks among four different layers, built on the transport layer, since most blockchain technologies are built on the Internet (see Fig. 3): Transaction Layer. This layer stores transactions appended on the ledger’s technology. It includes all operations needed to reach the consensus in different blockchain domains (in this representation, we simplified this by putting all those operations in one layer). However, all the transactions executed on a specific blockchain only have scope in that domain, i.e. it’s not possible to also make them valid in other ledgers. Therefore, this layer’s represented by different and isolated ledgers. Messaging Layer. This is a logical layer because all relevant information is retrieved from the ledgers. Information can be transaction data, smart contract or metadata (if the underlying ledgers can add arbitrary strings on transactions). In the particular case of metadata, the added strings are typically the digest of out-of-chain messages that can be interpreted as the payload in this logical over layer. This logical layer stores all transaction information and the message’s digests of different applications in the same way as a shared channel has packets of different applications. Filtering and Ordering Layer. In this layer messages extracted and built from the transaction information, and those only referenced in the transaction through a hash, that is exchanged out of the chain, are filtered and ordered. This layer is responsible for creating connections among different messages built in the Messaging Layer. In the case of metadata, this is the layer in charge of the validation of out of chain messages. The validation checks the application schema and its requirements. Application requirements can be set on the transaction
프로젝트로 돌아가기