bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 16쪽 중 9쪽
ion is required.
In that case, one must abandon DPOS and opt for BFT PoS instead.
2.8.6. Support for Turing-complete code in transactions, i.e., es-
sentially arbitrary smart contracts. Blockchain projects normally col-
lect some transactions in their blocks, which alter the blockchain state in
a way deemed useful (e.g., transfer some amount of cryptocurrency from
one account to another). Some blockchain projects might allow only some
specic predened types of transactions (such as value transfers from one ac-
count to another, provided correct signatures are presented). Others might
support some limited form of scripting in the transactions. Finally, some
blockchains support the execution of arbitrarily complex code in transactions,
enabling the system (at least in principle) to support arbitrary applications,
provided the performance of the system permits. This is usually associated
with Turing-complete virtual machines and scripting languages (meaning
that any program that can be written in any other computing language may
be re-written to be performed inside the blockchain), and smart contracts
(which are programs residing in the blockchain).
Of course, support for arbitrary smart contracts makes the system truly
exible. On the other hand, this exibility comes at a cost: the code of these
smart contracts must be executed on some virtual machine, and this must
be done every time for each transaction in the block when somebody wants
26 For instance, EOS, one of the best DPOS projects proposed up to this date, promises
a 45-second conrmation and inter-blockchain interaction delay (cf. [5], Transaction Con-
rmation and Latency of Interchain Communication sections).
67
2.8. Classification of Blockchain Projects
to create or validate a block. This slows down the performance of the system
compared to the case of a predened and immutable set of types of simple
transactions, which can be optimized by implementing their processing in a
language such as C++ (instead of some virtual machine).
Ultimately, support for Turing-complete smart contracts seems to be de-
sirable in any general-purpose blockchain project; otherwise, the designers
of the blockchain project must decide in advance which applications their
blockchain will be used for. In fact, the lack of support for smart contracts
in the Bitcoin blockchain was the principal reason why a new blockchain
project, Ethereum, had to be created.
In a (heterogeneous; cf. 2.8.8 ) multi-chain system, one might have the
best of both worlds by supporting Turing-complete smart contracts in some
blockchains (i.e., workchains), and a small predened set of highly-optimized
transactions in others.
2.8.7. Classication of multichain systems. So far, the classication
was valid both for single-chain and multi-chain systems. However, multi-
chain systems admit several more classication criteria, reecting the rela-
tionship between the dierent blockchains in the system. We now discuss
these criteria.
2.8.8. Blockchain types: homogeneous and heterogeneous systems.
In a multi-chain system, all blockchains may be essentially of the same type
and have the same rules (i.e., use the same format of transactions, the same
virtual machine for executing smart-contract code, share the same cryptocur-
rency, and so on), and this similarity is explicitly exploited, but with dierent
data in each blockchain. In this case, we say that the system is homogeneous .
Otherwise, dierent blockchains (which will usually be called workchains in
this case) can have dierent rules. Then we say that the system is hetero-
geneous .
2.8.9. Mixed heterogeneous-homogeneous systems. Sometimes we
have a mixed system, where there are several sets of types or rules for
blockchains, but many blockchains with the same rules are present, and this
fact is explicitly exploited. Then it is a mixed heterogeneous-homogeneous
system . To our knowledge, the TON Blockchain is the only example of such
a system.
2.8.10. Heterogeneous systems with several workchains having the
same rules, or confederations . In some cases, several blockchains (work-
68
2.8. Classification of Blockchain Projects
chains) with the same rules can be present in a heterogeneous system, but the
interaction between them is the same as between blockchains with dierent
rules (i.e., their similarity is not exploited explicitly). Even if they appear
to use the same cryptocurrency, they in fact use dierent altcoins (inde-
pendent incarnations of the cryptocurrency). Sometimes one can even have
certain mechanisms to convert these altcoins at a rate near to 1 : 1 . How-
ever, this does not make the system homogeneous in our view; it remains
heterogeneous. We say that such a heterogeneous collection of workchains
with the same rules is a confederation .
While making a heterogeneous system that allows one to create several
workchains with the same rules (i.e., a confederation) may seem a cheap way
of building a scalable system, this approach has a lot of drawbacks, too.
Essentially, if someone hosts a large project in many workchains with the
same rules, she does not obtain a large project, but rather a lot of small
instances of this project. This is like having a chat application (or a game)
that allows having at most 50 members in any chat (or game) room, but
scales by creating new rooms to accommodate more users when necessary.
As a result, a lot of users can participate in the chats or in the game, but
can we say that such a system is truly scalable?
2.8.11. Presence of a masterchain, external or internal. Sometimes,
a multi-chain project has a distinguished masterchain (sometimes called
control blockchain), which is used, for example, to store the overall cong-
uration of the system (the set of all active blockchains, or rather workchains),
the current set of validators (for a Proof-of-Stake system), and so on. Some-
times other blockchains are bound to the masterchain, for example by com-
mitting the hashes of their latest blocks into it (this is something the TON
Blockchain does, too).
In some cases, the masterchain is external , meaning that it is not a part
of the project, but some other pre-existing blockchain, originally completely
unrelated to its use by the new project and agnostic of it. For example, one
can try to use the Ethereum blockchain as a masterchain for an external
project, and publish special smart contracts into the Ethereum blockchain
for this purpose (e.g., for electing and punishing validators).
2.8.12. Sharding support. Some blockchain projects (or systems) have
native support for sharding , meaning that several (necessarily homogeneous;
cf. 2.8.8 ) blockchains are thought of as shards of a single (from a high-
level perspective) virtual blockchain. For example, one can create 256 shard
69
2.8. Classification of Blockchain Projects
blockchains (shardchains) with the same rules, and keep the state of an
account in exactly one shard selected depending on the rst byte of its
account_id .
Sharding is a natural approach to scaling blockchain systems, because,
if it is properly implemented, users and smart contracts in the system need
not be aware of the existence of sharding at all. In fact, one often wants to
add sharding to an existing single-chain project (such as Ethereum) when
the load becomes too high.
An alternative approach to scaling would be to use a confederation of
heterogeneous workchains as described in 2.8.10 , allowing each user to keep
her account in one or several workchains of her choice, and transfer funds
from her account in one workchain to another workchain when necessary,
essentially performing a 1 : 1 altcoin exchange operation. The drawbacks of
this approach have already been discussed in 2.8.10 .
However, sharding is not so easy to implement in a fast and reliable fash-
ion, because it implies a lot of messages between dierent shardchains. For
example, if accounts are evenly distributed between N shards, and the only
transactions are simple fund transfers from one account to another, then only
a small fraction ( 1/N) of all transactions will be performed within a single
blockchain; almost all ( 1− 1/N) transactions will involve two blockchains,
requiring inter-blockchain communication. If we want these transactions to
be fast, we need a fast system for transferring messages between shardchains.
In other words, the blockchain project needs to be tightly-coupled in the
sense described in 2.8.14 .
2.8.13. Dynamic and static sharding. Sharding might be dynamic (if
additional shards are automatically created when necessary) or static (when
there is a predened number of shards, which is changeable only through a
hard fork at best). Most sharding proposals are static; the TON Blockchain
uses dynamic sharding (cf. 2.7 ).
2.8.14. Interaction between blockchains: loosely-coupled and tightly-
coupled systems. Multi-blockchain projects can be classied according to
the supported level of interaction between the constituent blockchains.
The least level of support is the absence of any interaction between dif-
ferent blockchains whatsoever. We do not consider this case here, because
we would rather say that these blockchains are not parts of one blockchain
system, but just separate instances of the same blockchain protocol.
70
2.8. Classification of Blockchain Projects
The next level of support is the absence of any specic support for
messaging between blockchains, making interaction possible in principle,
but awkward. We call such systems loosely-coupled; in them one must
send messages and transfer value between blockchains as if they had been
blockchains belonging to completely separate blockchain projects (e.g., Bit-
coin and Ethereum; imagine two parties want to exchange some Bitcoins,
kept in the Bitcoin blockchain, into Ethers, kept in the Ethereum blockchain).
In other words, one must include the outbound message (or its generating
transaction) in a block of the source blockchain. Then she (or some other
party) must wait for enough conrmations (e.g., a given number of subse-
quent blocks) to consider the originating transaction to be committed and
immutable, so as to be able to perform external actions based on its ex-
istence. Only then may a transaction relaying the message into the target
blockchain (perhaps along with a reference and a Merkle proof of existence
for the originating transaction) be committed.
If one does not wait long enough before transferring the message, or if
a fork happens anyway for some other reason, the joined state of the two
blockchains turns out to be inconsistent: a message is delivered into the
second blockchain that has never been generated in (the ultimately chosen
fork of) the rst blockchain.
Sometimes partial support for messaging is added, by standardizing the
format of messages and the location of input and output message queues in
the blocks of all workchains (this is especially useful in heterogeneous sys-
tems). While this facilitates messaging to a certain extent, it is conceptually
not too dierent from the previous case, so such systems are still loosely-
coupled.
By contrast, tightly-coupled systems include special mechanisms to pro-
vide fast messaging between all blockchains. The desired behavior is to be
able to deliver a message into another workchain immediately after it has
been generated in a block of the originating blockchain. On the other hand,
tightly-coupled systems are also expected to maintain overall consistency
in the case of forks. While these two requirements appear to be contradictory
at rst glance, we believe that the mechanisms used by the TON Blockchain
(the inclusion of shardchain block hashes into masterchain blocks; the use
of vertical blockchains for xing invalid blocks, cf. 2.1.17 ; hypercube rout-
ing, cf. 2.4.19 ; Instant Hypercube Routing, cf. 2.4.20 ) enable it to be a
tightly-coupled system, perhaps the only one so far.
Of course, building a loosely-coupled system is much simpler; however,
71
2.8. Classification of Blockchain Projects
fast and ecient sharding (cf. 2.8.12 ) requires the system to be tightly-
coupled.
2.8.15. Simplied classication. Generations of blockchain projects.
The classication we have suggested so far splits all blockchain projects into
a large number of classes. However, the classication criteria we use happen
to be quite correlated in practice. This enables us to suggest a simplied
generational approach to the classication of blockchain projects, as a very
rough approximation of reality, with some examples. Projects that have not
been implemented and deployed yet are shown in italics ; the most important
characteristics of a generation are shown in bold .
First generation: Single-chain, PoW , no support for smart contracts.
Examples: Bitcoin (2009) and a lot of otherwise uninteresting imitators
(Litecoin, Monero, . . . ).
Second generation: Single-chain, PoW, smart-contract support . Ex-
ample: Ethereum (2013; deployed in 2015), at least in its original form.
Third generation: Single-chain, PoS , smart-contract support. Exam-
ple: future Ethereum (2018 or later).
Alternative third ( 3′) generation: Multi-chain , PoS, no support for
smart contracts, loosely-coupled. Example: Bitshares (20132014; uses
DPOS).
Fourth generation: Multi-chain, PoS, smart-contract support ,
loosely-coupled. Examples: EOS (2017; uses DPOS), PolkaDot (2016;
uses BFT).
Fifth generation: Multi-chain, PoS with BFT, smart-contract support,
tightly-coupled, with sharding . Examples: TON (2017).
While not all blockchain projects fall precisely into one of these categories,
most of them do.
2.8.16. Complications of changing the genome of a blockchain
project. The above classication denes the genome of a blockchain
project. This genome is quite rigid: it is almost impossible to change it
once the project is deployed and is used by a lot of people. One would need a
series of hard forks (which would require the approval of the majority of the
72
2.9. Comparison to Other Blockchain Projects
community), and even then the changes would need to be very conservative
in order to preserve backward compatibility (e.g., changing the semantics
of the virtual machine might break existing smart contracts). An alterna-
tive would be to create new sidechains with their dierent rules, and bind
them somehow to the blockchain (or the blockchains) of the original project.
One might use the blockchain of the existing single-blockchain project as an
external masterchain for an essentially new and separate project. 27
Our conclusion is that the genome of a project is very hard to change
once it has been deployed. Even starting with PoW and planning to replace
it with PoS in the future is quite complicated. 28 Adding shards to a project
originally designed without support for them seems almost impossible. 29 In
fact, adding support for smart contracts into a project (namely, Bitcoin)
originally designed without support for such features has been deemed im-
possible (or at least undesirable by the majority of the Bitcoin community)
and eventually led to the creation of a new blockchain project, Ethereum.
2.8.17. Genome of the TON Blockchain. Therefore, if one wants to
build a scalable blockchain system, one must choose its genome carefully
from the very beginning. If the system is meant to support some additional
specic functionality in the future not known at the time of its deployment,
it should support heterogeneous workchains (having potentially dierent
rules) from the start. For the system to be truly scalable, it must support
sharding from the very beginning; sharding makes sense only if the system
is tightly-coupled (cf. 2.8.14 ), so this in turn implies the existence of a
masterchain, a fast system of inter-blockchain messaging, usage of BFT PoS,
and so on.
When one takes into account all these implications, most of the design
choices made for the TON Blockchain project appear natural, and almost
the only ones possible.
27 For example, the Plasma project plans to use the Ethereum blockchain as its (external)
masterchain; it does not interact much with Ethereum otherwise, and it could have been
suggested and implemented by a team unrelated to the Ethereum project.
28 As of 2017, Ethereum is still struggling to transition from PoW to a combined
PoW+PoS system; we hope it will become a truly PoS system someday.
29 There are sharding proposals for Ethereum dating back to 2015; it is unclear how
they might be implemented and deployed without disrupting Ethereum or creating an
essentially independent parallel project.
73
2.9. Comparison to Other Blockchain Projects
Project Year G. Cons. Sm. Ch. R. Sh. Int.
Bitcoin 2009 1 PoW no 1
Ethereum 2013, 2015 2 PoW yes 1
NXT 2014 2+ PoS no 1
Tezos 2017, ? 2+ PoS yes 1
Casper 2015, (2017) 3 PoW/PoS yes 1
BitShares 2013, 2014 3′ DPoS no m ht. no L
EOS 2016, (2018) 4 DPoS yes m ht. no L
PolkaDot 2016, (2019) 4 PoS BFT yes m ht. no L
Cosmos 2017, ? 4 PoS BFT yes m ht. no L
TON 2017, (2018) 5 PoS BFT yes m mix dyn. T
Table 1: A summary of some notable blockchain projects. The columns are: Project project name;
Year year announced and year deployed; G. generation (cf. 2.8.15 ); Cons. consensus algorithm
(cf. 2.8.3 and 2.8.4 ); Sm. support for arbitrary code (smart contracts; cf. 2.8.6 ); Ch. single/multiple
blockchain system (cf. 2.8.2 ); R. heterogeneous/homogeneous multichain systems (cf. 2.8.8 ); Sh.
sharding support (cf. 2.8.12 ); Int. interaction between blockchains, (L)oose or (T)ight (cf. 2.8.14 ).
2.9 Comparison to Other Blockchain Projects
We conclude our brief discussion of the TON Blockchain and its most impor-
tant and unique features by trying to nd a place for it on a map containing
existing and proposed blockchain projects. We use the classication criteria
described in 2.8 to discuss dierent blockchain projects in a uniform way
and construct such a map of blockchain projects. We represent this map as
Table 1, and then briey discuss a few projects separately to point out their
peculiarities that may not t into the general scheme.
2.9.1. Bitcoin [12]; https://bitcoin.org/ . Bitcoin (2009) is the rst and
the most famous blockchain project. It is a typical rst-generation blockchain
project: it is single-chain, it uses Proof-of-Work with a longest-fork-wins
fork selection algorithm, and it does not have a Turing-complete scripting
language (however, simple scripts without loops are supported). The Bit-
coin blockchain has no notion of an account; it uses the UTXO (Unspent
Transaction Output) model instead.
2.9.2. Ethereum [2]; https://ethereum.org/ . Ethereum (2015) is the
rst blockchain with support for Turing-complete smart contracts. As such,
it is a typical second-generation project, and the most popular among them.
It uses Proof-of-Work on a single blockchain, but has smart contracts and
accounts.
74
2.9. Comparison to Other Blockchain Projects
2.9.3. NXT; https://nxtplatform.org/ . NXT (2014) is the rst PoS-
based blockchain and currency. It is still single-chain, and has no smart
contract support.
2.9.4. Tezos; https://www.tezos.com/ . Tezos (2018 or later) is a pro-
posed PoS-based single-blockchain project. We mention it here because of
its unique feature: its block interpretation function ev_block (cf. 2.2.6 ) is
not xed, but is determined by an OCaml module, which can be upgraded
by committing a new version into the blockchain (and collecting some votes
for the proposed change). In this way, one will be able to create custom
single-chain projects by rst deploying a vanilla Tezos blockchain, and then
gradually changing the block interpretation function in the desired direction,
without any need for hard forks.
This idea, while intriguing, has the obvious drawback that it forbids any
optimized implementations in other languages like C++, so a Tezos-based
blockchain is destined to hav프로젝트로 돌아가기