bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 6쪽 중 5쪽
h its private key.
7.3 Accountable safety
The computation node participating in the computation has to put up a stake in order to participate
in a computation task.
We require the staking value to be:
x =max(computationstake,intelvaluestake )·securitymultiplier
where:
computationstake = (totalcomputationresourcesestimated )∗ (n− 1)
and Securitymultiplier can be a constant determined by the network
There are several ways to break the protocol and be a malicious node. Each case is listed and we
will analyze how our system can handle such behavior.
26
7 CRYPTOECONOMICS
Not following the circuit : functions are compiled in an arithmetic circuit for the nodes to
compute jointly. If a node does not follow the instruction, the result will be incorrect. However,
since we require MAC as a proof of computation, and the proof is tightly linked to the computation
process, we can immediately tell if the result deviates from the assigned function by verifying the
MAC all together. Using MPC validation, there is actually no point of doing so. Another argument
of not doing so is that, since the computation is heavy, it makes more sense to just abort the task if
one wants to sabotage the computation, in which case we will refer to case 4).
Sending out incorrect result: as detailed in MAC session, it is impossible to send the wrong
value with the correct MAC, as the MAC is paired with the result and can be detected.
Sending out incorrect MAC: the MAC cannot pass the validation process and there is no benefit
of doing so.
Abort attack: similar to DoS (Denial of Service) attack, the node simply stops in the middle of the
collaborative computation. Under such case, we can set up a timeout parameter for the computation
task. If one party in the computation task fails to return before the timeout, then the task can
be deemed as failure. The party then should compensate others the cost of computation resources
already spent in the task. A stake larger than (totalcomputationresourcesestimated )·(n−1) should
be required at the election phase to prevent abort attack.
Stealing the data: MPC is designed to deal with this problem how to compute a function with
distrusted parties without leaking the data. Our MPC protocol is designed to be secure up to n− 1
colluded parties. In our case, in addition to the original n party who agreed to compute, we will also
select m additional random nodes to increase the security. One has to collude all n +m parties to
steal information. This is impossible because the original data owner cannot be colluded.
In sum, our staking mechanism is designed in such a way that, it is in the best interest of each
participant to follow the protocol. This is due to the greatest benefit of the malicious action being
lesser than the greatest expected loss of following the protocol.
7.4 Uncoordinated majority
We assume that all nodes are rational in a game-theoretic sense, but no more than some fraction
(often between 25% and 50%) are capable of coordinating their actions. The Proof-of-Work in Bitcoin
with Eyal and Sirer’s selfish mining fix is robust up to 50% under the honest majority assumption,
and up to 23.21% under the uncoordinated majority assumption[16].
Under ARPA’s MPC framework, witht−1 unconditional security, coordinated majority is unreal-
istic, because the . Because the colluded party needs to collude almost all nodes to be able to control
the network. See Table 4, where a coordinated attack requires all parties in a MPC computation to
be colluded. With even 95% of the nodes are colluding together, they still have less than 1% chance
to be able to break the security protocol.
Clearly, it is unrealistic to make economical benefit when 95% nodes are from the same party.
Because it is virtually hosting a private network and hope to steal token issued on its own.
In addition, in most cases, the data provider will be a part of the MPC group. And because the
data provider will not collude with others, there is zero chance that the colluding parties will break
the protocol and get the secrets.
Similar to PoW, joining a MPC network requires a decent computer in order to be able to earn
reward on MPC tasks. This investment prevents attacker to flood the network with virtual nodes.
27
7 CRYPTOECONOMICS
Coordinated% Quorun Chance
50% 100 0.00%
60% 100 0.00%
70% 100 0.00%
80% 100 0.00%
90% 100 0.00%
95% 100 0.59%
98% 100 13.26%
99% 100 36.60%
Table 4: Coordinated chance
7.5 Bribing attacker model
Attacker is motivated to make the network fail in some way. Attacker can be one of the participants,
or the attacker can sits outside the protocol, and has the ability to bribe any participants to change
their behavior. Attackers are modeled as having a budget, which is the maximum that they are
willing to pay, and we can talk about their cost, the amount that they end up paying to disrupt the
protocol equilibrium.
As discussed at section 6.2, the participating nodes are selected at random, and the selected party
will not be publicly known until they have completed the computation. Therefore, there is no target
for the attacker to bribe with.
Without a bribing target, an attacker needs to bribe more than 95% nodes to make a substantial
impact on the network. Even the attacker can wait passively until the chance to appear, the cost
to bribe the whole network is much more than a reasonable attacking budget and thus rendered
unrealistic.
With a proper penalty designed, a hidden bribing target, and a high threshold to bribe the whole
network, ARPA’s network can still be secure under this security model.
7.6 Consensus Algorithm
The blockchain consensus algorithm mainly solves two problems - who is responsible for mining the
block and what to do when there is a fork. Difficulties usually lie on how to solve the fork, that is,
when there are two or more legitimate forks, how to let everyone agree on one chain and continue,
which requires a unified standard of judgment. Nakamoto consensus chooses the most expensive fork
with the highest cost, and verification of the most expensive chain has to be objective and verifiable,
which is, the Proof-of-Work. It does not mean that there is only one way to solve the fork. Such as
God’s dice, where everyone agrees on the fairness of the dice. Whenever there is a fork, the dice can
decide on a fork. This consensus can also ensure the normal operation of the blockchain system.
How to design a practical and verifiable fair random number generator based on the blockchain
has become an important research problem in recent years. There were programs Randao proposed
by Vitalik Buterin[40], some DApps that used Oraclize to obtain the random numbers from the
off-chain service, to implement a blockchain random number generator. The Ethereum Foundation
also listed random number generation on the blockchain as an important issue to be researched for
the next 2 to 3 years[15] and invited all parties to participate on a solution.
In ARPA’s network, consensus is designed with a two step development plan. Phase 1 is a PoW
consensus scheme, where a new block is found and broadcast by a mining node who find a hash
result satisfying the nonce of the network. A phase 2 consensus is reached by a lottery system, where
participants purchase tickets a few blocks ahead to enter the candidate pool. At block creation
28
7 CRYPTOECONOMICS
time, the candidates together calculate a pseudo-random function, using block header and other
transitional information as the seed for the random function.
7.6.1 Nakamoto Consensus
ARPA is dedicated to make a general-purpose secure computation network available for the first
time in history. While Proof-of-Work consensus is known for its waste of energy, its stableness and
secureness are still being recognized and used in most major blockchain networks.
At the beginning of our development phase, ARPA’s team will focus on solving the cryptographic
challenges in MPC protocols and computation layers of the network. Rather than being innovative
at every corner of our first release, a decent and proven version consensus algorithm will be used at
our first release of mainnet. Therefore, a Proof-of-Work consensus algorithm will be chosen so that
we can spend more efforts to the development of secure computation layer and make it really robust.
We will use multiple hashing functions at random to prevent ASIC chips mining in our network,
because we prefer participating nodes joining ARPA to have decent computing power using CPUs
(the capability desired by MPC). Choosing hashing function randomly at each block guarantees that
the mining nodes would be able to conduct general-purpose computation with the capability of CPUs,
one that cannot be reached by ASIC chips.
7.6.2 Lottery Consensus
The pseudo-random function must have the following characteristics: deterministic, provability, un-
controllability, unpredictability and Tamper-resistant to attacks.
• Deterministic: given all information revealed, the result will be determined and unique.
• Provability: The result can be validated by anyone after the information was revealed.
• Uncontrollability: The result cannot be influenced by anyone, or a partially colluded group.
• Unpredictability: Using transitional information such as block header, time, participants ad-
dress, will result unpredictable random result.
• Tamper-resistant: The result cannot neither be calculated ahead of time, nor be forged with
huge amount of computation power.
• Privacy: The random result is opened but only the winner knows he won the lottery. Therefore
the attacker doesn’t know the target until the winner broadcasts the signed validation.
Several choices for random generator are: RANDAO, BLS-based multisig, or Secret-sharing based
pseudorandom. All can achieve the desired characteristics mentioned above. Our protocol is designed
as follows: At block time t, the nodes who want to become the validator, purchase a ticket to be
eligible and submit a hash proof. At time t +x, where x is the waiting period, each party generates
pi corresponded to the hash committed before. We formally describe the procedure in Alg.6
Algorithm 6 Decentralized Random Function
Method:
1: Decide n participants in the game
2: pi← sha3(si): Output a hash value by random value si, related
to transnational information.
3: P← ∑pi: Open value P and reveal secret si
4: 0/1← Ver(s1,s 2...s i): Check if the Commit on si is correct.
The result of P is valid if honest check is passed for everyone.
29
8 EXPERIMENTS
If the authentication check passed, we calculater =RMODn , and obtain the randomly selected
group of nodes. One of the nodes will become theprover, and the rest will become thevalidator. The
prover will create a block containing all recent valid transactions, and the validator will challenge
the prover by checking the validity of the new block. If prover failed to create a valid block, it will
lose its deposit. Otherwise, the prover will be rewarded with a small fee, along with the ticket price.
7.7 Token Usage
ARPA tokens, the native token for ARPA, perform five interconnected and critical functions within
the ecosystem, over dispersed, dynamic networks:
Medium of Exchange all transactions within ARPA computation network use ARPA tokens as
the medium of exchange for services. For example, data providers receive token payment from data
consumers, while model providers receive token payment from data owners
Computing Cost ARPA tokens are exchanged to perform secure multiparty computation and
compensate for computation providers. Computation cost is measured in triples used during the
process and other factors
Stake computational power providers will use the ARPA token as a form of safety deposit for
launching and fulfilling computation jobs. Abort during computation and other malicious actions
result in loss of stake. This will ensure fairness for all parties and limit misuse of ARPA by bad
actors
Transaction Fee similar to gas fee on Ethereum, ARPA tokens are paid to nodes facilitating the
transaction as a fee
Backing of Data or Model all audiences of ARPA’s network, ranging from normal crypto audiences
and network stakeholders to professional investment entities, can back public data or model following
Additive Backing System. Additive Backing System broadens ARPA’s audiences and incentivizes
early adopters and backers of ARPA’s data marketplace.
8 Experiments
Various experiments are conducted in privacy-sensitive applications, like auction or machine learning.
The performance of the practical results shows that under suitable optimization and diligent function
compilation, the overhead caused by computation and communication can be largely mitigated. With
such effort, the security and privacy brought by MPC is worth the price of only 2-3 magnitudes of
additional computation power.
8.1 Vickrey Auction
As for the high party number case, a secure Vickrey second price auction is implemented on AWS
instances, where 100 parties input one bid each. The auction system will reveal the winning bidder
and the second-high bid. The Vickrey auction requires 44,571 triples. The performance is listed in
Table 5.
Party number Offline phase Online phase
100 98 s 1.4 s
Table 5: Vickrey Auction Performance
To make it more general. An evaluation experiment on different circuit depth and party numbers
is performed. The underlying field is set as 61-bit Mersenne field, security is approximately 260.
The test is done for different numbers of parties on a series of circuits of different depths, each with
30
8 EXPERIMENTS
1,000,000 multiplication gates, 1,000 inputs wires, 50 output wires. The circuits had 4 different
depths: 20, 100, 1,000 and 10,000. The experiment was run on AWS in a local network configuration
in North Virginia region AWS. Each party was run in an independent AWS C4.large instance (2-core
Intel Xeon E5-2666 v3 with 2.9 GHz clock speed and 3.75 GB RAM). Each execution (configuration,
number of parties, circuit) was run 5 times, and the result reported is the average run-time. The
computation overhead is depicted in Figure 11
Figure 11: Computation overhead in Vickrey Auction
8.2 Deep Learning
We will describe the implementation of Convolutional Neural Networks (CNNs) using MPC. The
biggest problem here, when training large neural networks, might be the maturity and availability of
arbitrary precision arithmetic on GPUs. Although some hope exists, this area is still under developed
and needs further exploration. In this experiment we will still use CPU as an execution environment.
Our MPC approach uses secret-sharing to mask the values used in the computations. This allows for
arithmetic circuit evaluation, which is greatly more efficient for training neural nets. Both the ReLU
and max pooling are nonlinear operations, which are expensive to compute in MPC. Therefore, the
ReLU is approximated using a polynomial and the max pooling is replaced by average pooling. A
simple implementation of a convolutional layer can be found here, which is used as a basis for our
implementation.
1 def conv2d (x , filters , strides , padding ) :
2 # shapes , assuming NCHW
3 h_filter , w_filter , d_filters , n _f il te rs = filters . shape
4 n_x , d_x , h_x , w_x = x . shape
5 h_out = int (( h_x - h_filter + 2 * padding ) / strides + 1)
6 w_out = int (( w_x - w_filter + 2 * padding ) / strides + 1)
7
8 X_col = x . im2col ( h_filter , w_filter , padding , strides )
9 W_col = filters . t ran sp os e (3 , 2 , 0 , 1) . reshape ( n_filters , -1)
10 out =
11 W_col . dot ( X_col ) . reshape ( n_filters , h_out , w_out , n_x ) . tr an sp os e (3 , 0 , 1 , 2)
12 return out
Listing 2: Convolutional Neural Networks (CNNs) with MPC
For the dot products, specialized triples are created, ensuring that every value used in a dot
product is only masked once. And for the convolution for which holds: im2col(A)·B =C. Therefore,
31
9 ECOSYSTEM & APPLICATIONS
only a masked version of both the inputs (masked with A) and the weights (masked with B) are
communicated, without any duplicates.
Reusing triples When a variable A is used in two operations with B and C to create D and E,
we can create triples such that: operation1(A,B ) =D and operation2(A,C ) =E. In the backward
phase the error is typically used in two operations: once to compute the backpropagation error, for
the previous layer, and once to compute the weight updates. Moreover, both the weights and the
layer inputs have been used already in operations in the forward phase to compute the layer output,
and can therefore be reused in the backward phase. To gain insight, we compare the number of
values communicated per participant in one iteration for a batch size of 128 images from MNIST
of a simple two layer convnet with the optimized version. For the baseline, the backward phase is
more expensive than the forward phase. For the optimized model, it is the other way around. This
is mainly because we can reuse the masks created in the forward phase.
Layer Forward Backward Total Forward Backward Total
conv2D(32,3,3) 903K 4,114K 5,018K (17%) 101K 803K 903K (18%)
avg pooling2D(2,2) - - - - - - - -
ReLU(approx) 3,211K 3,211K 6,423K (22%) 1,606K 803K 2,408K (47%)
conv2D(32,3,3) 7,235K 8,840K 16,075K (54%) 812K 201K 1,013K (20%)
avg pooling2D(2,2) - - - - - - - -
ReLU(approx) 803K 803K 1,606K (5%) 401K 201K 602K (12%)
dense(10,1568) 216K 219K 435K (1%) 216K 1K 218K (4%)
total 12,368K 17,188K 29,556K (100%) 3,136K 2,008K 5,144K (100%)
Table 6: Communicated number of 128-bit values per iteration in the double conv layer architecture
9 Ecosystem & Applications
In this section we discuss how business logic and applications can be built when secure computation
is available. This can happen either on other blockchain system with the ARPA system enabled, or
directly on ARPA’s own blockchain.
9.1 Design
Developers can leverage ARPA to protect dApp data privacy and build privacy-preserving dApps,
free of cryptography knowledge.
ARPA’s secure computation also allows data to be shared without disclosing the raw data to
anyone during data-at-use. ARPA can potentially disrupt the whole data industry by eliminating
trust issues and data intermediaries within: finance, healthcare, IoT, retail, energy sectors, and other
sectors where data is a valuable and sensitive asset to enterprises and individuals.
A reputation system is established on our data marketplace scenario, where data providers are
able to sell data value without disclosing the raw data, and a data consumer can discover and use
the data without signing an NDA contract with the data provider.
A node’s reputation increases by being a reliable and responsible computation provider, and this
reputation is permanently logged on the blockchain. After each transaction, each party can leave a
review about data quality and model training results. Good reputation attracts more buyers and
business, increasing the number of backers (we will discuss the incentive system later).
32
9 ECOSYSTEM & APPLICATIONS
9.2 Participants
9.2.1 Computation Nodes
Computation nodes supply computing power and storage for multiparty computation. Computation
nodes have to put up a safety deposit of ARPA’s token(s) for computation tasks based on projected
triple consumption. In case of abort, the node’s safety deposit is compensated to other nodes in the
same MPC task, as well as, to the next group of nodes performing the same task.
Computation nodes have the following attributes:
• Strong computing power to ensure fast triples generation during the data pre-processing phase
of multiparty computation
• High availability and uptime during online computation, guaranteed by node’s stakes
• Fast and reliable internet connection, governed by the node’s stakes
9.2.2 Data Providers
Data providers can be either individuals, enterprises, research institutions, financial, and medical
institutions that possess valuable but under-utilized data. ARPA enables data providers to securely
monetize their data with privacy-preserved co프로젝트로 돌아가기