bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 7쪽 중 6쪽
oof-of-validity, via
the peer network.
For its trouble, it collects all fees relating to the trans-
actions it includes. Various economics float around this
arrangement. In a heavily competitive market where there
is a surplus of collators, it is possible that the transaction
fees be shared with the parachain validators to incentivise
the inclusion of a particular collator’s block. Similarly,
POLKADOT: VISION FOR A HETEROGENEOUS MUL TI-CHAIN FRAMEWORK DRAFT 1 17
some collators may even raise the required fees that need
to be paid in order to make the block more attractive to
validators. In this case, a natural market should form
with transactions paying higher fees skipping the queue
and having faster inclusion in the chain.
6.8. Networking. Networking on traditional blockchains
like Ethereum and Bitcoin has rather simple requirements.
All transactions and blocks are broadcast in a simple undi-
rected gossip. Synchronisation is more involved, especially
with Ethereum but in reality this logic was contained in
the peer strategy rather than the protocol itself which re-
solved around a few request and answer message types.
While Ethereum made progress on current protocol of-
ferings with the devp2p protocol, which allowed for many
subprotocols to be multiplexed over a single peer connec-
tion and thus have the same peer overlay support many
p2p protocols simultaneously, the Ethereum portion of
the protocol still remained relatively simple and the p2p
protocol as a while remains unfinished with important
functionality missing such as QoS support. Sadly, a de-
sire to create a more ubiquitous “web 3” protocol largely
failed, with the only projects using it being those explicitly
funded from the Ethereum crowd-sale.
The requirements for Polkadot are rather more sub-
stantial. Rather then a wholly uniform network, Polkadot
has several types of participants each with different re-
quirements over their peer makeup and several network
“avenues” whose participants will tend to converse about
particular data. This means a substantially more struc-
tured network overlay—and a protocol supporting that—
will likely be necessary. Furthermore, extensibility to fa-
cilitate future additions such as new kinds of “chain” may
themselves require a novel overlay structure.
While an in-depth discussion of how the networking
protocol may look is outside of the scope of this docu-
ment, some requirements analysis is reasonable. We can
roughly break down our network participants into two sets
(relay-chain, parachains) each of three subsets. We can
also state that each of the parachain participants are only
interested in conversing between themselves as opposed to
participants in other parachains:
• Relay-chain participants:
• Validators: P, split into subsets P[s] for each
parachain
• Availability Guarantors: A (this may be repre-
sented by Validators in the basic form of the pro-
tocol)
• Relay-chain clients: M (note members of each
parachain set will also tend to be members of M)
• Parachain participants:
• Parachain Collators: C[0], C[1], . . .
• Parachain Fishermen: F[0], F[1], . . .
• Parachain clients: S[0], S[1], . . .
• Parachain light-clients: L[0], L[1], . . .
In general we name particular classes of communication
will tend to take place between members of these sets:
• P | A <-> P | A: The full set of valida-
tors/guarantors must be well-connected to
achieve consensus.
• P[s] <-> C[s] | P[s]: Each validator as a mem-
ber of a given parachain group will tend to gossip
with other such members as well as the collators
of that parachain to discover and share block can-
didates.
• A <-> P[s] | C | A: Each availability guarantor
will need to collect consensus-sensitive cross-chain
data from the validators assigned to it; collators
may also optimise the chance of consensus on their
block by advertising it to availability guarantors.
Once they have it, the data will be disbursed to
other such guarantor to facilitate consensus.
• P[s] <-> A | P[s' ]: Parachain validators will
need to collect additional input data from the pre-
vious set of validators or the availability guaran-
tors.
• F[s] <-> P: When reporting, fishermen may place
a claim with any participant.
• M <-> M | P | A: General relay-chain clients dis-
burse data from validators and guarantors.
• S[s] <-> S[s] | P[s] | A: Parachain clients dis-
burse data from the validator/guarantors.
• L[s] <-> L[s] | S[s]: Parachain light clients
disburse data from the full clients.
To ensure an efficient transport mechanism, a “flat”
overlay network—like Ethereum’s devp2p—where each
node does not (non-arbitrarily) differentiate fitness of its
peers is unlikely to be suitable. A reasonably extensible
peer selection and discovery mechanism will likely need
to be included within the protocol as well as aggressive
planning an lookahead to ensure the right sort of peers
are “serendipitously” connected at the right time.
The precise strategy of peer make-up will be differ-
ent for each class of participant: for a properly scaled-out
multi-chain, collators will either need to be continuously
reconnecting to the accordingly elected validators, or will
need on-going agreements with a subset of the validators
to ensure they are not disconnected during the vast ma-
jority of the time that they are useless for that valida-
tor. Collators will also naturally attempt to maintain one
or more stable connections into the availability guarantor
set to ensure swift propagation of their consensus-sensitive
data.
Availability guarantors will mostly aim to maintain a
stable connection to each other and to validators (for con-
sensus and the consensus-critical parachain data to which
they attest), as well as to some collators (for the parachain
data) and some fishermen and full clients (for dispersing
information). Validators will tend to look for other val-
idators, especially those in the same sub-group and any
collators that can supply them with parachain block can-
didates.
Fishermen, as well as general relay-chain and parachain
clients will generally aim to keep a connection open to a
validator or guarantor, but plenty of other nodes similar
to themselves otherwise. Parachain light clients will simi-
larly aim to be connected to a full client of the parachain,
if not just other parachain light-clients.
6.8.1. The Problem of Peer Churn. In the basic proto-
col proposal, each of these subsets constantly alter ran-
domly with each block as the validators assigned to verify
the parachain transitions are randomly elected. This can
be a problem should disparate (non-peer) nodes need to
pass data between each other. One must either rely on
a fairly-distributed and well-connected peer network to
POLKADOT: VISION FOR A HETEROGENEOUS MUL TI-CHAIN FRAMEWORK DRAFT 1 18
ensure that the hop-distance (and therefore worst-case la-
tency) only grows with the logarithm of the network size
(a Kademlia-like protocol [13] may help here), or one must
introduce longer block times to allow the necessary con-
nection negotiation to take place to keep a peer-set that
reflects the node’s current communication needs.
Neither of these are great solutions: long block times
being forced upon the network may render it useless for
particular applications and chains. Even a perfectly fair
and connected network will result in substantial wastage
of bandwidth as it scales due to uninterested nodes having
to forward data useless to them.
While both directions may form part of the solution,
a reasonable optimisation to help minimise latency would
be to restrict the volatility of these parachain validator
sets, either reassigning the membership only between se-
ries of blocks (e.g. in groups of 15, which at a 4 second
block time would mean altering connections only once per
minute) or by rotating membership in an incremental fash-
ion, e.g. changing by one member at a time (e.g. if there
are 15 validators assigned to each parachain, then on av-
erage it would be a full minute between completely unique
sets). By limiting the amount of peer churn, and ensur-
ing that advantageous peer connections are made well in
advance through the partial predictability of parachain
sets, we can help ensure each node keep a permanently
serendipitous selection of peers.
6.8.2. Path to an Effective Network Protocol. Likely the
most effective and reasonable development effort will fo-
cus on utilising a pre-existing protocol rather than rolling
our own. Several peer-to-peer base protocols exist that
we may use or augment including Ethereum’s own devp2p
[22], IPFS’s libp2p [1] and GNU’s GNUnet [4]. A full re-
view of these protocols and their relevance for building a
modular peer network supporting certain structural guar-
antees, dynamic peer steering and extensible sub-protocols
is well beyond the scope of this document but will be an
important step in the implementation of Polkadot.
7. Practicalities of the Protocol
7.1. Interchain Transaction Payment. While a great
amount of freedom and simplicity is gained through drop-
ping the need for a holistic computation resource account-
ing framework like Ethereum’s gas, this does raise an im-
portant question: without gas, how does one parachain
avoid another parachain from forcing it to do computa-
tion? While we can rely on transaction-post ingress queue
buffers to prevent one chain from spamming another with
transaction data, there is no equivalent mechanism pro-
vided by the protocol to prevent the spamming of trans-
action processing.
This is a problem left to the higher level. Since chains
are free to attach arbitrary semantics on to the incoming
transaction-post data, we can ensure that computation
must be paid-for before started. In a similar vein to the
model espoused by Ethereum Serenity, we can imagine
a “break-in” contract within a parachain which allows a
validator to be guaranteed payment in exchange for the
provision of a particular volume of processing resources.
These resources may be measured in something like gas,
but could also be some entirely novel model such as sub-
jective time-to-execute or a Bitcoin-like flat-fee model.
On its own this isn’t so useful since we cannot read-
ily assume that the off-chain caller has available to them
whatever value mechanism is recognised by the break-in
contract. However, we can imagine a secondary “break-
out” contract in the source chain. The two contracts to-
gether would form a bridge, recognising each other and
providing value-equivalence. (Staking-tokens, available to
each, could be used to settle up the balance-of-payments.)
Calling into another such chain would mean proxying
through this bridge, which would provide the means of
negotiating the value transfer between chains in order to
pay for the computation resources required on the desti-
nation parachain.
7.2. Additional Chains. While the addition of a
parachain is a relatively cheap operation, it is not free.
More parachains means fewer validators per parachain
and, eventually, a larger number of validators each with a
reduced average bond. While the issue of a smaller coer-
cion cost for attacking a parachain is mitigated through
fishermen, the growing validator set essentially forces a
higher degree of latency due to the mechanics of the un-
derlying consensus method. Furthermore each parachain
brings with it the potential to grief validators with an
over-burdensome validation algorithm.
As such, there will be some “price” that validators
and/or the stake-holding community will extract for the
addition of a new parachain. This market for chains will
possibly see the addition of either:
• Chains that likely have zero net contribution pay-
ing (in terms of locking up or burning staking to-
kens) to be made a part (e.g. consortium chains,
Doge-chains, app-specific chains);
• chains that deliver intrinsic value to the network
through adding particular functionality difficult
to get elsewhere (e.g. confidentiality, internal scal-
ability, service tie-ins).
Essentially, the community of stakeholders will need to
be incentivized to add child chains—either financially or
through the desire to add featureful chains to the relay.
It is envisioned that new chains added will have a very
short notice period for removal, allowing for new chains to
be experimented with without any risk of compromising
the medium or long-term value proposition.
8. Conclusion
We have outlined a direction one may take to author a
scalable, heterogeneous multi-chain protocol with the po-
tential to be backwards compatible to certain, pre-existing
blockchain networks. Under such a protocol, participants
work in enlightened self-interest to create an overall sys-
tem which can be extended in an exceptionally free man-
ner and without the typical cost for existing users that
comes from a standard blockchain design. We have given
a rough outline of the architecture it would take including
the nature of the participants, their economic incentives
and the processes under which they must engage. We have
identified a basic design and discussed its strengths and
limitations; accordingly we have further directions which
may ease those limitations and yield further ground to-
wards a fully scalable blockchain solution.
POLKADOT: VISION FOR A HETEROGENEOUS MUL TI-CHAIN FRAMEWORK DRAFT 1 19
8.1. Missing Material and Open Questions. Net-
work forking is always a possibility from divergent im-
plementations of the protocol. The recovery from such an
exceptional condition was not discussed. Given the net-
work will necessarily have a non-zero period of finalisation,
it should not be a large issue to recover from the relay-
chain forking, however will require careful integration into
the consensus protocol.
Bond-confiscation and conversely reward provision has
not been deeply explored. At present we assume rewards
are provided under a winner-takes-all basis: this may not
give the best incentivisation model for fishermen. A short-
period commit-reveal process would allow many fishermen
to claim the prize giving a fairer distribution of rewards,
however the process could lead to additional latency in the
discovery of misbehaviour.
8.2. Acknowledgments. Many thanks to all of the
proof-readers who have helped get this in to a vaguely
presentable shape. In particular, Peter Czaban, Bj¨ orn
Wagner, Ken Kappler, Robert Habermeier, Vitalik Bu-
terin, Reto Trinkler and Jack Petersson. Thanks to all
the people who have contributed ideas or the beginnings
thereof, Marek Kotewicz and Aeron Buchanan deserve es-
pecial mention. And thanks to everyone else for their help
along the way. All errors are my own.
Portions of this work, including initial research into
consensus algorithms, was funded in part by the British
Government under the Innovate UK programme.
References
[1] The specs for libp2p and associated submodules. https://
github.com/libp2p/specs.
[2] Webassembly. http://webassembly.org/, 2016.
[3] Adam Back, Matt Corallo, Luke Dashjr, Mark Friedenbach,
Gregory Maxwell, Andrew Miller, Andrew Poelstra, Jorge Ti-
mon, and Pieter Wuille. Enabling blockchain innovations with
pegged sidechains. 2014.
[4] Krista Bennett, Christian Grothoff, Tzvetan Horozov, Ioana
Patrascu, and Tiberiu Stef. Gnunet-a truly anonymous net-
working infrastructure. In In: Proc. Privacy Enhancing Tech-
nologies Workshop (PET . Citeseer, 2002.
[5] Vitalik Buterin. Ethereum: A next-generation smart contract
and decentralized application platform. https://github.com/
ethereum/wiki/wiki/White-Paper, 2013.
[6] Vitalik Buterin. Ethereum 2.0 mauve paper. 2016.
[7] Vitalik Buterin. Serenity poc2. 2016.
[8] Nxt community. Whitepaper: Nxt. http://wiki.nxtcrypto.
org/wiki/Whitepaper:Nxt, 2013.
[9] Christopher Copeland and Hongxia Zhong. Tangaroa: a
byzantine fault tolerant raft. http://www.scs.stanford.edu/
14au-cs244b/labs/projects/copeland_zhong.pdf, 2016.
[10] Ethan Buchman Jae Kwon. Cosmos: A network of
distributed ledgers. https://github.com/cosmos/cosmos/blob/
master/WHITEPAPER.md, 2016.
[11] Jae Kwon. Tendermint: Consensus without mining. http:
//tendermint.com/docs/tendermint.pdf, 2014.
[12] Daniel Larimer. Bitshares. http://docs.bitshares.org/
bitshares/history.html, 2013.
[13] Petar Maymounkov and David Mazi` eres. Kademlia: A peer-
to-peer information system based on the xor metric. In IPTPS
’01 Revised Papers from the First International Workshop
on Peer-to-Peer Systems , pages 53–65, 2002.
[14] Andrew Miller, Yu Xia, Kyle Croman, Elaine Shi, and Dawn
Song. The honey badger of bft protocols. Technical report,
Cryptology ePrint Archive 2016/199, 2016.
[15] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash sys-
tem. https://bitcoin.org/bitcoin.pdf, 2008.
[16] Diego Ongaro and John Ousterhout. In search of an un-
derstandable consensus algorithm. In 2014 USENIX Annual
Technical Conference (USENIX ATC 14) , pages 305–319,
2014.
[17] Parity. Parity ethereum client. https://parity.io, 2016.
[18] Serguei Popov. The tangle. https://www.iotatoken.com/IOTA_
Whitepaper.pdf, 2016.
[19] Youcai Qian. Randao. https://github.com/randao/randao,
2015.
[20] Eli Ben Sasson, Alessandro Chiesa, Christina Garman,
Matthew Green, Ian Miers, Eran Tromer, and Madars Virza.
Zerocash: Decentralized anonymous payments from bitcoin.
In 2014 IEEE Symposium on Security and Privacy , pages
459–474. IEEE, 2014.
[21] Paul Snow, Brian Deery, Jack Lu, David Johnston, and Peter
Kirb. Factom: Business processes secured by immutable audit
trails on the blockchain. https://raw.githubusercontent.
com/FactomProject/FactomDocs/master/Factom_Whitepaper.pdf,
2014.
[22] Gavin Wood. Devp2p wire protocol. https://github.com/
ethereum/wiki/wiki/libp2p-Whitepaper, 2014.
[23] Gavin Wood. Ethereum: a secure decentralised generalised
transaction ledger. http://gavwood.com/paper.pdf, 2014.
[24] Gavin Wood. Yellow paper committee. https://github.com/
gavofyork/curly-engine, 2016.
Appendix A. Functional Components
Seen from a high-level, the Parity Polkadot Platform stack has a number of functional components and any develop-
ment of it will require a substantial amount of research and development prior to it being completed.
Some components are dependent on others existing, others are independent. Some are very important for the platform
to function properly, others are nice-to-haves. Some are of indeterminate complexity and have not yet been deemed
feasible, others are relatively straight-forward.
Here we’ll try to list as many such components as possible along with where they would fit into our development
roadmap.
Networking subsystem: This is the means by which a peer network is formed and maintained. Simple alterations
of existing peer-to-peer networking libraries (devp2p most likely) will be sufficient for an initial system. However,
additional research and development will be necessary to ensure that as the network grows, the network topology
becomes increasingly structured allowing for optimal data logistics. For the final deployment, adaptations of
libp2p, devp2p and GNUnet should be first considered. If requirements are not likely to be met then a new
protocol should be considered.
Consensus mechanism: Proof-of-authority consensus mechanism supporting rich validator statements and al-
lowing multiple independent items to be agreed upon under a single series based upon subjective reception of
the partial set of validator statements. The mechanism should allow the proof of misbehaviour for the dismissal
of malicious validators but need not involve any staking mechanism. A substantial amount of research and
prototyping will precede the development of this component.
Proof-of-stake chain: Extending the consensus mechanism into proof-of-stake territory; this module includes
staking tokens, managing entry and exit from the validator pool, a market mechanism for determining validator
rewards, finalising the approval-voting nomination mechanism and managing bond-confiscation and dismissal.
It includes a substantial amount of research and prototyping prior to final d프로젝트로 돌아가기