summaryrefslogtreecommitdiff
path: root/d9/b93d3764443005b7556401569829704dcbca26
blob: 7e22638b65d596f72440ebdb4ab3f7890c5290e7 (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
Return-Path: <pete@petertodd.org>
Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 8A16FC0032;
 Sat, 21 Oct 2023 01:25:31 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp4.osuosl.org (Postfix) with ESMTP id 5FD724EE9A;
 Sat, 21 Oct 2023 01:25:31 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5FD724EE9A
Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key,
 unprotected) header.d=messagingengine.com header.i=@messagingengine.com
 header.a=rsa-sha256 header.s=fm3 header.b=WZG1VYiC
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001,
 RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp4.osuosl.org ([127.0.0.1])
 by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id F4ThQfn5TdqD; Sat, 21 Oct 2023 01:25:26 +0000 (UTC)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com
 [64.147.123.21])
 by smtp4.osuosl.org (Postfix) with ESMTPS id 9D2ED4EE7F;
 Sat, 21 Oct 2023 01:25:26 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9D2ED4EE7F
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 6425532009D2;
 Fri, 20 Oct 2023 21:25:20 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Fri, 20 Oct 2023 21:25:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; t=1697851519; x=1697937919; bh=5eCpWAsEJBiPr
 QT28gdw0/8AN9UP+x/urI0jg0rdMJI=; b=WZG1VYiCdiwnxqF0ekaG281oyFsi0
 HaKq589KX2PGdq2rVqPMNAvcA1oUUFSA50zI8iy8CzjkPivQ0inN3WnZJmC0lz3D
 v/mGAKhiVIJzn0Qu18WAB27pRoF02fOXwPhxWMZl/DSZWOg7yZRtPr5Y4Hpt3a/B
 ZdZrZsInq/iXSz36PlfOSGK8sw40aYhWO360AHSIcI3dJKskpD8neqBHjtypJ77l
 03J/FOj9yC6RXbDu0FrlBXFQCZvVTJCw4lFJUCkZ9rePhO1NHczt5JtmcYZHnL9d
 dUPtgZ6Z7U65QiWisJcIWlMwqF/on/Q0ygwm6IXOV6xudbW9DFb3t5R0w==
X-ME-Sender: <xms:figzZVsE4NLJBsoj6qFRAYzITdCIx4Y88iInIjTV3tTDup82_6BNvw>
 <xme:figzZee4JUNJNQkBMvdnb9zGPpSkt722YOYTWkfGwvj6JyrBMXAq6nQ4XMgXAUhzF
 Epvw006p36lI3S23B8>
X-ME-Received: <xmr:figzZYycgzm2o8iko2_slJztIYqP9REqITp5gzzBKuCOKUzH2RjwXIBXUStFvgGWkBhe4qD3GHzqDZ0WjZXfFQy-AypKcQgrNVc4Zw0ohof1MgN_>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeelgdeggecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefrvghtvghr
 ucfvohguugcuoehpvghtvgesphgvthgvrhhtohguugdrohhrgheqnecuggftrfgrthhtvg
 hrnhepledvleelffdtudekudffjefgfeejueehieelfedtgfetudetgeegveeutefhjedt
 necuffhomhgrihhnpehpvghtvghrthhouggurdhorhhgnecuvehluhhsthgvrhfuihiivg
 eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvsehpvghtvghrthhouggurdho
 rhhg
X-ME-Proxy: <xmx:figzZcPborkJCEmkpJhGj4U91IKKBePhmQBmLtKnfIkNPWs1p5oYng>
 <xmx:figzZV-I0EkqWwJytJsWGuUQWDPTmai8k0o4Fdzpnq8Tc-lA1vC3Ng>
 <xmx:figzZcUGymIaJmtP_usSe1DBQ3g09msQWyqxJpSC1SRFtS7OfFFdiw>
 <xmx:fygzZVw2kw-YUqE1SMoS6WB15GxbzPX2JoT7r_A06eTnZG6_pHQKZg>
Feedback-ID: i525146e8:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 20 Oct 2023 21:25:18 -0400 (EDT)
Received: by localhost (Postfix, from userid 1000)
 id 179B85F86A; Sat, 21 Oct 2023 01:25:10 +0000 (UTC)
Date: Sat, 21 Oct 2023 01:25:10 +0000
From: Peter Todd <pete@petertodd.org>
To: Matt Corallo <lf-lists@mattcorallo.com>
Message-ID: <ZTModpNyIQ3qFFI3@petertodd.org>
References: <CALZpt+GdyfDotdhrrVkjTALg5DbxJyiS8ruO2S7Ggmi9Ra5B9g@mail.gmail.com>
 <eW4O0HQJ2cbrzZhXSlgeDRWuhgRHXcAxIQCHJiqPh1zUxr270xPvl_tb7C4DUauZy56HaCq6BqGN9p4k-bkqQmLb4EHzPgIxZIZGVPlqyF0=@protonmail.com>
 <64VpLnXQLbeoc895Z9aR7C1CfH6IFxPFDrk0om-md1eqvdMczLSnhwH29T6EWCXgiGQiRqQnAYsezbvNvoPCdcfvCvp__Y8BA1ow5UwY2yQ=@protonmail.com>
 <ZTJW59wQ/4WLZt2h@petertodd.org> <ZTJej/ipIl5hZIUn@petertodd.org>
 <CAGyamEVGe+z96Rc52V0j=a+He3frzhHEk_NPunXA-g1MwXXdGw@mail.gmail.com>
 <1a84a36c-ec23-43b5-9a61-1aafdc188892@mattcorallo.com>
 <ZTMYGcRvHh0Iwe2y@petertodd.org>
 <24a18bdd-eef6-4f96-b8a5-05f64130a5c5@mattcorallo.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="uDTc95ZsopYJCxIO"
Content-Disposition: inline
In-Reply-To: <24a18bdd-eef6-4f96-b8a5-05f64130a5c5@mattcorallo.com>
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>,
 security@ariard.me,
 "lightning-dev\\\\\\\\\\\\\\\\@lists.linuxfoundation.org"
 <lightning-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] [Lightning-dev] Full Disclosure: CVE-2023-40231 /
 CVE-2023-40232 / CVE-2023-40233 / CVE-2023-40234 "All your mempool are
 belong to us"
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: Sat, 21 Oct 2023 01:25:31 -0000


--uDTc95ZsopYJCxIO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 20, 2023 at 09:03:49PM -0400, Matt Corallo wrote:
> > What are anchor outputs used for other than increasing fees?
> >=20
> > Because if we've pre-signed the full fee range, there is simply no need=
 for
> > anchor outputs. Under any circumstance we can broadcast a transaction w=
ith a
> > sufficiently high fee to get mined.
>=20
>=20
> Indeed, that is what anchor outputs are for. Removing the pre-set feerate
> solved a number of issues with edge-cases and helped address the
> fee-inflation attack. Now, just using pre-signed transactions doesn't have
> to re-introduce those issues - as long as the broadcaster gets to pick wh=
ich
> of the possible transactions they broadcast its just another transaction =
of
> theirs.
>=20
> Still, I'm generally really dubious of the multiple pre-signed transaction
> thing, (a) it would mean more fee overhead (not the end of the world for a
> force-closure, but it sucks to have all these individual transactions
> rolling around and be unable to batch), but more importantly (b) its a bu=
nch
> of overhead to keep track of a ton of variants across a sufficiently
> granular set of feerates for it to not result in substantially overspendi=
ng
> on fees.

Quite the contrary. Schnorr signatures are 64 bytes, so in situations like
lightning where the transaction form is deterministically derived, signing =
100
extra transactions requires just 6400 extra bytes. Even a very slow 100KB/s
connection can transfer that in 64ms; latency will still dominate.

RBF has a minimum incremental relay fee of 1sat/vByte by default. So if you=
 use
those 100 pre-signed transaction variants to do nothing more than sign every
possible minimum incremental relay, you've covered a range of 1sat/vByte to
100sat/vByte. I believe that is sufficient to get mined for any block in
Bitcoin's entire modern history.

CPFP meanwhile requires two transactions, and thus extra bytes. Other than =
edge
cases with very large transactions in low-fee environments, there's no
circumstance where CPFP beats RBF.

--=20
https://petertodd.org 'peter'[:-1]@petertodd.org

--uDTc95ZsopYJCxIO
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmUzKHQACgkQLly11TVR
LzeLmQ//YSQoAQfDX/A0Vqi3ULLfy0mqQOIC3USczFPjg5u3vWFe6E6KfAsl89ao
rTGWxhrkwX1Ha20wJtW/nEmEOCuPmVb+qw9TrQsUU7hykN1cS48nQSOP4RcQGTJc
i423jSHdtqH1Fv5/Xcdp0X8CC3Uei39/djHBzl5YOk/tSUKO3dRa9/fpXETkeu/7
4KFYF0mnjyPeajBj5QwgKUtWHei9zs0QU6omIA+cwTgGW9P9yHWTmiukZV3CYsjP
YPrpjm1J67KDFPxln/Ue0EJwxAUKDfsOWRBb+z21nvPoXdVPcJA2GYtbWuCoB7Zt
bEtUFZs6/j1rFURLuE8anCqCWl36hqUibtyvQ5lVK2dya/vCDfSEe6+5aoo4kInq
M20kzZWdfVNp+EsDEBz66mwdiltspre0jqgrrpOVUM8jMfwYeaGy4z3gP+eo2R1y
hUhzWawOMUeeB9eVECwwgtx1zMARNn0vPNF7jnSI0Dq48H5lOO/kOKWzggYh9QGb
bKAEOwmb7Z70ulAqvqAQej03Ie8CVrmAFHEZrEnALrUgzIIdg8wZ3xq0isbJCRUl
NDjon9T10593L81cWSY0M6s7x7nOHEF2POikYF73D0Al3IH1/OvVGHJSA2naA1GW
Z1jYzuHp92VT3RYWl10H/XwuIDDGIF/XlaMtzugX7sLLCNoFhcg=
=bboX
-----END PGP SIGNATURE-----

--uDTc95ZsopYJCxIO--