bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 4쪽 중 4쪽
of new
blocks, the blue score of the virtual node actually decreases. This
might have an adverse effect on the growth of the blue set, that is, of
the score of the honest network. This adverse effect is bounded by a
constant factor of
1− 2Dλk +2Dλ
which is already built intoδ in the
definition of the security threshold (1). That this is the appropriate
factor is exactly the statement of Lemma 9, which we now prove.
Lemma 9. The expected value of wH(t + r)− wH(t) is at least
(1−α)(1−δ) rλ.
13In the same sense that a random walk on Z which is biased to the left goes to−∞
exponentially fast. That is, if T is the transition operator and p is a finitely supported
distribution on Z, then for any N ∈ Z it holds that∥Π[N ,∞)T O(N)p∥1 = O(c N) for
some constant c < 1 (which is α1−α for a random walk which transitions right with
probabilityα < 1/2)
Proof. Assume that a block B was published that caused wH
to decrease. Let B′ be the honest selected tip right before B was
published. We must have that B′ ≮ B and that score(B) ≥
score(B′), then the reduction in score is at most the amount of
blocks in anticone(B′) that the virtual node considered blue before
B was discovered, and red after B was discovered. In particular,
any such block must have an anticone larger than k. If all blocks
are honest then the probability of this is at most δ; this follows
from Dmax ≥ D and from k(D,λ,δ) monotonically increasing in D.
This proves the theorem for the special case of an attacker which
indefinitely withholds their blocks.
To generalize to the adversarial setting, we need to argue the
most damage an attacker can cause to the blue score by withholding
blocks. Assume that at timet a block C was discovered that reduced
the blue score, and let B be the honest selected tip right before C
was published. If B <⋆ C then score(C) > score(B), contradicting
the hypothesis. It follows thatC→ B can only increasescore(C), so
we may assume without loss thatC̸→ B. It follows thatscore(C)≥
score(B), for else B would have remained the honest selected tip
and the score could not have decreased.
Let nB be the number of blue blocks in the anticone of B that
were in the honest blue when B was the selected tip, and let nC
be defined similarly for C, then the decrease in score is at most
nB− nC . However, note that if the selected chain ofC contains less
than k blocks above max(SelectedChain(B)∩ SelectedChain(C))
then nB≥ nC (as any block in anticone(B) could be a blue block,
up to k blocks), and the score actually did not decrease.
It follows that the adversary gains the most by publishing k + 1
blocks in the anticone of the selected parent such that the most
recent published block has score at least as large as that of the
selected parent. This will cause the honest network to switch a
chain, such that all the blocks in the anticone of the old selected
parent, except the k + 1 blocks published by the adversary, will be
considered red (as they are all in the anticone of the publishedk + 1
blocks, which are blue). On average, there are at most 2Dλ such
blocks, so that the adversary has managed to replace k + 2Dλ blue
blocks with k + 1 blue blocks.
This implies that the highest factor by which the adversary can
reduce the growth of the honest blue set is kk +2Dλ = 1− 2Dλk+2Dλ .
Letδ0 be the probability that a particular honest block has an
honest anticone larger than k. It follows that the expected value
of wH(t)− wH(s) is at least(1−α)(1−δ0)
1− 2Dλk +2Dλ
(t− s)λ >
(1−α)(1−δ)(t− s)λ, where the last inequality holds by equation 2
in the definition of k. □
Freeloading and Bounded Advantage. In this section we prove
Lemma 10, by a reduction to the analysis carried in [18]. The main
challenge in this reduction is that the attacker may use the work
done by the honest network to boost the score of their competing
chain, by including honest blocks in the blue set of the chain tip.
We call this phenomenon freeloading, more formally:
Definition 11. We say that C ∈A is freeloading off B∈H if
B∈ BlueSet(C), and C′ <⋆ C implies B < BlueSet(C′).
It turns out that the advantage an attacker can gain by
freeloading is bound by a constant depending only on system
parameters.
, , Yonatan Sompolinsky, Shai Wyborski, and Aviv Zohar
Lemma 12 (The Freeloader Bound). If C is freeloading off B then
score(C)≤ score(B) + 4k.
Proof. First note that if C ⇒ B then score(C)≤ score(B) + k,
as GHOSTDAG does not add more than k blue blocks to C’s blue
set over that of its selected parentB. We subsequently treat the case
where C̸⇒ B. Let D <⋆ C be maximal such that D < B (this set
is not empty as it contains the genesis block).Then score(B) >
score(D). We show below that score(C)− score(D) ≤ 3k + 1
and conclude that score(C)≤ score(B) + 3k. Note the following
observations:
• score(C)− score(D)≤| BlueSet(C)\ past(D)|,
• BlueSet(C)\ past(D)⊂D 1∪D 2∪D 3∪D 4 where:D1 =
past(C)∩ f uture(B),D2 = past(B)∩ f uture(D), andD3 =
past(C)∩ anticone(B).
• SelectedChain(C)∩ f uture(D) ,∅: the contrary implies
that C→ D. However, that B < C implies that there is some
C → B′ such that B ≤ B′. But score(B′) ≥ score(B) >
score(D), which implies C̸⇒ D, contradicting D <⋆ C.
Now, let E1, E2 be the maximal and minimal elements of
SelectedChain(C)∩ f uture(D) respectively. If it does not hold that
C ⇒ E1 then there must be a block between them, contradicting
the maximality of E1. Similarly, E2 ⇒ D. IfD1 intersects past(E1)
then B < E1, contradicting the minimality of C. Assume D1 ∈
D1∩ f uture(E1), then score(E1) < score(D1) and since D1 < C
we get that C ̸⇒ E1, which is a contradiction. Similarly, if D2
intersects f uture(E2) then the maximality ofD is contradicted, and
ifD2 intersects past(E2) then E2 ⇒ D is contradicted. HenceD1⊂
anticone(E1),D2⊂ anticone(E2) andD3⊂ anticone(B) where it
holds that E1, E2, B∈ BlueSet(c). Therefore|Di∩ BlueSet(C)|≤ k
for i = 1, 2, 3, and since BlueSet(C)∩( past(B)∪{ B})⊂D 1∪D 2∪
D3∪{ B} it follows that|BlueSet(C)\ past(D)|≤ 3k + 1. Hence
score(C)− score(D)≤ 3k + 1, whereby score(C)≤ score(B) +
3k. □
Lemma 10 The advantage adv(t) is upper bounded by a stochastic
process which admits a stationary distribution with an exponentially
decaying tail.
Proof. The work in [ 18] contains an analysis of the
premining process, i.e., the maximal advantage of the
attacker over an honest block, in a block race; formally:
adv′(t) := maxC∈[0,t]{ f uture(C)∩A− f uture(C)∩H} (the
notation adv′(t) does not appear therein). In contrast, we are
interested in the processadv(t) = wA(t)− wH(t), which is similarly
bounded: adv(t) = score(C)− score(V) where C is the selected tip
of the attacker and V is the virtual block of the honest node. Let D
satisfy that D≤⋆ C and D <⋆ V (such an element must exist, e.g.
the genesis element). Then
adv(t) =|BlueSet(C)|−| BlueSet(V)|
=|BlueSet(C)\ past(D)|−| BlueSet(V)\ past(D)|
≤ max
C′
|BlueSet(C)\ past C′|−| BlueSet(V)\ past C′|
The analysis of the last term is similar to the analysis of adv′(t)
with two deviations: First, the growth rate of the honest network’s
blue score is not(1−α) rather(1−α)(1−δ) as proven in Lemma 9.
This has no qualitative effect on the analysis, it merely implies
that the stationary distribution is governed by an exponent with
base α(1−α)(1−δ) rather than α(1−α) . Secondly, the analysis therein
assumes that no freeloading occurs. Fortunately, the Freeloader
Bound guarantees that if the selected tip at time t was freeloading,
adv(t) is bounded by a constant 3k. Therefore, by assuming the
attacker always manages to saturate this constant, so that their
advantage never goes below 3k, we can shift the process adv′(t)
by 3k and analyze it as a block race, utilizing the result from [18].
□
The Markovian Process. In this section we prove the existence
of the Markovian process described in Lemma 8. In order to do
so, it is illuminating to first consider how one might prove the
liveness property of GHOSTDAG in the non-adversarial setting. In
this setting, it is easiest to demonstrate liveness by the emergence
of so called hourglass blocks.
Definition 13. A block B discovered in time t is called an hourglass
block if it is the only block discovered between t− 2D and t + 2D.
Lemma 14. In the non-adversarial setting where all miners are
honest, if an honest hourglass block was created at time t, then the
ordering of blocks created before t will remain unchanged after t.
Proof. Let B be the hourglass block created at time t. If B′ was
created before t, then by hypothesis it was created beforet− 2D, so
by the definition of D it follows that B′∈ past(B) (as all miners are
assumed to be honest). Similarly, if B′′ was created after t it was
created after t + 2D and is therefore in f uture(B). It follows that
B’s anticone is empty, or equivalently that B <⋆ B′′ for any B′′
created after B. Hence, the ordering over all blocks in created before
t is precisely the ordering induced by B, which is deterministic and
does not change. □
Corollary 15. In the non-adversarial setting where all miners are
honest, the probability that the ordering between two blocks created
before time t will change at time t + r decays exponentially with r .
Proof. Let B, C be two blocks created before timet. At any point
in time after t, the probability of the event Et where the next block
will be an hourglass block is some positive constant C depending
only on the system parameters; moreoever, the events Et and Es
are independent as long as |s− t| > 2D. As r grows,|[t, t + r]|
approaches r·λ exponentially fast. In particular, as r grows, with
high probability (i.e., apart from a term inO(e−F·r)) there’s a set
of blocks S of size at least r· f such that any two blocks in the set
were created at least 2D seconds apart (F is some positive integer,
0 < f < 1 is some positive constant). Since the events where blocks
in S are hourglass blocks are mutually independent, we get that
the probability that none of them is an hourglass block is at most
(1− c)f·r . □
In the adversarial setting, hourglass events are not enough to
secure the ordering. If the honest network posts an hourglass block
B, the adversary could "undo" it by posting a block in the anticone
of B. Honest blocks created after B might include this block in
their blue set, thus making the ordering of blocks in the past of B
uncertain again. Overcoming this requires a more specific event: we
require that the honest network created a chain of several blocks
PHANTOM GHOSTDAG
A Scalable Generalization of Nakamoto ConsensusNovember 10, 2021 , ,
while the adversary has produced none14. We call such an event a
burst, and the blocks in the chain theburst blocks. We want to assure
that the probability that the honest network is never convinced
by a block whose selected chain does not include any of the burst
blocks is bounded from below by some positive constant depending
only on system parameters. In the following lemma, we prove that
the amount of burst blocks required to achieve this depends only
on system parameters and on adv(t) where t is the time the burst
started.
Lemma 16. For any Z , there exists a constant time length s
depending only on Z and system parameters, such that for any t
there exists an event Dt ,Z which, if adv(t)≤ Z , implies that there
exists a block B created before t + s such that for the attacker to
create a block C which satisfies that B ≮⋆ C and adv(C)≥− 2k they
must win a block race starting with advantage −1. Furthermore, the
probability of Dt ,Z is bounded from below by a constant depending
only on Z and system parameters.
Proof. The event Dt ,Z is the event that no blocks were created
during the first 2D seconds, after which the honest network created
Z′ + 3k + 2 blocks arranged in a chain, while the attacker created
none, after which no blocks were created for 2D seconds, where
Z′ = max Z, k + 1. Assume furthermore that the entire event lasted
at most s =(2Z′ + 3k + 2)/αλ + 4D seconds (any s > 4D would
work, but this choice of s is reasonable as the probability for such
an event lasting longer decreases exponentially with Z). Finally, let
B the 3k + 2 from last block created in the event. We immediately
note that the independence of Dt ,Z and Dt +s ,Z is true by design.
We call this event a burst and the blocks created during the event
burst blocks.
Let C0 be an attacker block created after t + s such that B ≮⋆ C0
and the selected parent of C0 was created before t + s. Let C =
max(SelectedChain(C0)∩A) , then adv(C)≤ Z and in particular
score(B) > score(C). Let B′ be a burst block created after B and
assume that C∈ SelectedChain(B′), this implies thatB <⋆ B′ since
if C was discovered after B was created then any burst block would
choose the previous burst block (which has score at least score(B))
over C as a selected parent.
This implies that all burst blocks created after B are in the
anticone of C0. Let B′ be the latest burst block. It follows that
score(C0) ≤ score(B) + k so score(B′) ≥ score(B) + 2k + 1 ≥
score(C0) + k + 1. In particular, adv(C0)≤−( 2k− 1).
Let E be a block created after t + s which freeloads off D ∈
f uture(c0), but such that no block in SelectedChain(E) freeloaded
off a block in f utureC 0.
Let E′ be an element ofpast(D)∩A of maximal score (this set is
not empty as it contains the genesis block). Ifscore(E)−score(E′) >
k then there are more thank blocks in BlueSet(E)\ past(D), which
contradicts that D∈ BlueSet(C). Hence score(E)− score(E′) < k.
Note that score(E′) > score(E)− k > score(D)− k. So
adv(E′)≥ score E′−( score(D) + k)
≥ score E′− score(E)− k≥− 2k
14Note that this is not a necessary condition for the network to converge, hence the
constants which follow from the analysis are far from tight.
Since adv(C)≤−( 2k− 1) and no block below E freeloaded, this
implies that the attacker has won a block race with starting with
advantage−1.
□
We now prove Proposition 8, thereby concluding the proof of
Theorem 7.
Proposition 8 Assume that B convinced the network at time t,
then advB(t) is bound from above by a Markovian process on Z which
goes to−∞ exponentially fast.
Proof. Let Bt be the event that both Dt ,Z and adv(t)≤ Z hold.
Lemma 10 implies that the probability of adv(t)≤ Z is bound by a
constant depending only on system parameters, while Lemma 16
states that the probability of Dt ,Z depends only on Z. It is evident
from the construction ofDt ,Z that it depends only on blocks created
after t while adv(t)≤ Z depends only on block created aftert, hence
these events are independent, so the probability of their intersection
is also bound by a constant.
In order to construct M we construct another process M′ on
Z×{ 0, 1} where the{0, 1} part keeps track on whether the attacker
is in the condition described in Lemma 16. This means that as
advb <−k, the attacker is in a block race. M is then defined as the
projection of M′ on Z. From Lemma 9 it follows that the honest
chain grows at a rate of(1−α)(1−δ) while the attacker chain grows
at rateα. Letα′ = α1−δ . This renormalizes things such that if the
attacker does not freeload the advantage is modeled as a walk on
Z which transitions right with probabilityα′. We define transition
probabilities of the state(n, i):
• If n > Z then the process transitions to (n + 1, i) with
probabilityα′ or to(n− 1, i) with probability 1−α′
• If−2k ≤ n < 3k then the attacker may freeload, we
assume that it always manages to do so and always gains
the maximal advantage of 3k, so(n, i) transitions to(3k, 1)
with probability 1
• If 3k≤ n < Z then let p the probability of Bt , the process
transitions to(n + 1, i) with probabilityα′p, to(n− 1, i) with
probability(1−α′)p, or to(−k− 1, 0) with probability p
• If n < −2k and i = 1 we also assume that the attacker
manages to steal a block to gain the highest possible
advantage, so the process always transitions to(3k, 1)
• Finally, if n <−2k and i = 0 then the attacker is not able
to freeload as long as n stays below−2k, so the process
transitions to(n + 1, 0) with probabilityα′ or to(n− 1, 0)
with probability 1−α′.
Note that the state (−(2k + 1), 0) transitions to(−2k, 0) with
probabilityα′ from which it transitions to(3k, 1) with probability 1.
It is true by design that this process bounds the attacker advantage
from above in the case where they insists not to include B in their
selected chain (since all deviations from any actual process which
is induced by any attacker strategy are positive), and that M goes
to−∞ exponentially fast.
□
REFERENCES
[1] Bitcoin’s relay network stats. http://bitcoinfibre.org/stats.html. Accessed:
2020-01-20.
[2] Kaspa github repository. https://github.com/kaspanet/kaspad/.
, , Yonatan Sompolinsky, Shai Wyborski, and Aviv Zohar
[3] Kaspa graph inspector (testnet). http://kgi-testnet.daglabs-dev.com/.
[4] Kaspa katnip block explorer (testnet). http://testnet.katnip.sh/.
[5] Kaspa performance dashboard (testnet). http://kasboard-testnet.daglabs-dev.
com/.
[6] Vivek Bagaria, Sreeram Kannan, David Tse, Giulia Fanti, and Pramod Viswanath.
Prism: Deconstructing the blockchain to approach physical limits. In Proceedings
of the 2019 ACM SIGSAC Conference on Computer and Communications Security ,
pages 585–602, 2019.
[7] Ittay Eyal, Adem Efe Gencer, Emin Gün Sirer, and Robbert Van Renesse.
Bitcoin-ng: A scalable blockchain protocol. In 13th USENIX Symposium on
Networked Systems Design and Implementation (NSDI 16) , pages 45–59, 2016.
[8] Matthias Fitzi, Peter Gazi, Aggelos Kiayias, and Alexander Russell. Parallel
chains: Improving throughput and latency of blockchain protocols via parallel
composition. IACR Cryptology ePrint Archive, 2018:1119, 2018.
[9] Juan Garay, Aggelos Kiayias, and Nikos Leonardos. The bitcoin backbone
protocol: Analysis and applications. In Annual International Conference on the
Theory and Applications of Cryptographic Techniques , pages 281–310. Springer,
2015.
[10] Michael R Garey and David S Johnson. Computers and intractability, volume 29.
wh freeman New York, 2002.
[11] Aggelos Kiayias and Giorgos Panagiotakos. On trees, chains and fast transactions
in the blockchain. Cryptology ePrint Archive, Report 2016/545, 2016.
[12] Yoad Lewenberg, Yonatan Sompolinsky, and Aviv Zohar. Inclusive block chain
protocols. In International Conference on Financial Cryptography and Data
Security, pages 528–547. Springer, 2015.
[13] Chenxing Li, Peilun Li, Dong Zhou, Wei Xu, Fan Long, and Andrew Yao. Scaling
nakamoto consensus to thousands of transactions per second. arXiv preprint
arXiv:1805.03870, 2018.
[14] Rafael Pass, Lior Seeman, and Abhi Shelat. Analysis of the blockchain protocol
in asynchronous networks. IACR Cryptology ePrint Archive, 2016:454, 2016.
[15] Rafael Pass and Elaine Shi. Hybrid consensus: Efficient consensus in the
permissionless model, 2016.
[16] Joseph Poon and Thaddeus Dryja. The bitcoin lightning network: Scalable
off-chain instant payments. Technical Report (draft), 2015.
[17] Meni Rosenfeld. Analysis of hashrate-based double spending. arXiv preprint
arXiv:1402.2009, 2014.
[18] Yonatan Sompolinsky, Yoad Lewenberg, and Aviv Zohar. Spectre: A fast and
scalable cryptocurrency protocol. IACR Cryptology ePrint Archive , 2016:1159,
2016.
[19] Yonatan Sompolinsky and Aviv Zohar. Secure high-rate transaction processing in
bitcoin. In International Conference on Financial Cryptography and Data Security ,
pages 507–527. Springer, 2015.
[20] Haifeng Yu, Ivica Nikolic, Ruomu Hou, and Prateek Saxena. Ohie: Blockchain
scaling made simple. arXiv preprint arXiv:1811.12628, 2018.프로젝트로 돌아가기