summaryrefslogtreecommitdiff
path: root/53/6b006965beddadcb8e6e06cd73f8bed83304e6
blob: 699f18c7fc41d48b98cb652069bc7865310581b2 (plain)
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
Delivery-date: Wed, 27 Mar 2024 12:18:44 -0700
Received: from mail-oo1-f57.google.com ([209.85.161.57])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBC3PT7FYWAMRBDHCSGYAMGQEDKLI5DY@googlegroups.com>)
	id 1rpYnL-0008Bv-4j
	for bitcoindev@gnusha.org; Wed, 27 Mar 2024 12:18:44 -0700
Received: by mail-oo1-f57.google.com with SMTP id 006d021491bc7-5a061ace71fsf130092eaf.1
        for <bitcoindev@gnusha.org>; Wed, 27 Mar 2024 12:18:42 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1711567117; cv=pass;
        d=google.com; s=arc-20160816;
        b=p2Yi0tPBaH8JRNjBNYyt0YHXStqxswIGMNPAzflR0RX8riNvr31a0lQ6gx1ABFP/OI
         cAIU4u23VoLDNEu/CQf1KOx5K8nhsFhkg26oVOx/hznFGjH9n5SnkpnJsA/w9Y9KFbWl
         pNYCNLtYEMp0R1PTt8jp7ZvndtOpTgW1Vm4EYpc3MQ6RypTyDjIN9Z1PNG7sqn64RTUS
         aOTvis2/fyZHoPyrPpCjTeWBtFOiNvapFz4P6MQQ903yhdCfgeXMS7miJYm0iyp2OM7D
         mJch4xnk+pD4fZxYLBOWBW5GjchNRcylkMFbTZqYsQYWxptBEYiCDiNTd1FpPWA89N7J
         O6lQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:sender:dkim-signature
         :dkim-signature;
        bh=38uO4SczzUTRYBRryegR7oK2HT+9tfQuK2pwweYPdig=;
        fh=seygoday3Lcwo1ioXgwBzX9RfW6kjPQ+3J1iJ6vUh0k=;
        b=MDCER1Zx0kETfl4mrbp5cB2sbg6ScUp2kea2dLTqvHd70JaSt2eMvrew9udpoyOoRx
         8z7G8ZVS0niH/lAGLmdI3CkW5RFyAgpSO6cAuFa4xArj4dQRlztGfqXkzpPM99plaWbf
         U1Jzo4QUg2GoASlVQD9Nvae37RL5WY6DWyribXywvzREmUmA+RoibOi9R0bRp+7cebvB
         U8QJqxCdBRebom03BME9gLUscex2zrdlg4s9yZ4B8JJ0LjIaX5ZVVkfLjoTu4pbCb6tE
         PYGQhDwkiUTzy6AOZiPPuj1k/X8oLt/xUJXz4Urne443cjjZyfTje0jaz7fUosRHpDbt
         /2dg==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=R7g6aKxN;
       spf=pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) smtp.mailfrom=antoine.riard@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1711567117; x=1712171917; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=38uO4SczzUTRYBRryegR7oK2HT+9tfQuK2pwweYPdig=;
        b=OAMqtG9mi/7vl32LdarR/QjTPyHk+oZTptqpfyLaovd2LWdSzSHTQVK4Q2sU3Ik7S6
         D/xikL5ZOInUURotoNtNLnjjMkvISLbcjQIzwXpMBLpuF7ohM79Ff32ZX7DCfaAi2dk6
         5xce2JJJ6XsOJiu73ys2QtlijB+M/6btKRcHZJyckH6J6Y9NrigzJpvmAGWo+KStSmhE
         IVa9trlKFWRa3MB2Od/uXbEOH0bvE8zZBivqaV1wih4cMNMtWCe7lcVjB5qHSNMNJJdw
         gLkUGzrSL9/E4k0qSt28ZuilYgZLqM1Nce3rnKG4ytnT8wz2iKsg4Be1D0tTwnXdd0wO
         9RlQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1711567117; x=1712171917; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:from:to:cc:subject:date:message-id:reply-to;
        bh=38uO4SczzUTRYBRryegR7oK2HT+9tfQuK2pwweYPdig=;
        b=FpxkBwy2VADrzWBZVpV4LeSGToHbcVsLk3+OulF9kbWTlQaOl/9ebPGsmob8szT3KE
         0jeYDg+DptsKuBFMpPVjrwVujaqvL0KfCHYqs0xyfpto893H92dous1tKDr7fvFoij7j
         1YmC4lszlCV3KKWLLugReQKVN+9JysdskTy/vdnbAQevIoFAlxX+mCLIAlej+/U6rXiT
         ILHhM6OegS74VszjkKsbb7qw9tGr9FK2LTq/ABhNX2gOjYy9RSpy9PC4lbVKaq4I9AyG
         eLrJkvET1187h8Mvk5PJTEaCU3P9vpGGhTG/MVqcNtqo9EozDD+J9/uud3tpejHJWUwd
         i6Hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1711567117; x=1712171917;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-beenthere:x-gm-message-state:sender:from
         :to:cc:subject:date:message-id:reply-to;
        bh=38uO4SczzUTRYBRryegR7oK2HT+9tfQuK2pwweYPdig=;
        b=DdZKeqkdDoag/UNIvkiESUVyTe3pFFGB+yRzSn3m7l4BrCVczFgC8LznFHgIcIy/MP
         T/PdPUaO69YQ+oI7g4ggbHF87CS3qo0wVkbdURMJn+Zd+udpAXf+VKCQWYpxBJ+LBM3e
         700qPea6+cUJ1laC3sVxfuQq0fhrtlINpju4HVYIxVkoQyxTpbHjETPMjQ/qXCouuV+w
         xuw3z6y4DR4dpTku6ex7XMHGQjQtYVjUdr842fGRWOgfPrCIu2MMCFDZJiQ3za10DYeA
         XyEa86jGChxijGZmc5za16EoIwpar7BMo66jtJDqAjyLqKPhzhI/Hg8HIYOkLmvNEEX7
         lMmQ==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCVyDTpmny4rIFnCJqVDakq7A636KwOShOdQztLQrBMvnoXfQPL9gBPLQfU/uBYk5sz/HbMNyxC1gWIGCuTzLLqglrVFXfE=
X-Gm-Message-State: AOJu0YxFEr4/0KIJVxW2PE8vp/lijvcDA75vGRVFulrNSUpdBsfXBH83
	mco10DHrkFvlMPrrCgb+sBrXCLLR5VdGvy8bBexc2YzBmHtNWhs2
X-Google-Smtp-Source: AGHT+IFNh6VWO6t926cLG/IHVULRjK1ewdfmsPaQd0dlZmj9uwR7O+Mn4qzl3L7e8S9caP4mjDgT8A==
X-Received: by 2002:a05:6820:1b15:b0:5a5:639a:2fa0 with SMTP id bv21-20020a0568201b1500b005a5639a2fa0mr1377202oob.0.1711567116708;
        Wed, 27 Mar 2024 12:18:36 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a4a:df08:0:b0:5a5:2802:a23d with SMTP id i8-20020a4adf08000000b005a52802a23dls157276oou.2.-pod-prod-07-us;
 Wed, 27 Mar 2024 12:18:36 -0700 (PDT)
X-Received: by 2002:a05:6830:4122:b0:6e6:f83d:57fb with SMTP id w34-20020a056830412200b006e6f83d57fbmr30503ott.0.1711567116090;
        Wed, 27 Mar 2024 12:18:36 -0700 (PDT)
Received: by 2002:a05:6808:1288:b0:3c3:d110:85c6 with SMTP id 5614622812f47-3c3de9a8d9fmsb6e;
        Wed, 27 Mar 2024 12:17:37 -0700 (PDT)
X-Received: by 2002:a17:90a:ca90:b0:2a0:1167:bfea with SMTP id y16-20020a17090aca9000b002a01167bfeamr694902pjt.5.1711567056512;
        Wed, 27 Mar 2024 12:17:36 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1711567056; cv=none;
        d=google.com; s=arc-20160816;
        b=b7TpJfKZl3Cd4geCCj7mormOYuQgwpDg2Bt9MEytrZSiwt5scz/lzQ9hQIrX27PLGq
         Be0wbpL9clmUfSwSktotZVHOKK4g0TRWMJjHSTeAIYVZKsRR4FBlHI+u/vxqNGNIJjxJ
         j7yDEgUpArbWZDWaUJsjTdaiXinlN23ZUy1G5yWU9nuD0Fx117ZDqZefmaeeqvEJSGTb
         Zseyv0zkXVMsmX3L0sKSJAnDMjLINyhGwi82rkU6vhD6WEHtCMKz7op6pFFkiszYLxww
         al1IBomNrdwIQhwwYDsSzl/p74IiZ0LbDPh9BulmFMwDrs9E0fddfDeFuqJb5Xgr8UbK
         66jQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=dddTl5gToprjAWiVKUyhMwg1yX+k8q4b8nmKnpZebdU=;
        fh=yPd8HNyAt94w6+9mawPnFhKq8crEnOt8R5D/kg3m3ro=;
        b=ZwDhSVn32OktJqxaT3jNDA94T/PjJt5OyHoe/1VlV7dxr+fWxIPswadvjbozP9/Ec5
         jxp+vuG4z2VWV3W4UEXXmoznpFGbSJfgWnSMST69ub7IS4nJNIbqgO2uPESNnVoPmDGZ
         W/0DHCFXfcwKnrveEBZjLxfvRHil/uKiZ4yPCFbF5E7vI+/k/jAO6emqlMIocDe+c5ad
         SX6vUJb4T3HsjmUaCr14NKPHErGn/boF9PeOT+wKbLaN09x3anVkXgg/QzT7wf2UsAim
         JWsJAmEwNz/ZpHprPRRehDcc+fJSyBVRwBq9Q/OnULDWxtgIRGZq++HvAdB6CyuFttqy
         NIpw==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=R7g6aKxN;
       spf=pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) smtp.mailfrom=antoine.riard@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com. [2607:f8b0:4864:20::d36])
        by gmr-mx.google.com with ESMTPS id i18-20020a17090ad35200b002a04a08d984si573134pjx.1.2024.03.27.12.17.36
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Wed, 27 Mar 2024 12:17:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) client-ip=2607:f8b0:4864:20::d36;
Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-7d0486e3250so6044839f.1
        for <bitcoindev@googlegroups.com>; Wed, 27 Mar 2024 12:17:36 -0700 (PDT)
X-Received: by 2002:a05:6602:1b10:b0:7d0:80b2:507e with SMTP id
 dk16-20020a0566021b1000b007d080b2507emr1229395iob.16.1711567055624; Wed, 27
 Mar 2024 12:17:35 -0700 (PDT)
MIME-Version: 1.0
References: <Zfg/6IZyA/iInyMx@petertodd.org> <0a377ddb-b001-41ba-9208-27b3fa059bb5n@googlegroups.com>
 <ZgQZUOCc/dSjKMoL@petertodd.org>
In-Reply-To: <ZgQZUOCc/dSjKMoL@petertodd.org>
From: Antoine Riard <antoine.riard@gmail.com>
Date: Wed, 27 Mar 2024 19:17:24 +0000
Message-ID: <CALZpt+GOCiwYdK4vfkODrT0Sx6HxCAuvhVqa1c5o3Xjy03OiAQ@mail.gmail.com>
Subject: Re: [bitcoindev] Re: A Free-Relay Attack Exploiting RBF Rule #6
To: Peter Todd <pete@petertodd.org>
Cc: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Content-Type: multipart/alternative; boundary="0000000000005c28910614a9425b"
X-Original-Sender: antoine.riard@gmail.com
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20230601 header.b=R7g6aKxN;       spf=pass
 (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d36
 as permitted sender) smtp.mailfrom=antoine.riard@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.5 (/)

--0000000000005c28910614a9425b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Peter,

Answering the latest 2 emails.

> Since this attack is just a relatively minor extension of existing,
publicly
> disclosed, attacks, I don't think there was any need for formal disclosur=
e
> timelines. It's interesting that the attack exists; it does not
substantially
> change the status quo.

Of course, it's always a matter of appreciation when an attack should get a
formal
disclosure process and when it can be publicized with minimal process
effort.
Given this class of attacks was already known from some experts, I don't
think it
requires a formal process either. Attaching a timeline to a disclosure
email doesn't hurt.

> I don't believe the other attacks in this attack class are even possible
to
fix. We just have to live with the fact that a degree of free relay is
always
going to be possible.

See comments under proof-of-UTXO ownership as plausible mitigations.

In anway, I think this is not the type of fixes we can land in a covert
fashion given the
order of magnitude of engineering effort and potential tx-relay network
impact.

> Can you explain in more detail how exactly you'd pull that off? Are you
aware
of LN implementations that actually create feerate ascending LN states?

I think you can create feerates ascending LN states with today's LN
implementations by playing with BOLT2's `dust_limit_satoshis`.
State 1 has 1 dust HTLC trimmed, state 2 has 2 dust HTLCs trimmed, ...
State N has N dust HTLCs trimmed.

> Imagine if the mempool size was 1TB, an amount larger than the entire BTC
> blocksize to date. I think that example helps make it obvious that with
such an
> enormous mempool, there *must* be free relay attacks, because it's simply
> impossible for all broadcast transactions to even get mined.

I think there is an interesting distinction that can be made between
mempool size
ressources dedicated to increase block template efficiency and minimum
mempool size
to just ensure you have good BIP152 compact block validation time.
Obviously if you're
aiming for the first, you're incentivized to offer "free-relay" bandwidth
to your peers and
increase your view of the ongoing transaction traffic.

> All the existing replacement mechanisms _are_ basically a proof-of-UTXO
> ownership, because they're transactions spending UTXOs. The only question
is
> the details of how that proof works.

Yeah somehow it's correct that any replacement mechanisms encompass a
proof-of-UTXO
ownership mechanism. Yet in a world you can partition mempool like you show
with your
for example, it's easy to make this proof-of-UTXO economically unpaid by
the attacker. Asking
aged UTXOs attached to a replacement candidate could be make such proof
more robust, in
my understanding.

Best,
Antoine


Le mer. 27 mars 2024 =C3=A0 13:04, Peter Todd <pete@petertodd.org> a =C3=A9=
crit :

> On Fri, Mar 22, 2024 at 04:18:18PM -0700, Antoine Riard wrote:
> > Hi Peter,
> >
> > > The marginal cost to an attacker who was planning on broadcasting B
> > anyway is
> > > fairly small, as provided that sufficiently small fee-rates are chose=
n
> > for A_n,
> > > the probability of A_n being mined is low. The attack does of course
> > require
> > > capital, as the attacker needs to have UTXO's of sufficient size for
> A_n.
> >
> > I think an attacker does not necessarily need to have a UTXO's of
> > sufficient size for A_n.
> > One could reuse feerate ascending old LN states, where the balance on
> > latest states is
> > in favor of your counterparty. So it might be a lower assumption on
> > attacker ressources,
> > you only needs to have been _allocate_ a shared-UTXO in the past.
>
> Can you explain in more detail how exactly you'd pull that off? Are you
> aware
> of LN implementations that actually create feerate ascending LN states?
>
> > > The larger the mempool size limit, the more
> > > effective the attack tends to be. Similarly, the attack is more
> effective
> > with
> > > a larger size difference between A and B. Finally, the attack is more
> > effective
> > > with a smaller minimum incremental relay fee, as more individual
> versions
> > of
> > > the transaction can be broadcast for a given fee-delta range.
> >
> > I think the observation on larger the mempool size, more effective the
> > attack tends
> > to come as a novel insight to me. Naively, in a world where the future
> > blockspace
> > demand is uncertain, miners have an incentive to scale up their mempool
> > size limit.
> > As such, holding a cache of non-mined low-feerates transactions. The
> type
> > of bandwidth,
> > denial-of-service described sounds effectively to affect more full-node=
s
> > with large
> > mempools. Fair point, it's expected they have more bandwidth ressources
> > available too.
>
> Imagine if the mempool size was 1TB, an amount larger than the entire BTC
> blocksize to date. I think that example helps make it obvious that with
> such an
> enormous mempool, there *must* be free relay attacks, because it's simply
> impossible for all broadcast transactions to even get mined.
>
> > Commenting on this, do we have a free-relay attack variant where an
> > attacker with reasonable
> > visibility on the transaction-relay network could exploit propagation
> > asymmetries due to
> > *_INVENTORY_BROADCAST_INTERVAL and re-inject A_n traffic in a targeted
> > fashion ?
> > I don't think it's worst than the parallelization you're describing,
> it's
> > just another approach.
>
> Well, whether or not that is an attack depends on how exactly the
> transcation
> could be rebroadcast.
>
> > > Requiring replacements to increase the fee-rate by a certain ratio
> would
> > also
> > > mitigate the attack. However doing so would break a lot of wallet
> > software that
> > > bumps fees by values equal or close to the minimum relay fee.
> >
> > I think there is still the open questions of the economic relevance of
> > replace-by-fee if
> > the local mempool is completely empty. Here a miner is optimizing to
> > maximize absolute
> > fee as a transaction replaced by a higher-feerate, lower fee is less
> > interesting if you have
> > less than 1 MB virtual bytes / 4 MB WU.
>
> Obviously. That's why I proposed one-shot replace-by-fee-rate. Not pure
> replace-by-fee-rate.
>
> > > Ironically, the existence of this attack is an argument in favor of
> > > replace-by-fee-rate. While RBFR introduces a degree of free-relay, th=
e
> > fact
> > > that Bitcoin Core's existing rules *also* allow for free-relay in thi=
s
> > form
> > > makes the difference inconsequential.
> >
> > Back on the point where an attacker ability to provoke bandwidth DoS in
> > considerations
> > of the UTXO-amount available, a minimal absolute fee as a proof of
> owning
> > some UTXO
> > amount could be still maintained (or maybe after a _bounded_ number of
> > replacement under
> > a given block period).
> >
> > We studied proof-of-UTXO ownership as a p2p DoS mitigation approach in
> the
> > past with Gleb:
> >
> https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-November/0=
02884.html
>
> All the existing replacement mechanisms _are_ basically a proof-of-UTXO
> ownership, because they're transactions spending UTXOs. The only question
> is
> the details of how that proof works.
>
> --
> https://petertodd.org 'peter'[:-1]@petertodd.org
>

--=20
You received this message because you are subscribed to the Google Groups "=
Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/=
bitcoindev/CALZpt%2BGOCiwYdK4vfkODrT0Sx6HxCAuvhVqa1c5o3Xjy03OiAQ%40mail.gma=
il.com.

--0000000000005c28910614a9425b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Peter,<div><br></div><div>Answering the latest 2 emails=
.</div><div><br></div><div>&gt; Since this attack is just a relatively mino=
r extension of existing, publicly<br>&gt; disclosed, attacks, I don&#39;t t=
hink there was any need for formal disclosure<br>&gt; timelines. It&#39;s i=
nteresting that the attack exists; it does not substantially<br>&gt; change=
 the status quo.<br><br><div>Of course, it&#39;s always a matter of appreci=
ation when an attack should get a formal</div><div>disclosure process and w=
hen it can be publicized with minimal process effort.</div><div>Given this =
class of attacks was already known from some experts, I don&#39;t think it<=
/div><div>requires a formal process either. Attaching a timeline to a discl=
osure email doesn&#39;t hurt.</div></div><div><br></div><div>&gt; I don&#39=
;t believe the other attacks in this attack class are even possible to</div=
>fix. We just have to live with the fact that a degree of free relay is alw=
ays<br>going to be possible.<div><br></div><div>See comments under proof-of=
-UTXO ownership as plausible mitigations.</div><div><br></div><div>In anway=
, I think this is not the type of fixes we can land in a covert fashion giv=
en the</div><div>order of magnitude of engineering effort and potential tx-=
relay network impact.</div><div><div><br></div><div>&gt; Can you explain in=
 more detail how exactly you&#39;d pull that off? Are you aware</div>of LN =
implementations that actually create feerate ascending LN states?<div><br><=
/div><div>I think you can create=C2=A0feerates ascending LN states with tod=
ay&#39;s LN implementations by playing with BOLT2&#39;s `dust_limit_satoshi=
s`.</div><div>State 1 has 1 dust HTLC trimmed, state 2 has 2 dust HTLCs tri=
mmed, ... State N has N dust HTLCs trimmed.</div><div><br></div><div>&gt; I=
magine if the mempool size was 1TB, an amount larger than the entire BTC<br=
>&gt; blocksize to date. I think that example helps make it obvious that wi=
th such an<br>&gt; enormous mempool, there *must* be free relay attacks, be=
cause it&#39;s simply<br>&gt; impossible for all broadcast transactions to =
even get mined.<br></div><div><br></div><div>I think there is an interestin=
g distinction that can be made between mempool size</div><div>ressources de=
dicated to increase block template efficiency and minimum mempool size</div=
><div>to just ensure you have good BIP152 compact block validation time. Ob=
viously if you&#39;re</div><div>aiming for the first, you&#39;re incentiviz=
ed to offer &quot;free-relay&quot; bandwidth to your peers and</div><div>in=
crease your view of the ongoing transaction traffic.</div><div><br></div><d=
iv>&gt; All the existing replacement mechanisms _are_ basically a proof-of-=
UTXO<br>&gt; ownership, because they&#39;re transactions spending UTXOs. Th=
e only question is<br>&gt; the details of how that proof works.<br></div><d=
iv><br></div><div>Yeah somehow it&#39;s correct that any replacement=C2=A0m=
echanisms encompass a proof-of-UTXO</div><div>ownership mechanism. Yet in a=
 world you can partition mempool like you show with your</div><div>for exam=
ple, it&#39;s easy to make this proof-of-UTXO economically unpaid by the at=
tacker. Asking</div><div>aged UTXOs attached to a replacement candidate cou=
ld be make such proof more robust, in</div><div>my understanding.</div><div=
><br></div><div>Best,</div><div>Antoine</div><div><br></div></div></div><br=
><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0m=
er. 27 mars 2024 =C3=A0=C2=A013:04, Peter Todd &lt;<a href=3D"mailto:pete@p=
etertodd.org">pete@petertodd.org</a>&gt; a =C3=A9crit=C2=A0:<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-=
width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);paddin=
g-left:1ex">On Fri, Mar 22, 2024 at 04:18:18PM -0700, Antoine Riard wrote:<=
br>
&gt; Hi Peter,<br>
&gt; <br>
&gt; &gt; The marginal cost to an attacker who was planning on broadcasting=
 B <br>
&gt; anyway is <br>
&gt; &gt; fairly small, as provided that sufficiently small fee-rates are c=
hosen <br>
&gt; for A_n, <br>
&gt; &gt; the probability of A_n being mined is low. The attack does of cou=
rse <br>
&gt; require <br>
&gt; &gt; capital, as the attacker needs to have UTXO&#39;s of sufficient s=
ize for A_n.<br>
&gt; <br>
&gt; I think an attacker does not necessarily need to have a UTXO&#39;s of =
<br>
&gt; sufficient size for A_n.<br>
&gt; One could reuse feerate ascending old LN states, where the balance on =
<br>
&gt; latest states is<br>
&gt; in favor of your counterparty. So it might be a lower assumption on <b=
r>
&gt; attacker ressources,<br>
&gt; you only needs to have been _allocate_ a shared-UTXO in the past.<br>
<br>
Can you explain in more detail how exactly you&#39;d pull that off? Are you=
 aware<br>
of LN implementations that actually create feerate ascending LN states?<br>
<br>
&gt; &gt; The larger the mempool size limit, the more <br>
&gt; &gt; effective the attack tends to be. Similarly, the attack is more e=
ffective <br>
&gt; with <br>
&gt; &gt; a larger size difference between A and B. Finally, the attack is =
more <br>
&gt; effective <br>
&gt; &gt; with a smaller minimum incremental relay fee, as more individual =
versions <br>
&gt; of <br>
&gt; &gt; the transaction can be broadcast for a given fee-delta range.<br>
&gt; <br>
&gt; I think the observation on larger the mempool size, more effective the=
 <br>
&gt; attack tends<br>
&gt; to come as a novel insight to me. Naively, in a world where the future=
 <br>
&gt; blockspace<br>
&gt; demand is uncertain, miners have an incentive to scale up their mempoo=
l <br>
&gt; size limit.<br>
&gt; As such, holding a cache of non-mined low-feerates transactions. The t=
ype <br>
&gt; of bandwidth,<br>
&gt; denial-of-service described sounds effectively to affect more full-nod=
es <br>
&gt; with large <br>
&gt; mempools. Fair point, it&#39;s expected they have more bandwidth resso=
urces <br>
&gt; available too.<br>
<br>
Imagine if the mempool size was 1TB, an amount larger than the entire BTC<b=
r>
blocksize to date. I think that example helps make it obvious that with suc=
h an<br>
enormous mempool, there *must* be free relay attacks, because it&#39;s simp=
ly<br>
impossible for all broadcast transactions to even get mined.<br>
<br>
&gt; Commenting on this, do we have a free-relay attack variant where an <b=
r>
&gt; attacker with reasonable<br>
&gt; visibility on the transaction-relay network could exploit propagation =
<br>
&gt; asymmetries due to<br>
&gt; *_INVENTORY_BROADCAST_INTERVAL and re-inject A_n traffic in a targeted=
 <br>
&gt; fashion ?<br>
&gt; I don&#39;t think it&#39;s worst than the parallelization you&#39;re d=
escribing, it&#39;s <br>
&gt; just another approach.<br>
<br>
Well, whether or not that is an attack depends on how exactly the transcati=
on<br>
could be rebroadcast.<br>
<br>
&gt; &gt; Requiring replacements to increase the fee-rate by a certain rati=
o would <br>
&gt; also <br>
&gt; &gt; mitigate the attack. However doing so would break a lot of wallet=
 <br>
&gt; software that <br>
&gt; &gt; bumps fees by values equal or close to the minimum relay fee.<br>
&gt; <br>
&gt; I think there is still the open questions of the economic relevance of=
 <br>
&gt; replace-by-fee if<br>
&gt; the local mempool is completely empty. Here a miner is optimizing to <=
br>
&gt; maximize absolute<br>
&gt; fee as a transaction replaced by a higher-feerate, lower fee is less <=
br>
&gt; interesting if you have<br>
&gt; less than 1 MB virtual bytes / 4 MB WU.<br>
<br>
Obviously. That&#39;s why I proposed one-shot replace-by-fee-rate. Not pure=
<br>
replace-by-fee-rate.<br>
<br>
&gt; &gt; Ironically, the existence of this attack is an argument in favor =
of <br>
&gt; &gt; replace-by-fee-rate. While RBFR introduces a degree of free-relay=
, the <br>
&gt; fact <br>
&gt; &gt; that Bitcoin Core&#39;s existing rules *also* allow for free-rela=
y in this <br>
&gt; form <br>
&gt; &gt; makes the difference inconsequential.<br>
&gt; <br>
&gt; Back on the point where an attacker ability to provoke bandwidth DoS i=
n <br>
&gt; considerations<br>
&gt; of the UTXO-amount available, a minimal absolute fee as a proof of own=
ing <br>
&gt; some UTXO<br>
&gt; amount could be still maintained (or maybe after a _bounded_ number of=
 <br>
&gt; replacement under<br>
&gt; a given block period).<br>
&gt; <br>
&gt; We studied proof-of-UTXO ownership as a p2p DoS mitigation approach in=
 the <br>
&gt; past with Gleb:<br>
&gt; <a href=3D"https://lists.linuxfoundation.org/pipermail/lightning-dev/2=
020-November/002884.html" rel=3D"noreferrer" target=3D"_blank">https://list=
s.linuxfoundation.org/pipermail/lightning-dev/2020-November/002884.html</a>=
<br>
<br>
All the existing replacement mechanisms _are_ basically a proof-of-UTXO<br>
ownership, because they&#39;re transactions spending UTXOs. The only questi=
on is<br>
the details of how that proof works.<br>
<br>
-- <br>
<a href=3D"https://petertodd.org" rel=3D"noreferrer" target=3D"_blank">http=
s://petertodd.org</a> &#39;peter&#39;[:-1]@<a href=3D"http://petertodd.org"=
 rel=3D"noreferrer" target=3D"_blank">petertodd.org</a><br>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoindev+unsubscribe@googlegroups.com">bitcoind=
ev+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/bitcoindev/CALZpt%2BGOCiwYdK4vfkODrT0Sx6HxCAuvhVqa1c5o3Xjy03OiAQ=
%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.go=
ogle.com/d/msgid/bitcoindev/CALZpt%2BGOCiwYdK4vfkODrT0Sx6HxCAuvhVqa1c5o3Xjy=
03OiAQ%40mail.gmail.com</a>.<br />

--0000000000005c28910614a9425b--