Cross-chain Swaps with Preferences Eric Chan University of California at RiversideMarek Chrobak

2025-05-06 0 0 2.79MB 23 页 10玖币
侵权投诉
Cross-chain Swaps with Preferences
Eric Chan
University of California at Riverside
Marek Chrobak
University of California at Riverside
Mohsen Lesani
University of California at Riverside
Abstract—Extreme valuation and volatility of cryptocurrencies
require investors to diversify often which demands secure exchange
protocols. A cross-chain swap protocol allows distrusting parties
to securely exchange their assets. However, the current models
and protocols assume predefined user preferences for acceptable
outcomes. This paper presents a generalized model of swaps
that allows each party to specify its preferences on the subsets
of its incoming and outgoing assets. It shows that the existing
swap protocols are not necessarily a strong Nash equilibrium in
this model. It characterizes the class of swap graphs that have
protocols that are safe, live and a strong Nash equilibrium, and
presents such a protocol for this class. Further, it shows that
deciding whether a swap is in this class is NP-hard through
a reduction from 3SAT, and further is
ΣP
2
-complete through a
reduction from ∃∀DNF.
I. INTRODUCTION
The multitude and volatility of cryptocurrencies force in-
vestors to diversify and frequenty trade their holdings. However,
these currencies are hosted by distinct distributed blockchains
and trading across blockchains is not atomic by default. This has
led to the development of cross-chain swap protocols [
19
], [
8
],
[
10
], [
18
], [
13
], [
33
] that allow distrusting parties to securely
exchange their assets. Application of such swap protocols is
not limited to trading digital currencies — they can be used for
trading any type of digital assets (NFTs, for example), or even
for trading physical objects by safely trasferring ownership
documentation.
In a pioneering work, Herlihy [
19
] formalizes a cross-chain
swap as a directed graph where vertices represent parties, and
arcs represent assets to be exchanged. An execution of a swap
graph is represented as the subset of arcs that are triggered in
that execution. The outcome for each party is captured in five
predefined classes:
DEAL
,
NODEAL
,
DISCOUNT
,
FREERIDE
,
and
UNDERWATER
. The classes
DEAL
and
NODEAL
represent
outcomes for a party where respectively, all and none of
the arcs of that party are triggered. The class
DISCOUNT
represents outcomes where some of the outgoing arcs are
not triggered, and
FREERIDE
represents outcomes where at
least one incoming but no outgoing arc is triggered. Outcomes
in all these classes are considered acceptable by each party.
The class
UNDERWATER
captures all unacceptable outcomes,
namely outcomes where at least one outgoing arc is triggered
but not all incoming arcs are. Given this model of outcomes,
Herlihy presented a protocol based on hashed time-locks and
proved it to be atomic, meaning that it satisfies the conditions
of liveness, safety and strong Nash equilibrium.
This project has been supported by NSF Career 1942711, DARPA YFA
D22AP00146, and NSF grant CCF-2153723.
In practice, as noted in the original proposal [
19
], some
parties may find it advantageous to exchange only some of
their outgoing assets for only some of their incoming assets.
As an example, suppose that Alina has a white shirt and white
pants and she joins the swap hoping to trade for a black shirt
and black pants. Coincidentally, Bohdan has exactly these items
and joins the swap looking for the reverse trade. However, both
of them would actually prefer to retain one white article of
clothing and one black article of clothing, if possible. Thus,
it would be preferable for both parties to, say, only swap the
shirts or only swap the pants, although it is also acceptable to
swap both. Such scenarios are not captured by the model in
[
19
], because the outcomes with just one item swapped are in
the class UNDERWATER.
This leads to the natural question, left open in [
19
]: is there
a more general swap model that allows each party to specify
its personal preferences over all possible swap outcomes, and,
at the same time, admits an atomic protocol.
Addressing this question, this paper introduces a general
model of cross-chain swaps that we call swap systems. In a
swap system, as in [
19
], the set of prearranged asset transfers
is represented by a directed graph. Unlike in [
19
], however, in
our model each party can specify its own preferences between
all its possible outcomes (that is, between sets consisting of
its incoming and outgoing arcs). These preferences can be
arbitrary, as long as they form a poset and satisfy natural
monotonicity conditions. This generality allows us to capture
not only subjectivity of preferences, but also dependencies
between assets. The example above (about trading clothing
items) illustrates such a dependency: for the purpose of trading,
Alina values her pair of items higher than the sum of their
individual values. Such dependencies often arise in practice
when a party intends to trade multiple assets — in fact, common
investment strategies are guided by objectives (diversification,
for example) that inherently involve asset dependencies.
As it turns out, Herlihy’s protocol is not necessarily atomic
in all swap systems, although it still satisfies the conditions of
liveness, safety, and weak Nash equilibrium. We then present
a characterization of swap systems that admit atomic protocols.
The correctness proof of this characterization embodies such a
protocol. We then focus on the problem of verifying whether
a given swap systems has an atomic protocol. To this end, we
provide a full characterization of the time complexity of this
problem and show that it’s computationally infeasible, by a
novel proof of completeness in the complexity class
ΣP
2
. As a
stepping stone to this full characterization, we also include an
easier proof of NP-hardness.
arXiv:2210.11791v2 [cs.DC] 23 May 2023
The paper is organized as follows.
In section II we introduce our model of swap systems,
including the definitions of atomic protocols in this model.
In section III we show that our model is indeed a
generalization of Herlihy’s model.
The full characterization of swap systems that admit
atomic protocols is given in section IV.
The decision problem of testing whether a swap systems
admits an atomic protocol is studied in section V and
section VI, first proving
NP
-hardness and then refining
the proof to show ΣP
2-completeness.
For readers interested in the practical impact of our work,
the overall take-out message from this paper is this: (i) Even if
some parties wish to specify outcome preferences not captured
by the model in [
19
], it still may be possible to realize the swap
with a protocol that is atomic and efficient. (ii) The challenge is
that in order to determine whether it is possible, and to actually
specify this protocol, one needs to solve a computationally
infeasible decision problem. Naturally, for small number of
parties this can still be done in practice – say by exhaustive
search.
II. SWAP SYSTEMS
As discussed in the introduction, Herlihy’s model [
19
]
for cross-chain swaps assumed that the rational behavior of
participating parties is determined by preferences between five
types of outcomes:
DEAL
,
NODEAL
,
DISCOUNT
,
FREERIDE
,
and
UNDERWATER
. These preferences were assumed to be
shared by all parties, and can be interpreted as a simple partial
order on all possible outcomes. Some of these preferences
are natural; for example, in
DISCOUNT
a party receives all
incoming assets without trading all outgoing assets, making it
preferable to
DEAL
. But, as explained in the introduction, in
practice a party may consider some outcomes designated as
UNDERWATER
in [
19
] to be acceptable, or even preferable to
DEAL
. As another example, suppose that Alina possesses items
A
and
B
that she values at
$10
and
$12
, and Bohdan possesses
items
X
and
Y
that Alina values at
$11
and
$14
. Providing
that Alina’s preferences are based only on the monetary value,
she would accept to join the swap that allows her to swap
both
A
and
B
for Bohdan’s
X
and
Y
, but she would be even
happier if she ends up swapping only
A
for
Y
instead. Similarly,
there is no justification for the outcomes in
FREERIDE
to be
incomparable to DEAL or DISCOUNT.
To represent such individual preferences, we now refine
Herlihy’s model by allowing each party to specify a partial
order on all her possible outcomes of a protocol. Our model
is very general in that (unlike in the example above) a
party’s preferences are not determined by numerical values
of individual assets, but rather involve comparing directly
whole sets of traded and acquired assets. The advantage of this
approach is that it captures dependencies between assets, when
a party values a set of assets higher or lower than the sum of
their individual values. As an example, say that Alina owns a
power drill and a shovel, while Bohdan is in possession of a
pair of skis. Alina would not swap any of her items for any
single ski, but she may be happy to swap both of her items for
the pair. On the other hand, if, instead of skis, Bohdan needs
to get rid of two skateboards, Alina may prefer to swap any
of her items for one skateboard rather than swapping both for
two skateboards.
Swap Systems. A swap system is specified by a pair
S=
(D,P)
consisting of a digraph
D
that represents the pre-
arranged asset transfers and a collection
P
of posets that
specifies the preferences of each involved party among all of
its potential outcomes. Next, we give a formal definition of
these two components of S.
Digraph
D= (V, A)
is called a swap digraph. Each vertex
vV
represents a party that participates in the swap, and
each arc
(u, v)A
represents an asset that is to be transferred
from party
u
to party
v
. By
Ain
v
and
Aout
v
we will denote the
sets of vertex
v
s incoming and outgoing arcs, respectively.
If
(x, v)Ain
v
then
x
is called an in-neighbor of
v
, and if
(v, x)Aout
v
then
x
is called an out-neighbor of
v
. Throughout
the paper we assume that
D
does not have multiple arcs
1
. We
also assume that
D
is weakly connected (otherwise a swap
can be arranged for each connected component separately).
To exclude some degenerate scenarios, we also assume that
|V| ≥ 2and that Ain
v̸=and Aout
v̸=for each vV.
An outcome of a party
vV
is a pair
ω=ωin |ωout
,
where
ωin Ain
v
and
ωout Aout
v
. An outcome represents the
sets of acquired and traded assets,
ωin
and
ωout
respectively.
The set of all possible outcomes of
v
will be denoted
v
. To
reduce clutter, instead of arcs, in
ωin |ωout
we will often list
only the corresponding in-neighbors and out-neighbors of
v
;
for example, instead of
⟨{(x, v),(y, v)}|{v, z}⟩
we will write
x, y |z.
The collection
P={Pv}vV
consists of preference posets.
The preference poset of a party
vV
is
Pv= (Ωv,v)
, where
v
is a partial order on
v
. We will write
ωvω
if
ωvω
and
ω̸=ω
. This poset naturally represents
v
s evaluation of its
potential outcomes; that is, relation
ωvω
holds if
v
views
outcome
ω
to be better than outcome
ω
. The outcome where
v
does not participate in any transfer is
NODEALv=|
and the outcome where all of
v
s transfers are realized is
DEALv=Ain
v|Aout
v
. Each preference poset
Pv
is assumed
to have the following properties:
(p.1)
DEAL
is better than
NODEAL
:
NODEALvvDEALv
.
Naturally, each party prefers swapping all assets over being
completely excluded, as otherwise it would not even join the
swap system.
(p.2) Inclusive Monotonicity:
(ωin
1ωin
2ωout
2ωout
1)
ω1vω2
, for every two outcomes
ω1, ω2v
. That is, it’s
better to receive more assets and to trade fewer assets2.
The preference pairs
ω1vω2
that are determined by rules
(p.1) and (p.2) above will be called generic. The size of the
preference poset may be exponentially large with respect to
1
This assumption is only for convenience – our model and results trivially
extend to multi-digraphs, although this requires more cumbersome notation
and terminology.
2Duuh.
the size of the swap digraph
D
, but it is not necessary for a
party to specify generic preferences as they are implied from
the above rules. Therefore, throughout the paper, we assume
that Pvis specified by its generator set, which is a subset of
its non-generic preference pairs that, together with the generic
pairs and transitivity, generate the whole poset. A generator
set of a poset may not be unique. We use this convention in
our examples and running time bounds. (This does not affect
our hardness results — they hold even if the preference poset
of each party is specified by listing all preference pairs.)
An outcome
ωv
is called acceptable if
ωNODEALv
.
The set of acceptable outcomes of a node
v
will be denoted
Av3.
Throughout the paper, we will often omit subscript
v
in these
notations (and others as well) if
v
is implicit in the context or
irrelevant. On the other hand, if any ambiguity may arise, we
will sometimes add a superscript to some notations specifying
the digraph under consideration; for example we will write
DEALD
v
to specify that outcome
DEALD
v
is with respect to
digraph D.
Protocols. Given a swap system
S= (D,P)
, a swap protocol
P
for
S
specifies actions of each party over time, in particular
it determines how assets change hands. Initially, an asset
represented by an arc
(u, v)A
is in the possession of
u
, and,
when
P
completes, this asset must be in possession of either
u
or
v
. If
(u, v)
ends up in the possession of
v
, we will say
that the arc
(u, v)
has been triggered. The outcome of
v
after
executing
P
is
ωin |ωout
, where
ωin
and
ωout
are the sets
of incoming and outgoing arcs of
v
that are triggered in this
execution. In particular, we write
P(v)
for the outcome of
v
in an execution of protocol
P
in which all parties follow
P
. If
some party (possibly
v
itself) deviates from
P
, we assume that
v
s outcome is also finalized when
P
completes, but it may be
different from P(v).
A protocol may use appropriate cryptographic primitives. In
particular, following [
19
], we assume the availability of smart
contracts. A smart contract for an arc
a= (u, v)
allows
u
to
put asset
a
in an escrow secured with a suitable collection
of hashed time-locks: each such time-lock is specified by a
pair
(h, τ)
, where
h=H(s)
is a hashed value of a secret
s
and
τ
is a time-out value. In order to unlock this time-lock,
v
(and only
v
) must provide the value of
s
before time
τ
.
If all time-locks of
(u, v)
are unlocked,
v
can claim
a
. This
automatically triggers arc
(u, v)
. If any time-lock times out,
a
is automatically returned to
u
. We describe a more elaborate
hashed time-lock in the next section.
Properties. For a swap protocol to be useful, it must guarantee
that if all parties follow it then every party ends in an outcome
at least as favorable as trading all their outgoing for all their
3
This definition can be relaxed to allow some outcomes incomparable
to
NODEAL
be acceptable. In this extended model, the set
Av
of accept-
able outcomes would be part of a swap system specification, and would
have to satisfy three conditions: (i)
{ω:ωNODEALv} ⊆ Av
, (ii)
{ω:ωNODEALv}∩Av=
, and (iii)
ω∈ Avωωω∈ Av
.
Our results can be extended naturally to this model. We adopted the simpler
definition to streamline the presentation.
incoming assets. Further, every conforming party should end
up with an acceptable outcome, no matter whether other parties
follow the protocol or not. Lastly, rational parties should have
no incentive to deviate from the protocol. Herlihy [
19
] captured
these properties using the concepts of uniformity and strong
Nash equilibrium. Our definitions, below, are their natural
extensions to the more general model of swap systems.
Uniformity. A swap protocol
P
is called uniform if it
satisfies the following two conditions:
Liveness: If all parties follow
P
, they all end in outcome
DEAL or better, that is P(v)DEALvfor all vV.
Safety: If a party conforms to
P
, then its outcome will be
acceptable, independently of the behavior of other parties.
A less restrictive concept of uniformity may also be of interest:
We say that a protocol
P
is weakly uniform if it satisfies the
safety condition above, but the liveness condition is replaced by
the following weak liveness requirement: if all parties follow
P
, then at least one party ends in an outcome strictly better
than NODEAL. The assumptions on preference posets imply
directly that a protocol that is uniform is also weakly uniform.
Nash equilibria and atomicity. We extend the concept of
outcomes to sets of parties, where an outcome of a set is just a
vector of individual outcomes. On this set we can then define
a preference relation in a standard way, via a coordinate-wise
ordering of outcomes. Formally, for any set of parties
CV
,
an outcome vector of
C
is
¯ω= (ωv)vC
, where
ωvv
for
all
vC
. Denote by
¯
C
the set of all outcome vectors of
C
.
Given two outcome vectors
¯ω, ¯ω¯
C
, we write
¯ωC¯ω
if
ωvvω
v
for all
vC
. If also
¯ω̸= ¯ω
then we write
¯ωC¯ω
. (In other words,
¯ωC¯ω
means that at least one
party in
C
does strictly better in
¯ω
than in
¯ω
, and every party
in
C
does at least as good.) In this notation, if all parties follow
a protocol
P
, then the outcome vector
P(C)
of a protocol
P
for a set of parties Cis (P(v))vC.
We will say that a protocol
P
is a strong Nash equilibrium
if no coalition of participating parties can improve its vector
outcome by deviating from
P
; more precisely, for every set
C
of parties, if
¯ω
denotes the outcome vector of
C
in some
execution of
P
where all parties in
V\C
follow
P
, then we
cannot have
¯ωCP(C)
. We will call
P
atomic if it is both
uniform and a strong Nash equilibrium.
Example 1. Consider a swap system
S= (D,P)
whose
digraph
D
is shown in Figure 1. The preference poset
Pu
is
generated by two preference pairs
DEALu≺ ⟨v|v⟩ ≺ ⟨v|w
,
the preference poset
Pv
is generated by two preference pairs
DEALv≺ ⟨u|u⟩≺⟨w|u
, and the preference poset
Pw
is
generated by one preference pair DEALw≺ ⟨u|v.
Consider also a swap protocol
P
for
S
such that if all parties
follow
P
then all end up with outcome
DEAL
. Then
P
is not a
strong Nash equilibrium, because for
C={u, v}
, the parties
in
C
can ignore
P
altogether and simply swap their assets
between themselves, improving their outcomes. Nevertheless,
as we show later in Section IV,
S
does have an atomic protocol.
Roughly, instead of using the whole digraph
D
, in this protocol
only assets represented by arcs
(u, w)
,
(w, v)
and
(v, u)
will
be swapped. Then the outcome of each party will be better
<latexit sha1_base64="GRS/k2NURQKKhlLWAeXz6/04pXw=">AAAB6HicdVDLSsNAFJ3UV62vqktBBovgKiRNsenKghuXLdgHtKFMppN27GQSZiZCCV26cuNCEbd+hd/hzm/QjX/gtFVQ0QMXD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XXMxubW9s72d29qgpjSbFCQx7KukcUciawopnmWI8kksDjWPP6V+O8dodSsVDc6EGErYB0BfMZJdpY5ft2NufknYnsRXBnkLv8GJW/Hw5HpXb2s9kJaRyg0JQTpRquE+lWQqRmlOMw04wVRoT2SRcbBgUJULWSyaBD+9g4HdsPpXlC2xP3d0dCAqUGgWcqA6J7aj4bm/9ljVj7hVbCRBRrFHT6kR9zW4f2eGu7wyRSzQcGCJXMzGrTHpGEanObjDmCO7/yIlRP8+55/qzs5ooFmCoNB3AEJ+DCBRThGkpQAQoIj/AML9at9WS9Wm/T0pQ169mHP7LefwCsOZFD</latexit>
w
Fig. 1. The digraph Din the example.
than
DEAL
, and
u
and
v
will have no incentive to deviate from
this protocol.
III. HERLIHYSSWAP MODEL
In this section, we show that the concept of swap systems
is a generalization of Herlihy’s model [
19
]. To this end, we
define a simple type of swap system called h-swap systems,
and we show that it captures the model in [
19
]. In particular
we prove that in h-swap systems, our definition of atomicity
is equivalent to the definition in [19].
h-Swap Systems. Given a swap system
S= (D,P)
and a
party vV, define three sets of outcomes of v:
DISCOUNTv=ω|ωin =Ain
vωout ̸=Aout
v
FREERIDEv=ω|ωin ̸=ωout =
UNDERWATERv=ω|ωin ̸=Ain
vωout ̸=
Since
Ain
v̸=
and
Aout
v̸=
, all sets
DISCOUNTv
,
FREERIDEv
and
UNDERWATERv
are well-defined,
none of them contains
NODEALv
nor
DEALv
,
UNDERWATERv(DISCOUNTvFREERIDEv) =
,
DISCOUNTvFREERIDEv={⟨Ain
v|⟩}, and
v={NODEALv}∪{DEALv} ∪ DISCOUNTv
FREERIDEvUNDERWATERv.
The inclusive monotonicity property (p.2) implies that all
outcomes in
FREERIDEv
are better than
NODEALv
, and all
outcomes in DISCOUNTvare better than DEALv.
We will call
S
an h-swap system if it satisfies the following
conditions for all vV:
(h.1) If ωUNDERWATERvthen ωvNODEALv,
(h.2) Party
v
has no other non-generic preferences besides
these in (h.1).
In other words, in an h-swap system all preference posets
are generated by relations
ωNODEAL
for outcomes
ω
in
UNDERWATER
. Figure 2 illustrates the structure of a preference
poset of an h-swap system
4
. Note that in an h-swap system,
the set of acceptable outcomes of a node
v
is
Av= Ωv\
UNDERWATERv={NODEALv}∪{DEALv}DISCOUNTv
FREERIDEv
. The preferences of an h-swap system
S= (D,P)
are uniquely determined by its digraph
D
, so it is not even
necessary to specify P.
The preference poset structure of h-swap systems, as defined
above, captures the concept of a party’s preferences assumed
4
This figure differs slightly from Figure 3 in [
19
], which mistakenly showed
the sets DISCOUNTvand FREERIDEvas disjoint.
<latexit sha1_base64="tEYFmYDP6G+S/0/Oa+tQDqm0nDM=">AAAB/nicdVDLSgNBEJz1GeMrRjx5GQyCp2U3CSZ6CnjxqGhUSEKYnXR0cHZ2melVwxLwG/wDETwo4tXv8ObRP3GSKKhoQUNR1U13VxBLYdDz3pyx8YnJqenMTHZ2bn5hMbeUPzJRojnUeSQjfRIwA1IoqKNACSexBhYGEo6D852Bf3wB2ohIHWIvhlbITpXoCs7QSu3cShPhCg1P66oD+pIh6H77op0reK5XLBe3StRz/VK1VClbUqx6ldIW9V1viEIt/759czd5sNfOvTY7EU9CUMglM6bhezG2UqZRcAn9bDMxEDN+zk6hYaliIZhWOjy/T9et0qHdSNtSSIfq94mUhcb0wsB2hgzPzG9vIP7lNRLsVlupUHGCoPhoUTeRFCM6yIJ2hAaOsmcJ41rYWyk/Y5pxm4LJ2hC+PqX/k6Oi62+6/r5fqFXJCBmyStbIBvFJhdTILtkjdcJJSm7JA3l0rp1758l5HrWOOZ8zy+QHnJcPzEOZoA==</latexit>
Underwaterv
<latexit sha1_base64="7S8DvtLOay8yjez8D5MEqyhJ0OQ=">AAAB+nicdVDLSgNBEJz1bXwl8ehlMAielt1ETPQU0IMnUTSJkIQwO+kkg7MPZnrVsOYnvHtRUMSrX+LNo3/iJFFQ0YKGoqqb7i4vkkKj47xZE5NT0zOzc/OphcWl5ZV0JlvVYaw4VHgoQ3XmMQ1SBFBBgRLOIgXM9yTUvPO9oV+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NMjmgkuWQ04CNYMFSO+J1jDGx5P/caIKc0DeQHjkHV8cil5n1MCRuqmMm1gV6BpfMI1DSIJk+6om8o6tpMr5Mp57NhuvpQvFgzJlZxivoxd25khW0m/H93cLZ9Xu6nXdi+gkc8kUEG0brlOCJ2YKOBUsEmyHWkWEjokl6xlqCQ+0514dvwE7xulh/uBMiUBz9TvEzHxtR77nun0CQz0b28q/uW1IuiXOjGXYQRM0vmifiQwBHiaBO5xxSiIsSGEKm5uxXRAFKFg8kqaEL4+xf+Tes52D233zM1WSmiOBNpFe+gAuaiIKugUVVENUTRGt+gBPVrX1r31ZD3PWxesz5kM+gHr5QMpzZi0</latexit>
Discountv
<latexit sha1_base64="kJ0fx3IVSDhZgMiYwvNioR19AkU=">AAAB+HicdVDLSgNBEJz1GeMrxqOXwSB4WnYTMYmngB48RjQPSEKYnXR0cPbBTG8wLvkJr14EFfHqp3jz6J84SRRUtKChqOqmu8uLpNDoOG/WzOzc/MJiaim9vLK6tp7ZyNZ1GCsONR7KUDU9pkGKAGooUEIzUsB8T0LDuzwc+40BKC3C4AyHEXR8dh6IvuAMjdTNrLcRrlDz5AiYHHUH3UzOsZ38Xr5coI7tFkqF4p4h+ZJTLJSpazsT5CrZ94Ob+/nTajfz2u6FPPYhQC6Z1i3XibCTMIWCSxil27GGiPFLdg4tQwPmg+4kk8NHdMcoPdoPlakA6UT9PpEwX+uh75lOn+GF/u2Nxb+8Voz9UicRQRQjBHy6qB9LiiEdp0B7QgFHOTSEcSXMrZRfMMU4mqzSJoSvT+n/pJ633X3bPXFzlRKZIkW2yDbZJS4pkgo5JlVSI5zE5JY8kEfr2rqznqznaeuM9TmzSX7AevkAtTGWuQ==</latexit>
Dealv
Fig. 2. The structure of a preference poset of a party
v
in an h-swap system. The
arrows symbolize the preference relation. The one outcome in
DISCOUNTv
FREERIDEvis Ain
v|.
in the model from [
19
], except for the addition of preferences
determined by inclusive monotonicity.
Comment. The model in [
19
] was not formulated in terms
of posets, raising a question of how to formally capture a
relation for pairs of outcomes between which preferences
were not specified in [
19
]. In our model, such outcomes
are considered incomparable in the poset (unless they are
related by the inclusive monotonicity). One may try to consider
another option: to allow arbitrary relations between such
pairs, providing that the poset axioms are satisfied and the
condition (h.1) holds. However, with this approach there is
no meaningful way to extend such individual preferences to
collective preferences of sets of parties (see the discussion later
in this section).
h-Uniformity. To distinguish between our and Herlihy’s
definition of uniformity, we will refer to his concept as h-
uniformity. A swap protocol
P
is called h-uniform if it satisfies
the safety property and the following h-liveness condition:
If all parties follow
P
, they all end in outcome DEAL. This
condition seems stricter than our definition of uniformity, but
we show that in h-swap systems these two definitions are in fact
equivalent. In fact, they are also equivalent to weak uniformity,
as defined earlier in Section II.
Lemma 1. Let
S= (D,P)
be an h-swap system in which
some subset of arcs in
D
are triggered, and let
Q
be a path in
D
whose all internal nodes are in acceptable outcomes. Then,
along
Q
, all triggered arcs of
Q
are before all non-triggered
arcs of Q.
Proof.
If all arcs on
Q
are triggered, except possibly for the
last one, we are done. Otherwise, let
(x, y)
be the first non-
triggered arc on
Q
and let
z
be the successor of
y
. Since
y
s
outcome is acceptable and
(x, y)
is not triggered, this outcome
must be either
NODEALy
or in
FREERIDEy
. Therefore
(y, z)
is also not triggered. Repeating this argument, we obtain that
all arcs on Qafter (x, y)are not triggered.
Theorem 1. Let
P
be a swap protocol for an h-swap system
S= (D,P)
, where
D
is strongly connected. Then the following
three conditions are equivalent: (i)
P
is uniform, (ii)
P
is weakly
uniform, (iii) Pis h-uniform.
Proof.
Trivially, h-uniformity implies uniformity, which in turn
implies weak uniformity. Thus it is sufficient to show that weak
uniformity implies h-uniformity.
So assume that
P
is weakly uniform. As the safety condition
is the same, it is sufficient to show that
P
satisfies the h-
liveness property. Assume that all parties follow
P
. Then, from
the assumptions about safety and weak liveness, all parties will
end up in acceptable outcomes, with at least one party ending
in an outcome strictly better than NODEAL.
Suppose, towards contradiction, that there is a party with
outcome other than
DEAL
. This gives us that some arc
(x, y)
is not triggered. Further, since some party has an outcome
other than
NODEAL
, there must be a triggered arc
(x, y)
. By
strong connectivity, there is a path
P
from
x
to
y
whose first
arc is
(x, y)
and the last arc is
(x, y)
. Then the existence of
this path contradicts Lemma 1.
h-Atomicity. The approach in [
19
] differs from ours in the
way it formalizes the gain of a coalition (subset) of parties
when they deviate from the protocol. Roughly, the definition
in [
19
] captures a collective gain, while our definition views it
as a vector of individual outcomes. In spite of this apparent
difference, we show that in h-swap systems our concept of
atomicity is in fact equivalent to the one in [19].
In the discussion below, let
S= (D,P)
be a fixed h-swap
system. Following [
19
], we will define the h-outcome of a
coalition
C
of parties by, in essence, contracting
C
into a single
vertex. (The term “h-outcome” is ours, to better distinguish
this concept from our concept of outcome vectors.) More
formally, define
C
s incoming and outgoing arcs in a natural
way:
Ain
C=Sv∈C Ain
v\Sv∈C Aout
v
and similarly,
Aout
C=
Sv∈C Aout
v\Sv∈C Ain
v
. The h-outcomes for
C
are pairs
ˆω=
ˆωin |ˆωout
where
ˆωin Ain
C
and
ˆωout Aout
C
.
C
is the set
of all h-outcomes of
C
. The preference poset and acceptable
set of
C
are defined analogously to that of a single party
in an h-swap system. That is, we define NODEALC, DEALC,
DISCOUNTC
,
FREERIDEC
, and
UNDERWATERC
in the natural
way, and we assume the analogues of conditions (p.1) and (p.2)
for swap systems (in Section II) and conditions (h.1) and (h.2)
for h-swap systems. The set of acceptable h-outcomes
AC
consists of all h-outcomes of
C
that are not in
UNDERWATERC
.
(Note that if
C
consists of a single party then its h-outcome is
identical to its outcome.)
Define a protocol
P
to be a strong Nash h-equilibrium if
it satisfies the following condition for every set
C
of parties:
providing that the parties outside
C
follow
P
, the parties in
C
cannot end up in an h-outcome better than their outcome
resulting from following
P
.
P
is called h-atomic if it is h-
uniform and a strong Nash h-equilibrium.
Culminating the earlier discussion, the following theorem
establishes that our model indeed captures the model introduced
in [19].
Theorem 2. Let
P
be a protocol for an h-swap system
S=
(D,P).Pis atomic if and only if it is h-atomic.
Proof. ()
Suppose that
P
is atomic. Theorem 1 implies that
P
is h-uniform. Thus, from the definition of h-uniformity, if
all parties follow Pthen each party’s outcome will be DEAL.
It remains to show that
P
is a strong Nash h-equilibrium. Let
CV
, and consider an execution of
P
in which all parties
outside
C
follow
P
. Since
P
is a strong Nash equilibrium, the
outcome vector of
C
is not better than
(DEALv)vC
. Denote
by
ˆω
the h-outcome of
C
. We need to show that
ˆω
is not better
than DEALC.
Towards contradiction, suppose that
ˆωDEALC
. The
definition of preference posets for h-outcomes gives us that
ˆωDISCOUNTC
. Now consider another execution of
P
where
the parties in
C
behave just like before, but they also trigger
all arcs connecting two members of
C
. This will not affect
the execution of
P
for parties outside
C
. Then the outcome
vector
¯ω
of
C
consists of all arcs between
C
and
V\C
(in
both directions) that are triggered in
ˆω
, as well as all arcs
with both endpoints inside
C
. Since
ˆωDISCOUNTC
, each
vC
has all its incoming arcs in
¯ω
, and there is at least
one
uC
that has one arc to
V\C
that is not in
¯ω
. So the
outcome of each
vC
is either
DEALv
or
DISCOUNTv
, and
this
u
s outcome is
DISCOUNTu
. But then
¯ω
is better than
(DEALv)vC
, contradicting the assumption that
P
is a strong
Nash equilibrium.
()
Now suppose that
P
is h-atomic; that is,
P
is h-uniform
and is a strong Nash h-equilibrium. From Theorem 1 we obtain
that Pis uniform.
It remains to prove that
P
is a strong Nash equilibrium. Let
CV
, and consider some execution of
P
in which all parties
outside
C
follow
P
. Since
P
is a strong Nash h-equilibrium,
the h-outcome of
C
is not better than
DEALC
. We need to
show that
C
s outcome vector is not better than
(DEALv)vC
.
We again argue by contradiction. Suppose that
C
s outcome
vector is
¯ω(DEALv)vC
. Then each
vC
has outcome
in
{DEALv} ∪ DISCOUNTv
and there is some
uC
with
outcome in
DISCOUNTu
. This implies that all parties in
C
have their incoming arcs in
¯ω
. Further, some outgoing arc of
u
is not in
¯ω
, and this arc must go to
V\C
. We consider
the h-outcome of
C
in the same run of
P
, without changing
the behavior of any members of
C
. (In the h-outcome of
C
the status of arcs internal to
C
is not relevant.) Denote this
h-outcome by
ˆω
. Then
ˆω
will include the same arcs between
C
and
V\C
(in both directions) as in
¯ω
. The properties of
¯ω
established earlier imply that
ˆωDISCOUNTC
, and thus
ˆωDEALC
, which contradicts our earlier assumption that
P
is a strong Nash h-equilibrium.
Herlihy’s Protocol. Herlihy presented a protocol for h-swap
systems [
19
] that is h-atomic. We summarize this protocol that
we will refer to as H.
Since the generation and distribution of the swap system is
not the focus of this paper, we assume a third-party service that
reliably distributes information to the participating parties. The
service begins by assembling a swap graph
D
and distributing
it to every party. Each party
pi
then generates and hashes a
secret
hi=hash(si)
and sends it back to the service.
5
The
5
Herlihy describes an optimization where the service computes a feedback
vertex set for
D
(i.e. the removal of this set would leave
D
acyclic). He refers
to these parties as leaders and only uses the hashed secrets of these parties
in subsequent steps of the protocol. As this is not a necessary step, we will
ignore it for simplicity.
摘要:

Cross-chainSwapswithPreferencesEricChanUniversityofCaliforniaatRiversideMarekChrobakUniversityofCaliforniaatRiversideMohsenLesaniUniversityofCaliforniaatRiversideAbstract—Extremevaluationandvolatilityofcryptocurrenciesrequireinvestorstodiversifyoftenwhichdemandssecureexchangeprotocols.Across-chainsw...

展开>> 收起<<
Cross-chain Swaps with Preferences Eric Chan University of California at RiversideMarek Chrobak.pdf

共23页,预览5页

还剩页未读, 继续阅读

声明:本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。玖贝云文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知玖贝云文库,我们立即给予删除!
分类:图书资源 价格:10玖币 属性:23 页 大小:2.79MB 格式:PDF 时间:2025-05-06

开通VIP享超值会员特权

  • 多端同步记录
  • 高速下载文档
  • 免费文档工具
  • 分享文档赚钱
  • 每日登录抽奖
  • 优质衍生服务
/ 23
客服
关注