bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 19쪽 중 10쪽
urity on a single client.
Chainlink already has in place a robust system of failover clients. Our approach
involves maintaining previous, battle-tested client versions. Today, for example, Chain-
link nodes with Off-Chain Reporting (OCR) as their primary client include support
for Chainlink’s previous FluxMonitor system if needed. Having been in use for some
time, FluxMonitor has received security audits and field testing. It provides the same
functionality as OCR, just at higher cost—a cost only incurred on an as-needed basis.
7.2.2 Minority Reports
Given a sufficiently large minority set Ominority—a fraction of honest nodes that ob-
serve malfeasance by the majority—it can be helpful for them to generate a minority
report. This is a parallel report or flag, relayed to a dependent contract SC on-chain
byOminority. SC can make use of this flag according to its own contract-specific policy.
For example, for a contract in which safety is more important than liveness or respon-
siveness, a minority report might cause the contract to request supplementary reports
from another DON, or trigger a circuit breaker (see the next section).
70
Minority reports can play an important role even when the majority is honest,
because any report-aggregation scheme, even if it uses functional signatures, must
operate in a threshold manner, to ensure resilience against oracle or data failure. In
other words, it must be possible to produce a valid report based on the inputs of
kS < nS oracles, for some threshold kS. This means a corrupted DON has some
latitude in manipulating report values by selecting its preferred kS values among the
nS reported in V by the full set of oracles, even if all sources are honest .
For example, suppose that nS = 10 and kS = 7 in a system that uses a functional
signature to authenticate computation of median over V for the USD price of ETH.
Suppose that five sources report a price of $500, while the other five report $1000.
Then by medianizing the lowest 7 reports, the DON can output a valid valuev = $500,
and by medianizing the highest, it can output v = $1000.
By enhancing the DON protocol so that all nodes are aware of which data was
available, and which data was used to construct a report, nodes could detect and flag
statistically significant tendencies to favor one set of reports over another, and produce
a minority report as a result.
7.3 Guard Rails
Our trust model for DONs treats MAINCHAIN as a higher-security, higher-privilege
system than DONs. (While this trust model may not always hold true, it is easier
to adapt the resulting mechanism to situations where the DON is the higher security
platform than vice versa.)
A natural trust minimization strategy thus involves the implementation of moni-
toring and failsafe mechanisms in smart contracts—either in a MAINCHAIN front end
for a DON or directly in a dependent contract SC. We refer to these mechanisms as
guard rails, and enumerate some of the most important here:
• Circuit breakers: SC may pause or halt state updates as a function either of char-
acteristics of the state updates themselves (e.g., large variance across sequential
reports) or based on other inputs. For example, a circuit breaker might trip in
cases where oracle reports vary implausibly over time. A circuit breaker might
also be tripped by a minority report. Thus, circuit breakers can prevent DONs
from making grossly erroneous reports.
Circuit breakers can provide time for additional interventions to be considered
or exercised. One such intervention is escape hatches.
• Escape hatches: Under adverse circumstances, as identified by a set of custodi-
ans, community token holders, or other bodies of trustees, a contract may invoke
an emergency facility sometimes called an escape hatch [163]. An escape hatch
causes SC to shut down in some manner and/or terminates pending and possibly
future transactions. For example, it may return custodied funds to users [17]),
71
may terminate contract terms [162], or may cancel pending and/or future trans-
actions [173]. Escape hatches can be deployed in any type of contract, not just
one that relies on a DON, but they are of interest as a potential buffer against
DON malfeasance.
• Failover: In systems where SC relies on the DON for essential services, it is pos-
sible for SC to provide failover mechanisms that ensure service continuation even
in the case of DON failure or misbehavior. For example, in the TEF (Section 6),
the anchor contract SCa may provide dual interfaces where both on-chain and
off-chain execution interfaces are supported for certain critical operations (e.g.,
withdrawal), or for ordinary transactions, with a suitable delay to prevent front-
running of DON transactions. In cases where data sources sign data, users could
also furnish reports to SCa when the DON fails to do so.
Fraud proofs, as proposed for various forms of optimistic rollup (see Section 6.3),
are similar in flavor and complementary to the mechanisms we enumerate above. They
too provide a form of on-chain monitoring and protection against potential failures in
off-chain system components.
7.4 Trust-Minimized Governance
Like all decentralized systems, the Chainlink network requires governance mechanisms
to adjust parameters over time, respond to emergencies, and guide its evolution.
Some of these mechanisms currently reside on MAINCHAIN, and may continue to
do so even with the deployment of DONs. One example is the payment mechanism
for oracle node providers (DON nodes). DON front end contracts on MAINCHAIN
contain additional mechanisms, such as guard rails, that may be subject to periodic
modification.
We foresee two classes of governance mechanisms: evolutionary and emergency.
Evolutionary governance: Many modifications to the Chainlink ecosystem are
such that their implementation is not a matter of urgency: Performance improvements,
feature enhancements, (non-urgent) security upgrades, and so forth. As Chainlink pro-
gressively moves toward even more participants in its governance, we expect many or
most such changes to be ratified by the community of a specific DON affected by those
changes. In the interim, and perhaps ultimately as a parallel mechanism, we believe
that a notion of temporal least privilege can be a useful means of implementing evolu-
tionary governance. Very simply, the idea is for changes to deploy gradually, ensuring
the community an opportunity to respond to them. For example, migration to a new
MAINCHAIN contract can be constrained so that the new contract must be deployed
at least thirty days before activation.
72
Emergency governance: Exploitable or exploited vulnerabilities in MAINCHAIN
contracts or other forms of liveness or safety failures may require immediate interven-
tion to ensure against catastrophic outcomes. Our intention is to support a multisig
intervention mechanism in which, to ensure against malfeasance by any organization,
signers will be dispersed across organizations. Ensuring consistent availability of signers
and timely access to appropriate chains of command for authorization of emergency
changes will clearly require careful operational planning and regular review. These
challenges are similar to those involved in testing other cybersecurity incident-response
capabilities [134], with a similar need to combat common problems like vigilance decre-
ment [223].
The governance of DONs differs from that of many decentralized systems in its
potential degree of heterogeneity. Each DON may have distinct data sources, executa-
bles, service-level requirements such as uptime, and users. The Chainlink network’s
governance mechanisms must be flexible enough to accommodate such variations in
operational goals and parameters. We are actively exploring design ideas and plan to
publish research on this topic in the future.
7.5 Public-Key Infrastructure
With progressive decentralization will come the need for a robust identification of
network participants, including DON nodes. In particular, Chainlink requires a strong
Public-Key Infrastructure (PKI). A PKI is a system that binds keys to identities. For
example, a PKI undergirds the Internet’s system of secure connections (TLS): When
you connect to a website via HTTPS (e.g., https://www.chainlinklabs.com) and a
lock appears in your browser, that means that the public key of the domain owner has
been bound to that owner by an authority—specifically, through a digital signature in
a so-called certificate. A hierarchical system of certificate authorities (CAs), whose top-
level root authorities are hardwired into popular browsers, helps ensure that certificates
are issued only to the legitimate owners of domains.
We expect that Chainlink will eventually make use of decentralized name services,
initially the Ethereum Name Service (ENS) [22], as the foundation for our PKI. As
its name suggests, ENS is analogous to DNS, the Domain Name System that maps
(human-readable) domain names to IP addresses on the internet. ENS, however, in-
stead maps human-readable Ethereum names to blockchain addresses. Because ENS
operates on the Ethereum blockchain, barring key compromise, tampering with its
namespace is in principle as difficult as tampering with the contract administering it
and/or the underlying blockchain. (DNS, in contrast, has historically been vulnerable
to spoofing, hijacking, and other attacks.)
We have registered data.eth with ENS on the Ethereum mainnet, and intend to
establish it as a root namespace under which the identities of oracle data services and
other Chainlink network entities reside.
Domains in ENS are hierarchical, meaning that each domain may contain references
to other names under it. Subdomains in ENS can serve as a way to organize and
73
delegate trust.
The main role of data.eth will be to serve as an on-chain directory service for
data feeds. Traditionally, developers and users of oracles have used off-chain sources
(e.g., websites like docs.chain.link or data.chain.link, or social networks such as
Twitter) to publish and obtain oracle data feed addresses (such as the ETH-USD price
feed). With a highly trustworthy root namespace such as data.eth, it is possible in-
stead to establish a mapping of eth-usd.data.eth to, e.g., the smart contract address
of an on-chain oracle network aggregator for the ETH-USD price feed. This would
create a secure path for anyone to refer to the blockchain as the source of truth for
that data feed of that price/name pair (ETH-USD). Consequently, such use of ENS
realizes two benefits unavailable in off-chain data sources:
• Strong security: All changes and updates to the domain are recorded immutably
and secured cryptographically, as opposed to text addresses on a website, which
enjoy neither of these two security properties.
• Automated on-chain propagation: Updates to the underlying address of a data-
feed’s smart contract can trigger notifications that propagate to dependent smart
contracts and can, for example, automatically update dependent contracts with
the new addresses. 13
Namespaces like ENS, however, do not automatically validate legitimate ownership
of asserted names . Thus, for example, if the namespace includes the entry
⟨“Acme Oracle Node Co. ”, addr⟩,
then a user obtains the assurance that addr belongs to the claimant of the name Acme
Oracle Node Co . Without additional mechanisms around namespace administration,
however, she does not obtain assurance that the name belongs to an entity legitimately
called Acme Oracle Node Co. in a meaningful real world sense.
Our approach to validation of names, i.e., ensuring their ownership by correspond-
ing, legitimate real-world entities, relies on several components. Today, Chainlink Labs
effectively acts as a CA for the Chainlink network. While Chainlink Labs will continue
to validate names, our PKI will evolve into a more decentralized model in two ways:
• Web-of-trust model: The decentralized counterpart of a hierarchical PKI is of-
ten referred to as a web-of-trust.14 Variants have been proposed since the 1990s,
e.g., [98], and a number of researchers have observed that blockchains can facil-
itate use of the idea, e.g., [227] by recording certificates in a globally consistent
ledger. We are exploring variants of this model to validate the identities of entities
in the Chainlink network in a more decentralized way.
13A dependent contract can optionally include a predetermined delay to allow for manual inspection
and intervention by dependent-contract administrators.
14A term coined by Phil Zimmermann for PGP [238].
74
• Linkage to validating data: Today, a substantial amount of oracle node perfor-
mance data is visible on-chain, and thus archivally bound to node addresses.
Such data may be viewed as enriching an identity in the PKI by providing his-
torical evidence of its (reliable) participation in the network. Additionally, tools
for decentralized identity based on DECO and Town Crier [160] enable nodes
to accumulate credentials derived from real-world data. As just one example, a
node operator can attach a credential to its PKI identity that proves possession
of a Dun and Bradstreet rating. These supplementary forms of validation can
supplement staking in creating assurance of the security of the network. An or-
acle node with an established real-world identity may be viewed as having stake
in a system deriving from its reputation. (See Section 4.3 and Section 9.6.3.)
A final requirement for the Chainlink PKI is secure bootstrapping, i.e., securely
publishing the root name for the Chainlink network, currently data.eth (analogously
to hardwiring of top-level domains in browsers). In other words, how do Chainlink users
determine that data.eth is indeed the top-level domain associated with the Chainlink
project? The solution to this problem for the Chainlink network is multi-pronged and
may involve:
• Adding a TXT record [224] to our domain record for chain.link that specifies
data.eth as the root domain for the Chainlink ecosystem. (Chainlink thus im-
plicitly leverages the PKI for internet domains to validate its root ENS domain.)
• Linking to data.eth from Chainlink’s existing website, e.g., from
https://docs.chain.link. (Another implicit use of the PKI for internet do-
mains.)
• Making the use ofdata.eth known via various documents, including this whitepa-
per.
• Posting data.eth publicly on our social-media channels, such as Twitter, and
the Chainlink blog [18].
• Placing a large quantity of LINK under the control of the same registrant address
as data.eth.
8 DON Deployment Considerations
While not a part of our core design, there are several important technical considerations
in the realization of DONs that deserve treatment here.
75
8.1 Rollout Approach
This paper lays out an ambitious vision of advanced Chainlink functionality whose
realization will require solutions to many challenges along the way. This whitepaper
identifies some challenges, but unanticipated ones are sure to arise.
We plan to implement elements of this vision in an incremental fashion over an
extended period of time. Our expectation is that DONs will initially launch with
support for specific pre-built components built collaboratively by teams within the
Chainlink community. The intention is that broader uses of DONs, e.g., the ability to
launch arbitrary executables, will see support at a later time.
One reason for such caution is that composition of smart contracts can have com-
plex, unintended, and dangerous side effects, as recent flash-loan-based attacks have
for instance shown [127, 189]. Similarly, composition of smart contracts, adapters, and
executables will require extreme care.
In our initial deployment of DONs, we plan to include only a pre-built set of tem-
platized executables and adapters. This will enable study of the compositional security
of these functionalities using formal methods [46, 170] and other approaches. It will
also simplify pricing: Functionality pricing can be established by DON nodes on a per-
functionality basis, rather than through generalized metering, an approach adopted
in, e.g., [156]. We also expect the Chainlink community to take part in the creation
of additional templates, combining various adapters and executables into increasingly
useful decentralized services that can be run by hundreds, if not thousands of individual
DONs.
Additionally, this approach can help prevent state bloat , i.e., the need for DON
nodes to retain an unworkable amount of state in working memory. This problem is
already arising in permissionless blockchains, motivating approaches such as “stateless
clients” (see, e.g., [206]). It can be more acute in higher throughput systems, motivating
an approach in which a DON deploys only state-size-optimized executables.
As DONs evolve and mature and include robust guard rails, as discussed in Sec-
tion 7, cryptoeconomic and reputation-based security mechanisms as discussed in Sec-
tion 9, and other features that provide a high degree of assurance for DON users, we
also expect to develop a framework and tools to facilitate broader launch and use of
DONs by the community. Ideally, these tools will enable a collection of node operators
to come together as an oracle network and launch their own DONs in a permissionless
or self-service manner, meaning that they can do so unilaterally.
8.2 Dynamic DON Membership
The set of nodes running a given DON may change over time. There are two approaches
to key management for skL given dynamic membership inO.
The first is to update shares of skL held by the nodes upon changes in membership,
while keeping pkL unchanged. This approach, explored in [41, 161, 198], has the merit
of not requiring that relying parties update pkL.
76
The classical technique of share resharing, introduced in [122], provides a simple
and efficient way of realizing such share updates. It enables a secret to be transferred
between one set of nodes O(1) and a second, possibly intersecting one O(2). In this
approach, each nodeO(1)i performs a (k(2),n (2)) secret sharing of its secret share across
nodes inO(2) forn(2) =|O(2)| and desired (possibly new) threshold k(2). Various verifi-
able secret sharing (VSS) schemes [108] can provide security against an adversary that
actively corrupts nodes, i.e., introduces malicious behavior into the protocol. Tech-
niques in [161] aim to do so while reducing communication complexity and providing
resilience against failures in cryptographic hardness assumptions.
A second approach is to update the ledger key pkL. This has the benefit of forward
security: Compromise of old shares of pkL (i.e., former committee nodes) would not
result in compromise of the current key. Updates topkL, however, carry two drawbacks:
(1) Data encrypted under pkL needs to be re-encrypted during a key refresh and (2)
Key updates need to be propagated to relying parties.
We intend to explore both approaches, as well as hybridizations of the two.
8.3 DON Accountability
As with existing Chainlink oracle networks, DONs will include mechanisms foraccount-
ability, i.e., recording, monitoring, and enforcing correct node behavior. DONs will have
much more substantial data capacity than many existing permissionless blockchains,
particularly given their ability to connect to external decentralized storage. Conse-
quently, they will be able to record nodes’ performance history in detail, allowing for
more fine-grained accountability mechanisms. For example, off-chain computation of
asset prices may involve inputs that are discarded before a median result is sent on
chain. In a DON, these intermediate results could be recorded. Misbehavior or per-
formance lapses by individual nodes in a DON can thus be remedied or penalized on
the DON in a fine-grained way. We have additionally discussed approaches to building
guard rails in Section 7.3 that address the contract-specific impact of systemic failures.
It is also important, however, to have failsafe mechanisms for DONs themselves,
i.e., protec프로젝트로 돌아가기