bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 11쪽 중 5쪽
been required. A good example is how the client of an end user
communicates with the network and performs queries on its state, such as checking the
user’s balance. Assuming the client cannot run a full node that synchronizes with the network
and performs the complete suite of resource intensive validations, some compromises must
be made. A common workaround is for the client to communicate with the network through a
specific gateway node and delegate some of the validations to it. This would mean a client
query for network state needs to trust the gateway node to provide an honest response. Some
improvements over this approach include redundancy tactics of querying multiple gateway
nodes at once, choosing the gateway node randomly, fraud-proofs , etc. 43
Network-owned secrets is a cryptographic protocol introduced by the Orbs platform, that
provides the ability to hold a shared secret securely in a decentralized network. None of the
consensus nodes have direct knowledge of this secret, and only a combined effort of a
specified majority among them can facilitate this secret to perform a secure operation like
signing, encrypting or decrypting data. The mechanism relies on a cryptographic primitive
called threshold encryption and described in detail in the technical white paper of Helix
Consensus Algorithm. The benefit of this method is that the combined signature is only
produced after reaching a threshold amount of signatures by individual nodes, each using
their own individual secret that no other node knows. Thus, we have created a combined
signature that can effectively be considered as the signature of the entire network. When the
network as a whole has the parallel of a private and public key, many useful secure operations
become easy to implement.
Network-owned secrets provide the ability for secure interaction with the network without the
need to trust specific nodes. Consider a client that desires to perform a smart contract
calculation and is unable to run a full node. Instead of querying one of the network nodes as a
gateway and trusting its response, by using a network secret to sign the combined response
of multiple nodes, the client can verify the response simply by checking the signature.
Another interesting capability gained from the network’s ability to own secrets is holding
assets or accounts on the network level. Consider the requirement to implement a smart
contract over the platform that controls an account on a different blockchain like Ethereum.
Normally, this requirement would not have been possible to implement because smart
contracts cannot hold secrets. Using a network-owned secret, though, a private key can be
generated by the collective for nodes after consensus. This private key is unknown to any of
the individual nodes and can be used to access an external Ethereum wallet securely.
Moreover, smart contracts can be used to provide key services such as key management,
DRM, etc.
43 https://gist.github.com/justusranvier/451616fa4697b5f25f60
38
Orbs Architecture
The detailed architecture of the Orbs platform will be outlined in a set of technical architecture
white papers. In general, the Orbs architecture consists of multiple layers, responsible for
different functions in the system. The layers and services are built such that they can operate
on different machines and scale independently as needed. As a design goal, the architecture
attempts to separate services and modules as much as possible within a layer in order to
enable flexibility, upgradability and interoperability.
A key component in the architecture is the support of virtual chains - multiple parallel
instances of the consensus, state and storage layers - that provide the illusion of a separate
dedicated blockchain over a shared physical node environment. The concept of blockchain
virtualization is discussed in greater detail in the following sections.
Infrastructure Layers and Services
Client SDK - A client-side library for mobile and web apps that connects end users to the
network. The SDK can sign and encrypt requests and verify responses without relying on
trusted nodes.
39
Public API - A microservice that exposes all public web API to clients (such as REST or
JSON-RPC). Provides the endpoint handling all end user transactions and queries.
Gossip - A microservice that provides efficient one-to-many and one-to-one communication
between nodes in the network. The novel communication scheme of the Orbs platform is
discussed in detail in the Helix white paper.
Crypto Services - A library and service providing the low-level cryptographic routines and
services like signatures, hashes and encryption. Has both native and non-native fallbacks.
Secure Storage- A library and service that store secrets like private keys in a secure manner.
Uses HSM when available, relying on dedicated hardware and tamper-resistant enclosures. 44
System Parameters and Governance - Holds infrastructure configuration parameters and
handles updates and provisioning.
Virtual Machine (Compute) - A microservice that owns the execution of transactions and
smart contracts, serving all virtual chains. The compute layer holds transient state for
non-final execution and cross-chain data.
Processors - A set of microservices providing the actual runtime environments needed for the
execution of smart contracts in various languages (EVM, Python, Java, JavaScript, etc).
Raw Storage - A layer responsible for storing and retrieving raw data on local machines.
Cross-chain Connector(s) - A set of microservices providing cross-chain interoperability with
third party blockchains like Ethereum. Provides access under consensus of the third party.
Clock Sync - A microservice responsible for synchronizing clocks between different machines,
nodes and services. Provides a consistent frame of reference for absolute time. Global clock
synchronization is not a requirement for the Helix Consensus Algorithm but other system
services may benefit from this ability.
Consensus - A microservice instantiated per virtual chain that is responsible for achieving
agreement among nodes on the order of transactions and their validity. Implements the
consensus algorithm. Consists of the sub-layers: Ordering, Validation, Transaction Pool.
State Storage - A microservice instantiated per virtual chain that holds the mutable and
immutable state that is under consensus. Manages efficient caching, sharding and
redundancy for the state data. Accessed by the Virtual Machine and Public API.
Block Storage - A microservice instantiated per virtual chain that holds the incremental
long-term journal of all previous closed blocks. Manages efficient sharding and redundancy
for the blocks’ data. Used to generate and validate the state.
44 https://en.wikipedia.org/wiki/Hardware_security_module
40
Virtual
Chain
Parameters
and
Governance
-
Instantiated
per
virtual
chain
and
holds
the
virtual
chain specific configuration parameters and handles updates and provisioning.
Resources Pools vs. Virtual Chains
The
Orbs
architecture
is
comprised
of
a
set
of
microservices
providing
different
types
of
resources
to
the
network.
Each
type
of
resource
can
be
scaled
separately
according
to
the
actual
requirements
of
the
network.
A
service
like
Public
API
can
be
scaled
aggressively
by
launching
multiple
instances
as
more
concurrent
end
users
connect
to
the
network,
compared
to the Consensus service that is instantiated per node based on the number of virtual chains.
Different
applications
running
on
top
of
the
Orbs
platform
may
have
different
requirements
for
different
resources.
For
example,
a
compute
intensive
application
may
require
a
large
capacity
of
decentralized
compute
resources
while
a
database
application
may
require
a
large
capacity
of
decentralized
storage.
Moreover,
the
amount
of
resources
is
expected
to
change
over
time
with the introduction of new applications and the evolution of their needs.
41
In order to efficiently utilize the resources and microservices available on each node, they are
regarded as a shared pool of resources that is then allocated to different virtual chains based
on their SLA requirements. Some resources may be dedicated to a virtual chain whereas
others are allocated dynamically based on demand. An architecture based on resource pools
effectively utilizes the varying capabilities of heterogeneous nodes and supports an elastic
resource capacity. Each node is paid for the sum of the services it provided to the network,
and penalized if it failed to deliver on its commitments. This gives node operators the
incentives to add resources as needed, and to maintain the committed quality of service.
42
Consensus
Pragmatic Decentralization and Trust
Consensus is one of the core subsystems required for a blockchain infrastructure and the
choice of consensus model is without a doubt one of the first decisions we have to make. The
question of consensus, above any other, is riddled with preconceived notions and strong
opinion. Debates between the camps of Proof of Work (PoW) and Proof of Stake (PoS) often
borderline philosophy . Our position, as usual, will have to emerge from a careful analysis of 45
our requirements.
Consensus comes to solve the problem of agreement in a decentralized system, where the
selection between different possible agreements could create profits or losses to different
parties. In a centralized system, there are no different parties, thus no conflict in selecting an
agreement. Before diving into the discussion, we should examine how decentralized each part
of the network really is.
Looking at the network entities diagram, let’s begin with end users, our first anchor.
Consumers, users of apps like instant messengers, are generally unaware of the benefits of
decentralization, unlike the early adopters of Bitcoin. In the near future, it’s also safe to say
that the vast majority of consumers will not grasp the difference between a decentralized
system and a centralized one. Contrary to the trustless ideal behind Bitcoin, end users will
never go over the source code of a product before compiling it themselves, nor will they verify
the signature to make sure they’ve downloaded an authentic copy. Consumers, as always, will
place their trust in a brand.
Brands are almost always centralized entities: they have one leadership and one policy. They
usually rely on centralized delivery channels to reach consumers, like the Apple or Google app
stores and websites with branded domain names managed centrally and hosted on
centrally-managed servers. Consider a consumer typing in their secret passphrase into a
mobile app wallet. The consumer must trust that the developer of this mobile app isn’t
stealing their private key, abusing it or transmitting it outside. When interacting with
45 https://download.wpsoftware.net/bitcoin/old-pos.pdf
43
CONS ENSUS
blockchain,
it
will
be
code
created
and
signed
by
brands
that
will
ultimately
interface,
on
behalf
of their users, with decentralized apps.
This
observation
fundamentally
changes
how
we
evaluate
open
consensus
models:
it
means
that
any
user’s
voting
power
is
essentially
delegated
to
the
brand
whose
code
they
are
using.
Even
in
models
like
Delegated
Proof
of
Stake,
the
voting
power
in
the
delegate
election
is
implicitly delegated to the brand.
In
the
case
of
Orbs,
we
use
randomized
proof-of-stake
(RPoS),
to
randomly
select
among
our
federation of nodes a subset to form committees for quick block production.
Healthy Distribution of Power
Before
we
discuss
political
power
in
a
decentralized
network,
we
need
to
be
clear
on
what
this
power
is
useful
for.
In
most
decentralized
networks,
political
power
is
used
for
two
types
of
decisions:
real-time
validation
of
transactions,
and
governance
of
the
network
itself
(agreeing
on protocol upgrades, parameter changes, forks to the blockchain, etc).
Real-time Validation Rights
The
effect
of
political
power
in
real
time
validation
is
limited
when
the
protocol
is
well-defined,
because
the
fundamental
rules
are
axiomatic
to
the
operation
of
the
network.
For
example,
a
decentralized
ledger
would
not
enable
any
verifier
-
no
matter
how
powerful
-
to
approve
transactions
that
are
not
signed
by
the
payer.
If
it
did
so,
it
violated
the
rules
of
the
protocol,
so
the
allegedly-approved
transactions
will
either
be
ignored
by
the
network,
or
the
network
will
halt
because
the
consensus
broke.
It
is
clear
that
egalitarian
distributions
of
power,
which
make it harder to stage such attacks, leads to more robust and sustainable platforms.
Manipulations
that
do
not
break
the
protocol
are
limited,
then,
to
undetectable
violations
of
the
protocol;
for
example,
deliberately
failing
to
propagate
transactions,
manipulating
the
order
of
transactions
within
a
block,
selfish
mining
,
and
so
on.
To
some
extent,
the
ability
to
abuse
46
power
in
this
real-time
validation
can
be
further
limited
if
the
protocol
is
designed
in
a
way
that
limits validators’ ability to apply such manipulations.
Governance Decision Rights
An
efficient
mechanism
for
agreeing
on
network
governance
issues
is
critical
for
its
long-term
relevance.
As
an
industry
that
relies
on
state-of-the-art
technologies
in
cryptography,
distributed
systems,
network
and
software
infrastructure,
we
can
expect
a
steady
current
of
innovations
that
can
further
improve
and
extend
the
abilities
of
a
given
blockchain
platform.
Furthermore,
as
blockchain
solutions
enter
mainstream
industries,
new
uses
and
new
46
https://www.cs.cornell.edu/~ie53/publications/btcProcFC.pdf
44
contexts of use expect to be catered by these platforms. Adaptability is important for any
good blockchain platform, and the mechanics of network governance should not be a barrier
to it.
Whereas most technological advancements are easily agreed upon, conflicts arise where
interests are not aligned. In order to analyze healthy power distribution patterns, we must first
understand what interests are in play, and who the actors are.
With a bird’s eye view on blockchain governance, we can see three archetypes of
stakeholders:
● End users
● Decentralized app developers catering to end users
● Network infrastructure operators (e.g. miners)
As designers of a platform that aims to serve consumer applications, our approach is to try
and maximize the utility for users.
It is easy to see that the interests of infrastructure operators (such as Bitcoin miners) are
normally misaligned with those of the end users. As a result, networks are slow to adopt
changes, even when those are urgently needed. A notable example of the damages of such
conflict is the 20-month debate in the Bitcoin community over the switch to SegWit (BIP141 ) 47
that was designed to resolve a technical issue in the protocol, but had several side-effects
expected to impact the revenues of miners. Ultimately, following months of great uncertainty
for users and app developers, the network forked on August 2017.
Developers’ interest in infrastructure choices are usually well aligned with the end users’,
except for situations where a proposed change could be used by an incumbent to fend off
competition. App vendors may also be divided on their preferences between newer and
field-proven technologies. Vendors of mature and established apps tend to be risk-averse and
prefer waiting for technologies to ripen, whereas fledgling apps see value in adopting
avant-garde technologies that have greater potential to disrupt incumbents. Platform
virtualization has great potential in mitigating many of these conflicts, as it allows each
application to govern many aspects of its own infrastructure independently from others.
As for the end users, we believe their vote is well-aligned to their utility, as long as they are well
informed as to the practical implications of their decisions. However, involving end users in
governance decisions is extremely hard in decentralized systems: user identities are usually
not connected to real-world identities, and digital identities can be easily forged. This issue is
usually mitigated by weighting user votes with their stake in the system’s currency, at the risk
of concentrating power in the hands of a few rich users.
47 https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
45
Proof of Work
If most people are honest, a majority vote on the integrity of a public ledger is a
straightforward consensus that is decentralized, permissionless and open. But majorities are
an elusive concept when relying on digital identities, as the cost of generating new identities is
negligible (Sybil Attack ). An ingenious solution to this problem is PoW, proposed by Dwork 48
and Naor in 1992 , in which suffrage is subject to spending computer resources and energy 49
on solving a cryptographic puzzle. PoW is widely used today in permissionless distributed
ledgers.
Commonly, a PoW ledger arrives at consensus over time: anyone can be the public verifier for
a set of transactions (usually, a “block”), if they are first to solve a PoW puzzle; their efforts on
the puzzle will be compensated by a cryptocurrency reward. Consensus on the validity of a
block builds gradually, as future blocks refer to our block as their predecessor. A perpetrator
will be at loss for trying to publicly validate an invalid block, because his expenditure on the
PoW will not be reimbursed if his (invalid) block is not referred to by future blocks.
Although PoW ledgers achieve the utopian ideal of a decentralized, permissionless and open
consensus, their application is far from creating utopia. For PoW to be adequately secure, the
cost of solving the puzzles must be proportional to the value of the underlying assets; the
global impact of this on mass-market ledgers is frightening. To illustrate, as of January 2018,
Bitcoin mining is estimated to be taking nearly 1/5000 of the world electricity consumption . 50
As cryptocurrencies reach mass market audiences and significantly grow in value and
transaction volumes, we expect that PoW ledgers will become unsustainable due the amount
of emissions involved with their operation. Naturally, these costs are imposed on the users of
the Infrastructure as fees and inflation; costs of using PoW networks are higher than those of
the alternatives. In order to reach the massive scale required for consumer apps, lowering
infrastructure costs is also a core requirement of the Orbs platform.
In the near-term, PoW poses several immediate and practical challenges to mass-market
adoption. One is with the governance of such networks; in addition to the inherent
complexities of governing a decentralized movement, a side effect of the proliferation of PoW
is that mining has become a business of specialists, adding another powerful, heavily invested
stakeholder in the system whose interests aren’t aligned with those of users or app vendors
(as discussed above). Developers of consumer apps are the political group which the Orbs
platform is optimized for, as their involvement in the network is paramount to its purpose, yet
nobody expects companies like Kik to become competitive PoW miners.
Another critical barrier to using PoW in mass-market applications is the inherent latency
associated with eventual consensus. The acceptance of a block is determined by the depth or
48 https://www.microsoft.com/en-us/research/wp-content/uploads/2002/01/IPTPS2002.pdf
49 http://www.wisdom.weizmann.ac.il/~naor/PAPERS/pvp.ps
50 https://digiconomist.net/bitcoin-energy-consumption
46
weight
of
other
blocks
referring
to
that
block;
this
weight
accumulates
slowly
as
blocks
cannot
be
created
too
fast
without
raising
the
probability
of
conflicts,
which
in
blockchain
systems
come
as
forks
to
the
chain.
Newer
protocols
can
significantly프로젝트로 돌아가기