1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
Return-Path: <ZmnSCPxj@protonmail.com>
Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])
by lists.linuxfoundation.org (Postfix) with ESMTP id 9AEA6C016F
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 22 Jun 2020 08:15:45 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by fraxinus.osuosl.org (Postfix) with ESMTP id 8A04480EC3
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 22 Jun 2020 08:15:45 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from fraxinus.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id VklXtItd7YZr
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 22 Jun 2020 08:15:42 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch
[185.70.40.140])
by fraxinus.osuosl.org (Postfix) with ESMTPS id B7ADC863D9
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 22 Jun 2020 08:15:42 +0000 (UTC)
Date: Mon, 22 Jun 2020 08:15:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail; t=1592813740;
bh=4ufDAYpemMD6ja0EabLfrxZjt1v2Dt/TZGV3g3LDNH0=;
h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From;
b=I3ZZmljcBI5EkSPK27RFAsZMbBKYAVKlJhUxq5yrXyjPRvsC/BW+rV8POcelm5Mx7
lftjpFs+3q58M4h2byprd4aHCe6GrDz79H/7H1darADd+MQ8xHO2QA1RT1wJ+d+xrI
iJfxCNFM8U3umz6Y7+RUI9tjXHwBlJ+ot6pWHY00=
To: Bastien TEINTURIER <bastien@acinq.fr>
From: ZmnSCPxj <ZmnSCPxj@protonmail.com>
Reply-To: ZmnSCPxj <ZmnSCPxj@protonmail.com>
Message-ID: <F7ZA7-s3UnfMlhYdA1esEhJIhgNIBSKCfHWG64UAcMvQM-ZS6Do7xMg8OfYhbkHIFNodbLIe51TQG7Ps3jFXFoS80EJ6oEh8n2009vbnl04=@protonmail.com>
In-Reply-To: <CACdvm3NTY1UYWJg=SJm+TAZSi5RophxhRvze9gKi9PyEHx0PgA@mail.gmail.com>
References: <PtYNeePySy_thDHm8FwIIGEk32EjJpSmiwPctyEg0hOrLZEHjO1IBghm4MWY88g51K-XF2pf_JDnW0UdTL6QSbACEj21h9U1s5ITc_N3I6Q=@protonmail.com>
<67334082-5ABA-45C7-9C09-FF19B119C80D@mattcorallo.com>
<62P_3wvv8z7AVCdKPfh-bs30-LliHkx9GI9Og3wqIK6hadIG0d6MJJm077zac1erpPUy31FqgZjkAjEl9AQtrOCg4XA5cxozBb7-OIbbgvE=@protonmail.com>
<4c4f3a06-0078-ef6a-7b06-7484f0f9edf1@mattcorallo.com>
<CACdvm3Of_9zhNmzCxeK-z8oz6wU=8RuDjr0R9+yrGeFjLYz9pg@mail.gmail.com>
<20200619195846.fclw4ilngvbbf2kk@ganymede>
<20200619205220.fshbr7pbijaerbf2@ganymede>
<CACdvm3O+A5M17rqejzAMUzE+fxLdzqnDY2m5+rnc5C=nzyPp9g@mail.gmail.com>
<20200620103647.g62srlcxbjqpaqj6@ganymede>
<CACdvm3NTY1UYWJg=SJm+TAZSi5RophxhRvze9gKi9PyEHx0PgA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>,
lightning-dev <lightning-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] [Lightning-dev] RBF Pinning with Counterparties
and Competing Interest
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jun 2020 08:15:45 -0000
Good morning Bastien,
> Thanks for the detailed write-up on how it affects incentives and central=
ization,
> these are good points. I need to spend more time thinking about them.
>
> > This is one reason I suggested using independent pay-to-preimage
> > transactions[1]
>
> While this works as a technical solution, I think it has some incentives =
issues too.
> In this attack, I believe the miners that hide the preimage tx in their m=
empool have
> to be accomplice with the attacker, otherwise they would share that tx wi=
th some of
> their peers, and some non-miner nodes would get that preimage tx and be a=
ble to
> gossip them off-chain (and even relay them to other mempools).
I believe this is technically possible with current mempool rules, without =
miners cooperating with the attacker.
Basically, the attacker releases two transactions with near-equal fees, so =
that neither can RBF the other.
It releases the preimage tx near miners, and the timelock tx near non-miner=
s.
Nodes at the boundaries between those that receive the preimage tx and the =
timelock tx will receive both.
However, they will receive one or the other first.
Which one they receive first will be what they keep, and they will reject t=
he other (and *not* propagate the other), because the difference in fees is=
not enough to get past the RBF rules (which requires not just a feerate in=
crease, but also an increase in absolute fee, of at least the minimum relay=
feerate times transaction size).
Because they reject the other tx, they do not propagate the other tx, so th=
e boundary between the two txes is inviolate, neither can get past that bou=
ndary, this occurs even if everyone is running 100% unmodified Bitcoin Core=
code.
I am not a mempool expert and my understanding may be incorrect.
Regards,
ZmnSCPxj
|