bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 5쪽 중 4쪽
dditional latency due to bootstrapping. For this reason, at
the end of each epoch, less than 13 of the eligible validators,
belonging to a shard will be redistributed non-deterministically
and uniformly to the other shards’ waiting lists.
Only prior to the start of a new epoch, the validator
distribution to shards can be determined, without additional
communication as displayed in Fig. 10.
The node shuffling process runs in multiple steps:
1) The new nodes registered in the current epoch ei land
in the unassigned node pool until the end of the current
epoch;
2) Less than 13 of the nodes in every shard are randomly
selected to be reshuffled and are added to the assigned
node pool;
3) The new number of shards Nsh,i+1 is computed based
on the number of nodes in the network ki and network
usage;
4) Nodes previously in all shard’s waiting lists, that are cur-
rently synchronized, are added to the eligible validator’s
lists;
5) The newly added nodes from the unassigned node pool
are uniformly random distributed across all shards’
waiting lists during epoch ei+1;
6) The reshuffled nodes from the assigned node pool are
redistributed with higher ratios to shards’ waiting lists
that will need to split in the next epoch ei+2.
Rounds
Each round has a fixed time duration of 5 seconds (might
suffer updates after several testnet confirmation stages). During
each round, a new block can be produced within every shard
by a randomly selected set of block validators (including one
block proposer). From one round to another the set is changed
using the eligible nodes list, as detailed in the chapter IV.
As described before, the reconfiguration of shards within
epochs and the arbitrary selection of validators within rounds
discourages the creation of unfair coalitions, diminishes the
possibility of DDoS and bribery attacks while maintaining
decentralization and a high transactions throughput.
2 Pruning
A high throughput will lead to a distributed ledger
that rapidly grows in size and increases bootstrapping cost
(time+storage), as highlighted in section XI.1.
This cost can be addressed by using efficient pruning
algorithms, that can summarize the blockchain’s full state in a
more condensed structure. The pruning mechanism is similar
to the stable checkpoints in pBFT [15] and compresses the
entire ledger state.
MultiversX protocol makes use of an efficient pruning
algorithm [7] detailed below. Let us consider that e is the
current epoch and a is the current shard:
1) the shard nodes keep track of the account balances of e
in a Merkle tree [44];
2) at the end of each epoch, the block proposer creates a
state block sb(a, e), which stores the hash of the Merkle
tree’s root in the block’s header and the balances in the
block’s body;
3) validators verify and run consensus on sb(a, e);
4) if consensus is reached, the block proposer will store
sb(a, e) in the shard’s ledger, making it the genesis block
for epoch e + 1;
5) at the end of epoch e + 1, nodes will drop the body of
sb(a, e) and all blocks preceding sb(a, e).
Using this mechanism, the bootstrapping of the new nodes
should be very efficient. Actually, they start only from the
last valid state block and compute only the following blocks
instead of its full history.
X Security Evaluation
1 Randomness source
MultiversX makes use of random numbers in its opera-
tion e.g. for the random sampling of block proposer and
validators into consensus groups and the shuffling of nodes
between shards at the end of an epoch. Because these features
contribute to MultiversX’ security guarantees, it is therefore
14
Fig. 10: Shuffling the nodes at the end of each epoch
important to make use of random numbers that are provably
unbiasable and unpredictable. In addition to these properties,
the generation of random numbers also needs to be efficient so
that it can be used in a scalable and high throughput blockchain
architecture.
These properties can be found in some asymmetric cryptog-
raphy schemes, like the BLS signing scheme. One important
property of BLS is that using the same private key to sign
the same message always produces the same results. This is
similar to what is achieved using ECDSA with deterministic
k generation and is due to the scheme not using any random
parameters:
sig = sk · H(m) (8)
where H is a hashing function that hashes to points on the
used curve and sk is the private key.
2 Randomness creation in MultiversX
One random number is created in every round, and added
by the block proposer to every block in the blockchain. This
ensures that the random numbers are unpredictable, as each
random number is the signature of a different block proposer
over the previous randomness source. The creation of random
numbers is detailed below as part of one consensus round:
1) New consensus group is selected using the randomness
source from the previous block header. Consensus group
is formed by a block proposer and validators.
2) The block proposer signs the previous randomness
source with BLS, adds the signature to the proposed
block header as new randomness source, then broadcasts
this block to the consensus group.
3) Each member of the consensus group validates the
randomness source as part of block validation, and sends
their block signature to the block proposer.
4) Block proposer aggregates the validators block signa-
tures and broadcasts the block with the aggregated block
signature and the new randomness source to the whole
shard.
The evolution of randomness source in each round can be
seen as an unbiasable and verifiable blockchain, where each
new random number can be linked to and verified against the
previous random number.
3 ”K” block finality scheme
The signed block at round n is final, if and only if blocks
n + 1, n+ 2, ..., n+ k are signed. Furthermore, a final block
cannot be reverted. The metachain notarizes only final blocks
to ensure that a fork in one shard does not affect other shards.
Shards only take into consideration the final metachain blocks,
in order to not be affected if the metachain forks. Finality and
correctness is verified at block creation and at block validation
15
as well. The chosen k parameter is 1 and this ensures forks
of maximum 2 blocks length. The probability that a malicious
super majority ( > 23 · n + 1) is selected in the shard for the
same round in the same consensus is 10−9, even if 33% of
the nodes from the shard are malicious. In that case they can
propose a block and sign it - let’s call it block m, but it will
not be notarized by the metachain. The metachain notarizes
block m, only if block m+ 1 is built on top of it. In order to
create block m+ 1the next consensus group has to agree with
block m. Only a malicious group will agree with block m, so
the next group must have a malicious super majority again.
As the random seed for group selection cannot be tampered
with, the probability of selecting one more malicious super
majority group is 10−9 (5.38 · 10−10, to be exact). The
probability of signing two consecutive malicious blocks equals
with selecting two subgroups with at least ( 23 · n + 1) members
from the malicious group consequently. The probability for
this is 10−18. Furthermore, the consequently selected groups
must be colluding, otherwise the blocks will not be signed.
4 Fisherman challenge
When one invalid block is proposed by a malicious majority,
the shard state root is tampered with an invalid result (after
including invalid changes to the state tree). By providing the
combined merkle proof for a number of accounts, an honest
node could raise a challenge with a proof. The honest nodes
will provide the block of transactions, the previous reduced
merkle tree with all affected accounts before applying the
challenged block and the smart contract states, thus demon-
strating the invalid transaction / state. If a challenge with the
proof is not provided in the bounded time frame, the block
is considered valid. The cost of one invalid challenge is the
entire stake of the node which raised the challenge.
The metachain detects the inconsistency, either an invalid
transaction, or an invalid state root, through the presented
challenges and proofs. This can be traced and the consensus
group can be slashed. At the same time the challenger can be
rewarded with part of the slashed amount. Another problem
is when a malicious group hides the invalid block from other
nodes - non-malicious ones. However, by making it mandatory
for the current consensus to propagate the produced block to
the sibling shard and to the observer nodes, the data cannot
be hidden anymore. The communication overhead is further
reduced by sending only the intrashard miniblock to the sibling
shard. The cross shard miniblocks are always sent on different
topics accessible by interested nodes. In the end, challenges
can be raised by multiple honest nodes. Another security pro-
tection is given by the setup of P2P topics. The communication
from one shard toward the metachain is done through a defined
set of topics / channels, which can be listened to by any
honest validator - the metachain will not accept any other
messages from other channels. This solution introduces some
delay in the metachain only in case of challenges, which are
very low in number and highly improbable since if detected
(high probability of being detected) the nodes risk their entire
stake.
5 Shard reorganization
After each epoch, less than 13 · n of the nodes from each
shard are redistributed uniformly and non-deterministically
across the other shards, to prevent collusion. This method adds
bootstrapping overhead for the nodes that were redistributed,
but doesn’t affect liveness as shuffled nodes do not participate
in the consensus in the epoch they have been redistributed.
The pruning mechanism will decrease this time to a feasible
amount, as explained in section IX.2.
6 Consensus group selection
After each round a new set of validators are selected using
the random seed of the last commited block, current round and
the eligible nodes list. In case of network desynchronization
due to the delays in message propagation, the protocol has
a recovery mechanism, and takes into consideration both the
round r and the randomness seed from the last committed
block in order to select new consensus groups every round.
This avoids forking and allows synchronization on last block.
The small time window (round time) in which the validators
group is known, minimizes the attack vectors.
7 Node rating
Beside stake, the eligible validator’s rating influences the
chances to be selected as part of the consensus group. If the
block proposer is honest and its block gets committed to the
blockchain, it will have its rating increased, otherwise, it’s
rating will be decreased. This way, each possible validator
is incentivized to be honest, run the most up-to-date client
software version, increase its service availability and thus
ensuring the network functions as designed.
8 Shard redundancy
The nodes that were distributed in sibling shards on the
tree’s lowest level (see section IV .4) keep track of each other’s
blockchain data and application state. By introducing the
concept of shard redundancy, when the number of nodes in
the network decreases, some of the sibling shards will need
to be merged. The targeted nodes will instantly initiate the
process of shard merging.
XI Understanding the real problems
1 Centralized vs Decentralized
Blockchain was initially instantiated as an alternative to
the centralized financial system of systems [45]. Even if the
freedom and anonymity of distributed architectures remains an
undisputed advantage, the performance has to be analyzed at
a global scale in a real-world environment.
The most relevant metric measuring performance is transac-
tions per second (TPS), as seen in Table 2. A TPS comparison
of traditional centralized systems with decentralized novel
architectures that were validated as trusted and efficient on
a large scale, reflects an objective yet unsettling reality [46],
[47], [48], [49].
16
Archi-
tecture Type Dispersion TPS(average) TPS(max limit)
VISA Distributedvirtualization Centralized 3500 55000
Paypal Distributedvirtualization Centralized 200 450
Ripple PrivateBlockchain Permissioned 1500 55000
NEO PrivateBlockchain Mixed 1000 10000
Ethereum PublicBlockchain Decentralized 15 25
Bitcoin PublicBlockchain Decentralized 2 7
TABLE 2: Centralized vs Decentralized TPS comparison
The scalability of blockchain architectures is a critical
but still unsolved problem. Take, for instance, the example
determining the data storage and bootstrapping implications of
current blockchain architectures suddenly functioning at Visa
level throughput. By performing such exercises, the magnitude
of multiple secondary problems becomes obvious (see Fig.
11).
XII The blockchain performance paradigm
The process of designing distributed architectures on
blockchain faces several challenges, perhaps one of the most
challenging being the struggle to maintain operability under
contextual pressure conditions. The main components that
determine the performance pressure are:
• complexity
• system size
• transaction volume
Complexity
The first element that limits the system performance, is the
consensus protocol. A more complicated protocol determines
a bigger hotspot. In PoW consensus architectures a big perfor-
mance penalty is induced by the mining complexity that aims
to keep the system decentralized and ASIC resilient [50]. To
overrun this problem PoS makes a trade-off, simplifies the
network management by concentrating the computing power
to a subset of the network, but yields more complexity on the
control mechanism.
System size
Expanding the number of nodes in existing validated archi-
tectures forces a serious performance degradation and induces
a higher computational price that must be paid. Sharding
seems to be a good approach, but the shard size plays a
major role. Smaller shards are agile but more likely to be
affected by malicious groups, bigger shards are safer, but their
reconfiguration affects the system liveness.
Transaction volume
With a higher relevance compared to the others, the last item
on the list represents the transaction processing performance.
In order to correctly measure the impact of this criteria, this
must be analyzed considering the following two standpoints:
• C1 transaction throughput - how many transactions a
system can process per time unit, known as TPS, an
output of a system [51];
• C2 transaction finality - how fast one particular trans-
action is processed, referring to the interval between its
launch and its finalization - an input to output path.
C1. T ransaction throughputin single chain architectures is
very low and can be increased by using workarounds such
as sidechain [52]. In a sharded architecture like ours, the
transaction throughput is influenced by the number of shards,
the computing capabilities of the validators/block proposers
and the messaging infrastructure [8]. In general, as displayed
in Fig. 13, this goes well to the public, but despite the
importance of the metric, it provides only a fragmented view.
Fig. 11: Storage Estimation - Validated distributed architectures working at an average of VISA TPS
17
Fig. 13: Transaction throughput
C2. T ransaction f inality- A more delicate aspect that
emphasizes that even if the system may have a throughput of
1000 TPS, it may take a while to process a particular transac-
tion. Beside the computing capabilities of the validators/block
proposers and the messaging infrastructure, the transaction
finality is mainly affected by the dispatching algorithm (when
the decision is made) and the routing protocol (where should
the transaction be executed). Most of the existing state of the
art architectures refuse to mention this aspect but from a user
standpoint this is extremely important. This is displayed in
Fig. 14, where the total time required to execute a certain
transaction from start to end is considered.
In MultiversX, the dispatching mechanism (detailed in sec-
tion V) allows an improved time to finality by routing the
transactions directly to the right shard, mitigating the overall
delays.
XIII Conclusion
1 Performance
Performance tests and simulations, presented in Fig. 12,
reflect the efficiency of the solution as a highly scalable
Fig. 14: Transaction finality
distributed ledger. As more and more nodes join the network
our sharding approach shows a linearly increasing throughput.
The chosen consensus model involves multiple communication
rounds, thus the result is highly influenced by the network
quality (speed, latency, availability). Simulations using our
testnet using worldwide network speed averages, at its maxi-
mum theoretical limit, suggest MultiversX exceeds the average
VISA level with just 2 shards, and approaches peak VISA level
with 16 shards.
2 Ongoing and future research
Our team is constantly re-evaluating and improving Mul-
tiversX’ design, in an effort to make this one of the most
compelling public blockchain architectures; solving scalability
via adaptive state sharding, while maintaining security and
high energy efficiency through a secure Proof of Stake consen-
sus mechanism. Some of our next directions of improvement
include:
1) Reinforcement learning: we aim to increase the ef-
ficiency of the sharding process by allocating the fre-
Fig. 12: Network throughput measured in transactions per seconds with a global network speed of 8 MB/s
18
quently trading clients in the same shard to reduce the
overall cost;
2) AI supervision: create an AI supervisor that detects
malicious behavioral patterns; it is still uncertain how
this feature can be integrated in the protocol without
disrupting the decentralization;
3) Reliability as a consensus factor: the existing protocol
weighs between stake and rating but we plan to add
reliability, as a metric that should be computed in a
distributed manner after applying a consensus protocol
on previously submitted blocks from the very recent
history;
4) Cross-chain interoperability: implements and con-
tribute to standards like those initiated by the De-
centralized Identity Foundation [53] or the Blockchain
Interoperability Alliance [54];
5) Privacy preserving transactions: use Zero-Knowledge
Succinct Non-Interactive Argument of Knowledge [55]
to protect the identity of the participants and offer
auditing capabilities while preserving the privacy.
3 Overall Conclusions
MultiversX is the first highly scalable public blockchain that
uses the newly proposed Secure Proof of Stake algorithm in
a genuine state-sharded architecture to achieve VISA level
throughput and confirmation times of seconds. MultiversX’
novel approach on adaptive state sharding improves on Om-
niledger’s proposal increasing security and throughput, while
the built-in automatic transaction routing and state redundancy
mechanisms considerably reduce latencies. By using a shard
pruning technique the bootstrapping and storage costs are
also considerably reduced compared to other approaches. The
newly introduced Secure Proof of Stake consensus algorithm
ensures distributed fairness and improves on Algorand’s idea
of random selection, reducing the time needed for the random
selection of the consensus group from 12 seconds to 100
ms. Our method of combining state sharding and the very
efficient Secure Proof of Stake consensus algorithm has shown
promising results in our initial estimations, validated by our
latest testnet results.
References
[1] G. Hileman and M. Rauchs, “2017 Global Cryptocurrency
Benchmarking Study,” Social Science Research Network, Rochester,
NY , SSRN Scholarly Paper ID 2965436, Apr. 2017. [Online]. Available:
https://papers.ssrn.com/abstract=2965436
[2] “The Ethereum Wiki - Sharding FAQ,” 2018, original-date: 2014-02-
14T23:05:17Z. [Online]. Available: https://github.com/ethereum/wiki/
wiki/Sharding-FAQ
[3] Y . Gilad, R. Hemo, S. Micali, G. Vlachos, and N. Zeldovich, “Algorand:
S프로젝트로 돌아가기