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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
|
Return-Path: <sergej@bitrefill.com>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])
by lists.linuxfoundation.org (Postfix) with ESMTP id 0F785C002D
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 20 Oct 2022 12:38:12 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp2.osuosl.org (Postfix) with ESMTP id C2D0C41083
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 20 Oct 2022 12:38:11 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C2D0C41083
Authentication-Results: smtp2.osuosl.org;
dkim=pass (2048-bit key) header.d=bitrefill.com header.i=@bitrefill.com
header.a=rsa-sha256 header.s=b header.b=bbWaxRcs
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.089
X-Spam-Level:
X-Spam-Status: No, score=-2.089 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Received: from smtp2.osuosl.org ([127.0.0.1])
by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id bUVRNzts5PQB
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 20 Oct 2022 12:38:08 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.8.0
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B27F8405E9
Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com
[IPv6:2a00:1450:4864:20::231])
by smtp2.osuosl.org (Postfix) with ESMTPS id B27F8405E9
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 20 Oct 2022 12:38:07 +0000 (UTC)
Received: by mail-lj1-x231.google.com with SMTP id by36so26159650ljb.4
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 20 Oct 2022 05:38:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitrefill.com; s=b;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=UpROjDSq1yd+waahGJsAEEj4ldx6AZIUnmP1gnUb9w4=;
b=bbWaxRcsn8n4c67ioHXEFVDO3InJwy+rk5NapxmHDGJdfavfz2GLo/NlHZ1MSs8FtD
kOpzuz1jwhbo6xVYnWbVn5FRrFdJobAGaSQzuC8wfQdunyzAZ9D06L47PBtsbtmUXN90
mJZxCPAPjiyXAz+oChmAPWW4yE32EGeWHRxLpAjYVlX8X0tLYuEF6zEurpq5DoPCaUBo
fQVCqlQwbyp8XYauvhOSj4avEWiPmLylMwF+lVjHMd+CLVN9gJ7rPcOCCoucmJumwSyy
Ghq2G7uqPUPYCmPcrVB0B1sW+48alGbkCo3iB5QH35NNsD8KypYSG19edzIamTeLYATy
ZsFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=UpROjDSq1yd+waahGJsAEEj4ldx6AZIUnmP1gnUb9w4=;
b=r6H992cyIVrAZMfclknlwrhTj9cnByKM9wVMrp38LoNfpFzC2Ag5L8nyi6sO9+CPj7
zsy4FJdH3EtZAr+lqZh7cye0GqrGF8OPg/ZuV2sfDK3lP98a+Odv2I5/mc6s8eSuRb+d
MYkHasEAQEgsIR9OwgTasEGFibQZF3lm83yqXRSJB4pGPX4hsRNandojA8lJBhWltntk
jWBTaXD1QQSX8c5ZYhsSKhKw1dDYGubAfXwB/u2hqJHp4LxGIffAvK9WJDnKAGk916P5
MLeAr01ld9Du2a4o7KPw267tI1nvaclz0dlcwEQ9RwctapS8AHusFVy8FsWa/64yCOMW
yQPQ==
X-Gm-Message-State: ACrzQf1LtV12k5cet+8jxdWy5lH+b3WtiCyW0gaoRuNkJ4EdcZrxt6Og
fKAbb9IHHIowRsd/hzcwDAqtnEDPatG7wg9rIMUbuA==
X-Google-Smtp-Source: AMsMyM4UoZceaYNabj4JjmCcTxeqGgf2h9RNN4sormKSDeFVqqA/0QIKTqFWmATGpshIOdigo1eGq+fk99zUCoyfdU4=
X-Received: by 2002:a2e:8893:0:b0:26c:2f7f:c037 with SMTP id
k19-20020a2e8893000000b0026c2f7fc037mr4915927lji.325.1666269484672; Thu, 20
Oct 2022 05:38:04 -0700 (PDT)
MIME-Version: 1.0
References: <CABZBVTC5kh7ca3KhVkFPdQjnsPhP4Kun1k3K6cPkarrjUiTJpA@mail.gmail.com>
<CABZBVTCgiQFtxEyeOU=-SGDQUDthyy7sOgPwiT+OVi35LVivyA@mail.gmail.com>
<Y1D3OkdsCq2pLduG@erisian.com.au>
In-Reply-To: <Y1D3OkdsCq2pLduG@erisian.com.au>
From: Sergej Kotliar <sergej@bitrefill.com>
Date: Thu, 20 Oct 2022 14:37:53 +0200
Message-ID: <CABZBVTBupMcBbOUtLbMaEmAiWGsMwisNW+k+bTUJGsUad2=ZZg@mail.gmail.com>
To: Anthony Towns <aj@erisian.com.au>
Content-Type: multipart/alternative; boundary="000000000000bc07b705eb769897"
X-Mailman-Approved-At: Thu, 20 Oct 2022 12:44:01 +0000
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] [Opt-in full-RBF] Zero-conf apps in immediate
danger
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: Thu, 20 Oct 2022 12:38:12 -0000
--000000000000bc07b705eb769897
Content-Type: text/plain; charset="UTF-8"
On Thu, 20 Oct 2022 at 09:22, Anthony Towns <aj@erisian.com.au> wrote:
> On Wed, Oct 19, 2022 at 04:29:57PM +0200, Sergej Kotliar via bitcoin-dev
> wrote:
> > The
> > biggest risk in accepting bitcoin payments is in fact not zeroconf risk
> > (it's actually quite easily managed),
>
> You mean "it's quite easily managed, provided the transaction doesn't
> opt-in to rbf", right? At least, that's what I understood you saying last
> time; ie that if the tx signals rbf, then you just don't do zeroconf no
> matter what other trustworthy signals you might see:
>
> https://twitter.com/ziggamon/status/1435863691816275970
>
> (rbf txs seem to have increased from 22% then to 29% now)
>
Yeah. Our share of RBF is a bit lower than that as many RBF transactions
are something other than consumer purchases, and most consumer purchases
can't do RBF
> > it's FX risk as the merchant must
> > commit to a certain BTCUSD rate ahead of time for a purchase. Over time
> > some transactions lose money to FX and others earn money - that evens out
> > in the end.
>
> > But if there is an _easily accessible in the wallet_ feature to
> > "cancel transaction" that means it will eventually get systematically
> > abused. A risk of X% loss on many payments that's easy to systematically
> > abuse is more scary than a rare risk of losing 100% of one occasional
> > payment. It's already possible to execute this form of abuse with opt-in
> > RBF,
>
> If someone's going to systematically exploit your store via this
> mechanism, it seems like they'd just find a single wallet with a good
> UX for opt-in RBF and lowballing fees, and go to town -- not something
> where opt-in rbf vs fullrbf policies make any difference at all?
>
Sort of. But yes once this starts being abused systemically we will have to
do something else w RBF payments, such as crediting the amount in BTC to a
custodial account. But this option isn't available to your normal payment
processor type business.
Also worth keeping in mind that sometimes "opportunity makes the thief".
Currently only power-user wallet have that feature and their market share
is relatively small, mainly electrum stands out. But if this is available
to all users everywhere then it will start being abused and we'll have to
then direct all payments to custodial account, or some other convoluted
solution.
> It's not like existing wallets that don't let you set RBF will suddenly
> get a good UX for replacing transactions just because they'd be relayed
> if they did, is it?
>
> > To successfully fool (non-RBF)
> > zeroconf one needs to have access to mining infrastructure and
> probability
> > of success is the % of hash rate controlled.
>
> I thought the "normal" avenue for fooling non-RBF zeroconf was to create
> two conflicting txs in advance, one paying the merchant, one paying
> yourself, connect to many peers, relay the one paying the merchant to
> the merchant, and the other to everyone else.
>
> I'm just basing this off Peter Todd's stuff from years ago:
>
>
> https://np.reddit.com/r/Bitcoin/comments/40ejy8/peter_todd_with_my_doublespendpy_tool_with/cytlhh0/
>
>
> https://github.com/petertodd/replace-by-fee-tools/blob/master/doublespend.py
>
>
Yeah, I know the list still rehashes a single incident from 10 years ago to
declare the entire practice as unsafe, and ignores real-world data that of
the last million transactions we had zero cases of this successfully
abusing us.
> > Currently Lightning is somewhere around 15% of our total bitcoin
> payments.
>
> So, based on last year's numbers, presumably that makes your bitcoin
> payments break down as something like:
>
> 5% txs are on-chain and seem shady and are excluded from zeroconf
> 15% txs are lightning
> 20% txs are on-chain but signal rbf and are excluded from zeroconf
> 60% txs are on-chain and seem fine for zeroconf
>
Numbers are right. Shady is too strong a word, it's mostly transactions
with very low fee, or high purchase amount, or many dependent unconfirmed
transactions, stuff like that. In some cases we do a human assessment of
the support ticket and often just pass them through.
> > This is very much not nothing, and all of us here want Lightning to grow,
> > but I think it warrants a serious discussion on whether we want Lightning
> > adoption to go to 100% by means of disabling on-chain commerce.
>
> If the numbers above were accurate, this would just mean you'd go from 60%
> zeroconf/25% not-zeroconf to 85% not-zeroconf; wouldn't be 0% on-chain.
>
Point is that RBF transactions are unsafe even when waiting for a
confirmation, which Peter Todd trivially proved in the reply next to this.
The reliable solution is to reject all RBF payments and direct those users
to custodial accounts. There are other variants to solve this with varying
degree of convolutedness. RBF is a strictly worse UX as proven by anyone
accepting bitcoin payments at scale.
> > For me
> > personally it would be an easier discussion to have when Lightning is at
> > 80%+ of all bitcoin transactions.
>
> Can you extrapolate from the numbers you've seen to estimate when that
> might be, given current trends?
>
Not sure, it might be exponential growth, and the next 60% of Lightning
growth happen faster than the first 15%. Hard to tell. But we're likely
talking years here..
>
> > The benefits of Lightning are many and obvious,
> > we don't need to limit onchain to make Lightning more appealing.
>
> To be fair, I think making lightning (and coinjoins) work better is
> exactly what inspired this -- not as a "make on-chain worse so we look
> better in comparison", but as a "making lightning work well is a bunch
> of hard problems, here's the next thing we need in order to beat the
> next problem".
>
In deed. The fact that the largest non-custodial Lightning wallet started
this thread should be an indicator that despite these intentions the
solution harms more than it fixes.
Transactions being evicted from mempool is solved by requiring a minimum
fee rate, which we do and now seems to have become a standard practice.
Theoretically we can imagine them being evicted anyway but now we're
several theoreticals deep again when discussing something that will cause
massive problems right away. In emergency situations CPFP and similar can
of course be done manually in special circumstances.
Cheers
Sergej
On Thu, 20 Oct 2022 at 09:22, Anthony Towns <aj@erisian.com.au> wrote:
> On Wed, Oct 19, 2022 at 04:29:57PM +0200, Sergej Kotliar via bitcoin-dev
> wrote:
> > The
> > biggest risk in accepting bitcoin payments is in fact not zeroconf risk
> > (it's actually quite easily managed),
>
> You mean "it's quite easily managed, provided the transaction doesn't
> opt-in to rbf", right? At least, that's what I understood you saying last
> time; ie that if the tx signals rbf, then you just don't do zeroconf no
> matter what other trustworthy signals you might see:
>
> https://twitter.com/ziggamon/status/1435863691816275970
>
> (rbf txs seem to have increased from 22% then to 29% now)
>
> > it's FX risk as the merchant must
> > commit to a certain BTCUSD rate ahead of time for a purchase. Over time
> > some transactions lose money to FX and others earn money - that evens out
> > in the end.
>
> > But if there is an _easily accessible in the wallet_ feature to
> > "cancel transaction" that means it will eventually get systematically
> > abused. A risk of X% loss on many payments that's easy to systematically
> > abuse is more scary than a rare risk of losing 100% of one occasional
> > payment. It's already possible to execute this form of abuse with opt-in
> > RBF,
>
> If someone's going to systematically exploit your store via this
> mechanism, it seems like they'd just find a single wallet with a good
> UX for opt-in RBF and lowballing fees, and go to town -- not something
> where opt-in rbf vs fullrbf policies make any difference at all?
>
> It's not like existing wallets that don't let you set RBF will suddenly
> get a good UX for replacing transactions just because they'd be relayed
> if they did, is it?
>
> > To successfully fool (non-RBF)
> > zeroconf one needs to have access to mining infrastructure and
> probability
> > of success is the % of hash rate controlled.
>
> I thought the "normal" avenue for fooling non-RBF zeroconf was to create
> two conflicting txs in advance, one paying the merchant, one paying
> yourself, connect to many peers, relay the one paying the merchant to
> the merchant, and the other to everyone else.
>
> I'm just basing this off Peter Todd's stuff from years ago:
>
>
> https://np.reddit.com/r/Bitcoin/comments/40ejy8/peter_todd_with_my_doublespendpy_tool_with/cytlhh0/
>
>
> https://github.com/petertodd/replace-by-fee-tools/blob/master/doublespend.py
>
> > Currently Lightning is somewhere around 15% of our total bitcoin
> payments.
>
> So, based on last year's numbers, presumably that makes your bitcoin
> payments break down as something like:
>
> 5% txs are on-chain and seem shady and are excluded from zeroconf
> 15% txs are lightning
> 20% txs are on-chain but signal rbf and are excluded from zeroconf
> 60% txs are on-chain and seem fine for zeroconf
>
> > This is very much not nothing, and all of us here want Lightning to grow,
> > but I think it warrants a serious discussion on whether we want Lightning
> > adoption to go to 100% by means of disabling on-chain commerce.
>
> If the numbers above were accurate, this would just mean you'd go from 60%
> zeroconf/25% not-zeroconf to 85% not-zeroconf; wouldn't be 0% on-chain.
>
> > For me
> > personally it would be an easier discussion to have when Lightning is at
> > 80%+ of all bitcoin transactions.
>
> Can you extrapolate from the numbers you've seen to estimate when that
> might be, given current trends? Or perhaps when fine-for-zeroconf txs
> drop to 20%, since opt-in-RBF txs and considered-unsafe txs would still
> work the same in a fullrbf world.
>
> > The benefits of Lightning are many and obvious,
> > we don't need to limit onchain to make Lightning more appealing.
>
> To be fair, I think making lightning (and coinjoins) work better is
> exactly what inspired this -- not as a "make on-chain worse so we look
> better in comparison", but as a "making lightning work well is a bunch
> of hard problems, here's the next thing we need in order to beat the
> next problem".
>
> > Sidenote: On the efficacy of RBF to "unstuck" stuck transactions
> > After interacting with users during high-fee periods I've come to not
> > appreciate RBF as a solution to that issue. Most users (80% or so) simply
> > don't have access to that functionality, because their wallet doesn't
> > support it, or they use a custodial (exchange) wallet etc. Of those that
> > have the feature - only the power users understand how RBF works, and
> > explaining how to do RBF to a non-power-user is just too complex, for the
> > same reason why it's complex for wallets to make sensible non-power-user
> UI
> > around it. Current equilibrium is that mostly only power users have
> access
> > to RBF and they know how to handle it, so things are somewhat working.
> But
> > rolling this out to the broad market is something else and would likely
> > cause more confusion.
> > CPFP is somewhat more viable but also not perfect as it would require
> lots
> > of edge case code to handle abuse vectors: What if users abuse a generous
> > CPFP policy to unstuck past transactions or consolidate large wallets.
> Best
> > is for CPFP to be done on the wallet side, not the merchant side, but
> there
> > too are the same UX issues as with RBF.
>
> I think if you're ruling out both merchants and users being able to add
> fees to a tx to get it to confirm, then you're going to lose either way.
> Txs will either expire because they've been stuck for more than a week,
> and be vulnerable to replacement at that point anyway, or they'll be
> dropped from mempools because they've filled up and they were the lowest
> fee tx, and be vulnerable to replacement for that reason. In the expiry
> case, the merchant can rebroadcast the original transaction to keep it
> alive, perhaps with a good chance of beating an attacker to the punch,
> but in the full mempool case, you could only do that if you were also
> CPFPing it, which you already ruled out.
>
> Cheers,
> aj
>
--
Sergej Kotliar
CEO
Twitter: @ziggamon <https://twitter.com/ziggamon>
www.bitrefill.com
Twitter <https://www.twitter.com/bitrefill> | Blog
<https://www.bitrefill.com/blog/> | Angellist <https://angel.co/bitrefill>
--000000000000bc07b705eb769897
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail-yj6qo"></div><div class=3D"gmail_quote=
"><span class=3D"gmail-im" style=3D"color:rgb(80,0,80)"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">On Thu, 20 Oct 2022 at 09:22, Anthony Towns <<a href=
=3D"mailto:aj@erisian.com.au" target=3D"_blank">aj@erisian.com.au</a>> w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p=
x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oc=
t 19, 2022 at 04:29:57PM +0200, Sergej Kotliar via bitcoin-dev wrote:<br>&g=
t; The<br>> biggest risk in accepting bitcoin payments is in fact not ze=
roconf risk<br>> (it's actually quite easily managed),<br><br>You me=
an "it's quite easily managed, provided the transaction doesn'=
t<br>opt-in to rbf", right? At least, that's what I understood you=
saying last<br>time; ie that if the tx signals rbf, then you just don'=
t do zeroconf no<br>matter what other trustworthy signals you might see:<br=
><br>=C2=A0=C2=A0<a href=3D"https://twitter.com/ziggamon/status/14358636918=
16275970" rel=3D"noreferrer" target=3D"_blank">https://twitter.com/ziggamon=
/status/1435863691816275970</a><br><br>(rbf txs seem to have increased from=
22% then to 29% now)<br></blockquote><div><br></div></span><div>Yeah. Our =
share of RBF is a bit lower than that as many RBF transactions are somethin=
g other than consumer purchases, and most consumer purchases can't do R=
BF</div><span class=3D"gmail-im" style=3D"color:rgb(80,0,80)"><div>=C2=A0</=
div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex">> it's FX risk=
as the merchant must<br>> commit to a certain BTCUSD rate ahead of time=
for a purchase. Over time<br>> some transactions lose money to FX and o=
thers earn money - that evens out<br>> in the end.<br><br>> But if th=
ere is an _easily accessible in the wallet_ feature to<br>> "cancel=
transaction" that means it will eventually get systematically<br>>=
abused. A risk of X% loss on many payments that's easy to systematical=
ly<br>> abuse is more scary than a rare risk of losing 100% of one occas=
ional<br>> payment. It's already possible to execute this form of ab=
use with opt-in<br>> RBF,<br><br>If someone's going to systematicall=
y exploit your store via this<br>mechanism, it seems like they'd just f=
ind a single wallet with a good<br>UX for opt-in RBF and lowballing fees, a=
nd go to town -- not something<br>where opt-in rbf vs fullrbf policies make=
any difference at all?<br></blockquote><div><br></div></span><div>Sort of.=
But yes once this starts being abused systemically we will have to do some=
thing else w RBF payments, such as crediting the amount in BTC to a custodi=
al account. But this option isn't available to your normal payment proc=
essor type business.=C2=A0</div><div><br></div><div>Also worth keeping in m=
ind that sometimes "opportunity makes the thief". Currently only =
power-user wallet have that feature and their market share is relatively sm=
all, mainly electrum stands out. But if this is available to all users ever=
ywhere then it will start being abused and we'll have to then direct al=
l payments to custodial account, or some other convoluted solution.</div><s=
pan class=3D"gmail-im" style=3D"color:rgb(80,0,80)"><div>=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">It's not like existing wall=
ets that don't let you set RBF will suddenly<br>get a good UX for repla=
cing transactions just because they'd be relayed<br>if they did, is it?=
<br><br>> To successfully fool (non-RBF)<br>> zeroconf one needs to h=
ave access to mining infrastructure and probability<br>> of success is t=
he % of hash rate controlled.<br><br>I thought the "normal" avenu=
e for fooling non-RBF zeroconf was to create<br>two conflicting txs in adva=
nce, one paying the merchant, one paying<br>yourself, connect to many peers=
, relay the one paying the merchant to<br>the merchant, and the other to ev=
eryone else.<br><br>I'm just basing this off Peter Todd's stuff fro=
m years ago:<br><br><a href=3D"https://np.reddit.com/r/Bitcoin/comments/40e=
jy8/peter_todd_with_my_doublespendpy_tool_with/cytlhh0/" rel=3D"noreferrer"=
target=3D"_blank">https://np.reddit.com/r/Bitcoin/comments/40ejy8/peter_to=
dd_with_my_doublespendpy_tool_with/cytlhh0/</a><br><br><a href=3D"https://g=
ithub.com/petertodd/replace-by-fee-tools/blob/master/doublespend.py" rel=3D=
"noreferrer" target=3D"_blank">https://github.com/petertodd/replace-by-fee-=
tools/blob/master/doublespend.py</a>=C2=A0<br></blockquote><div><br></div><=
/span><div>Yeah, I know the list still rehashes a single incident from 10 y=
ears ago to declare the entire practice as unsafe, and ignores real-world d=
ata that of the last million transactions we had zero cases of this success=
fully abusing us.</div><span class=3D"gmail-im" style=3D"color:rgb(80,0,80)=
"><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> C=
urrently Lightning is somewhere around 15% of our total bitcoin payments.<b=
r><br>So, based on last year's numbers, presumably that makes your bitc=
oin<br>payments break down as something like:<br><br>=C2=A0 =C2=A05% txs ar=
e on-chain and seem shady and are excluded from zeroconf<br>=C2=A0 15% txs =
are lightning<br>=C2=A0 20% txs are on-chain but signal rbf and are exclude=
d from zeroconf<br>=C2=A0 60% txs are on-chain and seem fine for zeroconf<b=
r></blockquote><div><br></div></span><div>Numbers are right. Shady is too s=
trong a word, it's mostly transactions with very low fee, or high purch=
ase amount, or many dependent unconfirmed transactions, stuff like that. In=
some cases we do a human assessment of the support ticket and often just p=
ass them through.=C2=A0</div><span class=3D"gmail-im" style=3D"color:rgb(80=
,0,80)"><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
> This is very much not nothing, and all of us here want Lightning to gr=
ow,<br>> but I think it warrants a serious discussion on whether we want=
Lightning<br>> adoption to go to 100% by means of disabling on-chain co=
mmerce.<br><br>If the numbers above were accurate, this would just mean you=
'd go from 60%<br>zeroconf/25% not-zeroconf to 85% not-zeroconf; wouldn=
't be 0% on-chain.<br></blockquote><div><br></div></span><div>Point is =
that RBF transactions are unsafe even when waiting for a confirmation, whic=
h Peter Todd trivially proved in the reply next to this. The reliable solut=
ion is to reject all RBF payments and direct those users to custodial accou=
nts. There are other variants to solve this with varying degree of convolut=
edness. RBF is a strictly worse UX as proven by anyone accepting bitcoin pa=
yments at scale.</div><span class=3D"gmail-im" style=3D"color:rgb(80,0,80)"=
><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Fo=
r me<br>> personally it would be an easier discussion to have when Light=
ning is at<br>> 80%+ of all bitcoin transactions.<br><br>Can you extrapo=
late from the numbers you've seen to estimate when that<br>might be, gi=
ven current trends?=C2=A0<br></blockquote><div><br></div></span><div>Not su=
re, it might be exponential growth, and the next 60% of Lightning growth ha=
ppen faster than the first 15%. Hard to tell. But we're likely talking =
years here..=C2=A0</div><span class=3D"gmail-im" style=3D"color:rgb(80,0,80=
)"><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>&=
gt; The benefits of Lightning are many and obvious,<br>> we don't ne=
ed to limit onchain to make Lightning more appealing.<br><br>To be fair, I =
think making lightning (and coinjoins) work better is<br>exactly what inspi=
red this -- not as a "make on-chain worse so we look<br>better in comp=
arison", but as a "making lightning work well is a bunch<br>of ha=
rd problems, here's the next thing we need in order to beat the<br>next=
problem".<br></blockquote><div><br></div></span><div>In deed. The fac=
t that the largest non-custodial Lightning wallet started this thread shoul=
d be an indicator that despite these intentions the solution harms more tha=
n it fixes.</div><div><div class=3D"gmail-adm" style=3D"margin:5px 0px"><di=
v id=3D"gmail-q_1683" class=3D"gmail-ajR gmail-h4" style=3D"background-colo=
r:rgb(232,234,237);border:none;clear:both;line-height:6px;outline:none;widt=
h:24px;color:rgb(80,0,80);font-size:11px;border-radius:5.5px"><div class=3D=
"gmail-ajT" style=3D"background:url("https://www.gstatic.com/images/ic=
ons/material/system_gm/1x/more_horiz_black_20dp.png") 50% 50%/20px no-=
repeat;height:11px;opacity:0.71;width:24px"></div></div></div></div><div>Tr=
ansactions being evicted from mempool is solved by requiring a minimum fee =
rate, which we do and now seems to have become a=C2=A0standard practice. Th=
eoretically we can imagine them being evicted anyway but now we're seve=
ral theoreticals deep again when discussing something that will cause massi=
ve problems right away. In emergency situations CPFP and similar can of cou=
rse be done manually in special=C2=A0circumstances.</div><div>=C2=A0</div><=
div>Cheers</div><font color=3D"#888888"><div>Sergej</div></font></div><div =
class=3D"gmail-yj6qo gmail-ajU" style=3D"outline:none;padding:10px 0px;widt=
h:22px;margin:2px 0px 0px"><br class=3D"gmail-Apple-interchange-newline"></=
div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_at=
tr">On Thu, 20 Oct 2022 at 09:22, Anthony Towns <<a href=3D"mailto:aj@er=
isian.com.au">aj@erisian.com.au</a>> wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">On Wed, Oct 19, 2022 at 04:29:57PM +0200, =
Sergej Kotliar via bitcoin-dev wrote:<br>
> The<br>
> biggest risk in accepting bitcoin payments is in fact not zeroconf ris=
k<br>
> (it's actually quite easily managed),<br>
<br>
You mean "it's quite easily managed, provided the transaction does=
n't<br>
opt-in to rbf", right? At least, that's what I understood you sayi=
ng last<br>
time; ie that if the tx signals rbf, then you just don't do zeroconf no=
<br>
matter what other trustworthy signals you might see:<br>
<br>
=C2=A0 <a href=3D"https://twitter.com/ziggamon/status/1435863691816275970" =
rel=3D"noreferrer" target=3D"_blank">https://twitter.com/ziggamon/status/14=
35863691816275970</a><br>
<br>
(rbf txs seem to have increased from 22% then to 29% now)<br>
<br>
> it's FX risk as the merchant must<br>
> commit to a certain BTCUSD rate ahead of time for a purchase. Over tim=
e<br>
> some transactions lose money to FX and others earn money - that evens =
out<br>
> in the end.<br>
<br>
> But if there is an _easily accessible in the wallet_ feature to<br>
> "cancel transaction" that means it will eventually get syste=
matically<br>
> abused. A risk of X% loss on many payments that's easy to systemat=
ically<br>
> abuse is more scary than a rare risk of losing 100% of one occasional<=
br>
> payment. It's already possible to execute this form of abuse with =
opt-in<br>
> RBF,<br>
<br>
If someone's going to systematically exploit your store via this<br>
mechanism, it seems like they'd just find a single wallet with a good<b=
r>
UX for opt-in RBF and lowballing fees, and go to town -- not something<br>
where opt-in rbf vs fullrbf policies make any difference at all? <br>
<br>
It's not like existing wallets that don't let you set RBF will sudd=
enly<br>
get a good UX for replacing transactions just because they'd be relayed=
<br>
if they did, is it?<br>
<br>
> To successfully fool (non-RBF)<br>
> zeroconf one needs to have access to mining infrastructure and probabi=
lity<br>
> of success is the % of hash rate controlled.<br>
<br>
I thought the "normal" avenue for fooling non-RBF zeroconf was to=
create<br>
two conflicting txs in advance, one paying the merchant, one paying<br>
yourself, connect to many peers, relay the one paying the merchant to<br>
the merchant, and the other to everyone else.<br>
<br>
I'm just basing this off Peter Todd's stuff from years ago:<br>
<br>
<a href=3D"https://np.reddit.com/r/Bitcoin/comments/40ejy8/peter_todd_with_=
my_doublespendpy_tool_with/cytlhh0/" rel=3D"noreferrer" target=3D"_blank">h=
ttps://np.reddit.com/r/Bitcoin/comments/40ejy8/peter_todd_with_my_doublespe=
ndpy_tool_with/cytlhh0/</a><br>
<br>
<a href=3D"https://github.com/petertodd/replace-by-fee-tools/blob/master/do=
ublespend.py" rel=3D"noreferrer" target=3D"_blank">https://github.com/peter=
todd/replace-by-fee-tools/blob/master/doublespend.py</a><br>
<br>
> Currently Lightning is somewhere around 15% of our total bitcoin payme=
nts.<br>
<br>
So, based on last year's numbers, presumably that makes your bitcoin<br=
>
payments break down as something like:<br>
<br>
=C2=A0 =C2=A05% txs are on-chain and seem shady and are excluded from zeroc=
onf<br>
=C2=A0 15% txs are lightning<br>
=C2=A0 20% txs are on-chain but signal rbf and are excluded from zeroconf<b=
r>
=C2=A0 60% txs are on-chain and seem fine for zeroconf<br>
<br>
> This is very much not nothing, and all of us here want Lightning to gr=
ow,<br>
> but I think it warrants a serious discussion on whether we want Lightn=
ing<br>
> adoption to go to 100% by means of disabling on-chain commerce.<br>
<br>
If the numbers above were accurate, this would just mean you'd go from =
60%<br>
zeroconf/25% not-zeroconf to 85% not-zeroconf; wouldn't be 0% on-chain.=
<br>
<br>
> For me<br>
> personally it would be an easier discussion to have when Lightning is =
at<br>
> 80%+ of all bitcoin transactions.<br>
<br>
Can you extrapolate from the numbers you've seen to estimate when that<=
br>
might be, given current trends? Or perhaps when fine-for-zeroconf txs<br>
drop to 20%, since opt-in-RBF txs and considered-unsafe txs would still<br>
work the same in a fullrbf world.<br>
<br>
> The benefits of Lightning are many and obvious,<br>
> we don't need to limit onchain to make Lightning more appealing. <=
br>
<br>
To be fair, I think making lightning (and coinjoins) work better is<br>
exactly what inspired this -- not as a "make on-chain worse so we look=
<br>
better in comparison", but as a "making lightning work well is a =
bunch<br>
of hard problems, here's the next thing we need in order to beat the<br=
>
next problem".<br>
<br>
> Sidenote: On the efficacy of RBF to "unstuck" stuck transact=
ions<br>
> After interacting with users during high-fee periods I've come to =
not<br>
> appreciate RBF as a solution to that issue. Most users (80% or so) sim=
ply<br>
> don't have access to that functionality, because their wallet does=
n't<br>
> support it, or they use a custodial (exchange) wallet etc. Of those th=
at<br>
> have the feature - only the power users understand how RBF works, and<=
br>
> explaining how to do RBF to a non-power-user is just too complex, for =
the<br>
> same reason why it's complex for wallets to make sensible non-powe=
r-user UI<br>
> around it. Current equilibrium is that mostly only power users have ac=
cess<br>
> to RBF and they know how to handle it, so things are somewhat working.=
But<br>
> rolling this out to the broad market is something else and would likel=
y<br>
> cause more confusion.<br>
> CPFP is somewhat more viable but also not perfect as it would require =
lots<br>
> of edge case code to handle abuse vectors: What if users abuse a gener=
ous<br>
> CPFP policy to unstuck past transactions or consolidate large wallets.=
Best<br>
> is for CPFP to be done on the wallet side, not the merchant side, but =
there<br>
> too are the same UX issues as with RBF.<br>
<br>
I think if you're ruling out both merchants and users being able to add=
<br>
fees to a tx to get it to confirm, then you're going to lose either way=
.<br>
Txs will either expire because they've been stuck for more than a week,=
<br>
and be vulnerable to replacement at that point anyway, or they'll be<br=
>
dropped from mempools because they've filled up and they were the lowes=
t<br>
fee tx, and be vulnerable to replacement for that reason. In the expiry<br>
case, the merchant can rebroadcast the original transaction to keep it<br>
alive, perhaps with a good chance of beating an attacker to the punch,<br>
but in the full mempool case, you could only do that if you were also<br>
CPFPing it, which you already ruled out.<br>
<br>
Cheers,<br>
aj<br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
class=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"lt=
r"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div=
dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><p dir=3D"ltr" style=3D"line=
-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:9.5=
pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-wei=
ght:700;font-style:normal;font-variant:normal;text-decoration:none;vertical=
-align:baseline;white-space:pre-wrap">Sergej Kotliar</span></p><p dir=3D"lt=
r" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=
=3D"font-size:9.5pt;font-family:Arial;color:rgb(0,0,0);background-color:tra=
nsparent;font-weight:700;font-style:normal;font-variant:normal;text-decorat=
ion:none;vertical-align:baseline;white-space:pre-wrap">CEO</span></p><p dir=
=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b sty=
le=3D"font-weight:normal"><br></b></p><p dir=3D"ltr" style=3D"line-height:1=
.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:11pt;font-fa=
mily:Arial;color:rgb(102,102,102);background-color:transparent;font-weight:=
700;font-style:normal;font-variant:normal;text-decoration:none;vertical-ali=
gn:baseline;white-space:pre-wrap"><span style=3D"border:none;display:inline=
-block;overflow:hidden;width:220px;height:80px"><img src=3D"https://lh4.goo=
gleusercontent.com/wU5i7e8boCd7o3P52cUTKrqeTa7jV2dPEXluijGtPBy0f1F0R2_zIg_z=
OQ2kigkbVbSWqLlVdwuBYgo_txXMKkCWdMfBFRNhsDhFpNv1QrRZsD-gPxDui-4l0tZI1Qcjtef=
CDkNG" width=3D"220" height=3D"80" style=3D"margin-left: 0px; margin-top: 0=
px;"></span></span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:=
0pt;margin-bottom:0pt"><span style=3D"font-size:9.5pt;font-family:Arial;col=
or:rgb(102,102,102);background-color:transparent;font-weight:400;font-style=
:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;wh=
ite-space:pre-wrap">Twitter: @</span><a href=3D"https://twitter.com/ziggamo=
n" style=3D"text-decoration:none" target=3D"_blank"><span style=3D"font-siz=
e:9.5pt;font-family:Arial;color:rgb(102,102,102);background-color:transpare=
nt;font-weight:400;font-style:normal;font-variant:normal;text-decoration:un=
derline;vertical-align:baseline;white-space:pre-wrap">ziggamon</span></a><s=
pan style=3D"font-size:9.5pt;font-family:Arial;color:rgb(102,102,102);backg=
round-color:transparent;font-weight:400;font-style:normal;font-variant:norm=
al;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">=C2=
=A0</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margi=
n-bottom:0pt"><b style=3D"font-weight:normal"><br></b></p><p dir=3D"ltr" st=
yle=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href=3D"http:/=
/www.bitrefill.com/" style=3D"text-decoration:none" target=3D"_blank"><span=
style=3D"font-size:9.5pt;font-family:Arial;color:rgb(102,102,102);backgrou=
nd-color:transparent;font-weight:400;font-style:normal;font-variant:normal;=
text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">www=
.bitrefill.com</span></a></p><p dir=3D"ltr" style=3D"line-height:1.38;margi=
n-top:0pt;margin-bottom:0pt"><a href=3D"https://www.twitter.com/bitrefill" =
target=3D"_blank"><span style=3D"font-size:9.5pt;font-family:Arial;color:rg=
b(102,102,102);background-color:transparent;vertical-align:baseline;white-s=
pace:pre-wrap">Twitter</span></a><span style=3D"font-size:9.5pt;font-family=
:Arial;color:rgb(102,102,102);background-color:transparent;vertical-align:b=
aseline;white-space:pre-wrap"> | </span><a href=3D"https://www.bitrefill.co=
m/blog/" target=3D"_blank"><span style=3D"font-size:9.5pt;font-family:Arial=
;color:rgb(102,102,102);background-color:transparent;vertical-align:baselin=
e;white-space:pre-wrap">Blog</span></a><span style=3D"font-size:9.5pt;font-=
family:Arial;color:rgb(102,102,102);background-color:transparent;vertical-a=
lign:baseline;white-space:pre-wrap"> | </span><a href=3D"https://angel.co/b=
itrefill" target=3D"_blank"><span style=3D"font-size:9.5pt;font-family:Aria=
l;color:rgb(102,102,102);background-color:transparent;vertical-align:baseli=
ne;white-space:pre-wrap">Angellist </span></a><br></p></div></div></div></d=
iv></div></div></div></div></div></div></div>
--000000000000bc07b705eb769897--
|