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
|
Return-Path: <jeremy.l.rubin@gmail.com>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])
by lists.linuxfoundation.org (Postfix) with ESMTP id 20C42C000B;
Thu, 10 Feb 2022 08:09:15 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp2.osuosl.org (Postfix) with ESMTP id E5D7440465;
Thu, 10 Feb 2022 08:09:14 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: smtp2.osuosl.org (amavisd-new);
dkim=pass (2048-bit key) header.d=gmail.com
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 B5FPiGPk8WQn; Thu, 10 Feb 2022 08:09:13 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.8.0
X-Greylist: whitelisted by SQLgrey-1.8.0
Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com
[IPv6:2a00:1450:4864:20::135])
by smtp2.osuosl.org (Postfix) with ESMTPS id 038D340127;
Thu, 10 Feb 2022 08:09:12 +0000 (UTC)
Received: by mail-lf1-x135.google.com with SMTP id 13so8881339lfp.7;
Thu, 10 Feb 2022 00:09:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=gHa/1ROYLNoTB+IyAJBEPt2gQ+sKNt8Ckf4U4TUSIsc=;
b=ISnLBcbMrUl2HZC75rrpQXB8I6sLpUhmu8dvhjQCD4Lo6QiuOOkPyCFuQJN+wbXOHB
btnox6HhV4ieH+GasvGy6u0t7qhlVGUZxo1qjeRo5xGR12FIdt73Akgna2y3z+L+Qn93
Zn67lNnkqtkqZyYDdESEP89TebP8fIC7oP7aKVon9JxFu7JI9UOGj9Y6fbK58+AodgnH
BXaUrT7VBugOaO0iXLRT9DunVW0vDg0ttUn/yX/JbECRybCr4E0AY7JX6WaZq1QrL6V6
xMjNU0JC/y1HULU7LsRye4RMTLByy/1asKX7QEcc0qLSzS56X1f8A3DtaX0CvUWLc+7o
/8jQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=gHa/1ROYLNoTB+IyAJBEPt2gQ+sKNt8Ckf4U4TUSIsc=;
b=Ij2q1M4ok6Km8pvynrhUz4uXwjHgDp00mH6MQkniGJsLtXvhKW/oR98cMqJut++eo4
Q2VnxKO6Uxz5qUO4Rml2f1LLq0lgwfE+GjnXd+ukJ4TKhvH/Srjyj3U8Q8RwlxDR8QZO
dd6yxXoITMCq2VeRi2BIVeRJHYJfqvNmJcm9qA2htlUvE4zDgnTN/j/PRUtVgBvbNNZP
nhO9wgwP1cmIcHSea/QiAzn/T6z2Hpk7LgZ7YhIvQz6TzRusNcvDbWO8LnrNLVG1hExi
Gi1Q5ifYvXIkQYNy9liaPA3Nq52Ih34iwVzNwv+FFQAbQ1A7bZ2yeY5FCZvQZ1w2kj50
xDUQ==
X-Gm-Message-State: AOAM5333stiGDjPvrQXyijncgwNIY4zuSs1O+u1WM1jSSo2bW1e8F0SO
zN/uy79R7DqTaAvjAb+ifsxsXKNdh86+M7WqmIM=
X-Google-Smtp-Source: ABdhPJzgaHWgufgBP1eRcnf3kaoNK06yx5VAA/TOXeKX9dknjCDDwXLtIL5qHooTxgQ4sN5EajxPNQuM11yVtONld4o=
X-Received: by 2002:a05:6512:3e1a:: with SMTP id
i26mr4426430lfv.175.1644480550514;
Thu, 10 Feb 2022 00:09:10 -0800 (PST)
MIME-Version: 1.0
References: <CAD5xwhik6jVQpP2_ss7d5o+pPLsqDCHuaXG41AMKHVYhZMXF1w@mail.gmail.com>
<YgS3sJvg6kG3WnVJ@petertodd.org>
In-Reply-To: <YgS3sJvg6kG3WnVJ@petertodd.org>
From: Jeremy Rubin <jeremy.l.rubin@gmail.com>
Date: Thu, 10 Feb 2022 00:08:59 -0800
Message-ID: <CAD5xwhi3Ja8gdU2h_6-1ck4kdU0TiC2Kx5O-61=f9=6JQSMs=A@mail.gmail.com>
To: Peter Todd <pete@petertodd.org>,
Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="0000000000000db2e105d7a577e4"
Cc: lightning-dev <lightning-dev@lists.linuxfoundation.org>,
Jeremy <jlrubin@mit.edu>
Subject: Re: [bitcoin-dev] [Pre-BIP] Fee Accounts
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, 10 Feb 2022 08:09:15 -0000
--0000000000000db2e105d7a577e4
Content-Type: text/plain; charset="UTF-8"
That's not really pinning; painning usually refers to pinning something to
the bottom of the mempool whereas these mechanisms make it easier to
guarantee that progress can be made on confirming the transactions you're
interested in.
Often times in these protocols "the call is coming inside the house". It's
not a third party adding fees we are scared of, it's a direct party to the
protocol!
Sponsors or fee accounts would enable you to ensure the protocol you're
working on makes forward progress. For things like Eltoo the internal
ratchet makes this work well.
Protocols which depend on in mempool replacements before confirmation
already must be happy (should they be secure) with any prior state being
mined. If a third party pays the fee you might even be happier since the
execution wasn't on your dime.
Cheers,
Jeremy
On Wed, Feb 9, 2022, 10:59 PM Peter Todd via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:
> On Sat, Jan 01, 2022 at 12:04:00PM -0800, Jeremy via bitcoin-dev wrote:
> > Happy new years devs,
> >
> > I figured I would share some thoughts for conceptual review that have
> been
> > bouncing around my head as an opportunity to clean up the fee paying
> > semantics in bitcoin "for good". The design space is very wide on the
> > approach I'll share, so below is just a sketch of how it could work which
> > I'm sure could be improved greatly.
> >
> > Transaction fees are an integral part of bitcoin.
> >
> > However, due to quirks of Bitcoin's transaction design, fees are a part
> of
> > the transactions that they occur in.
> >
> > While this works in a "Bitcoin 1.0" world, where all transactions are
> > simple on-chain transfers, real world use of Bitcoin requires support for
> > things like Fee Bumping stuck transactions, DoS resistant Payment
> Channels,
> > and other long lived Smart Contracts that can't predict future fee rates.
> > Having the fees paid in band makes writing these contracts much more
> > difficult as you can't merely express the logic you want for the
> > transaction, but also the fees.
> >
> > Previously, I proposed a special type of transaction called a "Sponsor"
> > which has some special consensus + mempool rules to allow arbitrarily
> > appending fees to a transaction to bump it up in the mempool.
> >
> > As an alternative, we could establish an account system in Bitcoin as an
> > "extension block".
>
> <snip>
>
> > This type of design works really well for channels because the addition
> of
> > fees to e.g. a channel state does not require any sort of pre-planning
> > (e.g. anchors) or transaction flexibility (SIGHASH flags). This sort of
> > design is naturally immune to pinning issues since you could offer to
> pay a
> > fee for any TXID and the number of fee adding offers does not need to be
> > restricted in the same way the descendant transactions would need to be.
>
> So it's important to recognize that fee accounts introduce their own kind
> of
> transaction pinning attacks: third parties would be able to attach
> arbitrary
> fees to any transaction without permission. This isn't necessarily a good
> thing: I don't want third parties to be able to grief my transaction
> engines by
> getting obsolete transactions confirmed in liu of the replacments I
> actually
> want confirmed. Eg a third party could mess up OpenTimestamps calendars at
> relatively low cost by delaying the mining of timestamp txs.
>
> Of course, there's an obvious way to fix this: allow transactions to
> designate
> a pubkey allowed to add further transaction fees if required. Which Bitcoin
> already has in two forms: Replace-by-Fee and Child Pays for Parent.
>
> --
> https://petertodd.org 'peter'[:-1]@petertodd.org
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
--0000000000000db2e105d7a577e4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto">That's not really pinning; painning usually refers to=
pinning something to the bottom of the mempool whereas these mechanisms ma=
ke it easier to guarantee that progress can be made on confirming the trans=
actions you're interested in.<div dir=3D"auto"><br></div><div dir=3D"au=
to">Often times in these protocols "the call is coming inside the hous=
e". It's not a third party adding fees we are scared of, it's =
a direct party to the protocol!</div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Sponsors or fee accounts would enable you to ensure the protocol =
you're working on makes forward progress. For things like Eltoo the int=
ernal ratchet makes this work well.</div><div dir=3D"auto"><br></div><div d=
ir=3D"auto">Protocols which depend on in mempool replacements before confir=
mation already must be happy (should they be secure) with any prior state b=
eing mined. If a third party pays the fee you might even be happier since t=
he execution wasn't on your dime.=C2=A0</div><div dir=3D"auto"><br></di=
v><div dir=3D"auto">Cheers,</div><div dir=3D"auto"><br></div><div dir=3D"au=
to">Jeremy</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Wed, Feb 9, 2022, 10:59 PM Peter Todd via bitcoin-dev &l=
t;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@list=
s.linuxfoundation.org</a>> wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">On Sat, Jan 01, 2022 at 12:04:00PM -0800, Jeremy via bitcoin-dev wrote:<b=
r>
> Happy new years devs,<br>
> <br>
> I figured I would share some thoughts for conceptual review that have =
been<br>
> bouncing around my head as an opportunity to clean up the fee paying<b=
r>
> semantics in bitcoin "for good". The design space is very wi=
de on the<br>
> approach I'll share, so below is just a sketch of how it could wor=
k which<br>
> I'm sure could be improved greatly.<br>
> <br>
> Transaction fees are an integral part of bitcoin.<br>
> <br>
> However, due to quirks of Bitcoin's transaction design, fees are a=
part of<br>
> the transactions that they occur in.<br>
> <br>
> While this works in a "Bitcoin 1.0" world, where all transac=
tions are<br>
> simple on-chain transfers, real world use of Bitcoin requires support =
for<br>
> things like Fee Bumping stuck transactions, DoS resistant Payment Chan=
nels,<br>
> and other long lived Smart Contracts that can't predict future fee=
rates.<br>
> Having the fees paid in band makes writing these contracts much more<b=
r>
> difficult as you can't merely express the logic you want for the<b=
r>
> transaction, but also the fees.<br>
> <br>
> Previously, I proposed a special type of transaction called a "Sp=
onsor"<br>
> which has some special consensus + mempool rules to allow arbitrarily<=
br>
> appending fees to a transaction to bump it up in the mempool.<br>
> <br>
> As an alternative, we could establish an account system in Bitcoin as =
an<br>
> "extension block".<br>
<br>
<snip><br>
<br>
> This type of design works really well for channels because the additio=
n of<br>
> fees to e.g. a channel state does not require any sort of pre-planning=
<br>
> (e.g. anchors) or transaction flexibility (SIGHASH flags). This sort o=
f<br>
> design is naturally immune to pinning issues since you could offer to =
pay a<br>
> fee for any TXID and the number of fee adding offers does not need to =
be<br>
> restricted in the same way the descendant transactions would need to b=
e.<br>
<br>
So it's important to recognize that fee accounts introduce their own ki=
nd of<br>
transaction pinning attacks: third parties would be able to attach arbitrar=
y<br>
fees to any transaction without permission. This isn't necessarily a go=
od<br>
thing: I don't want third parties to be able to grief my transaction en=
gines by<br>
getting obsolete transactions confirmed in liu of the replacments I actuall=
y<br>
want confirmed. Eg a third party could mess up OpenTimestamps calendars at<=
br>
relatively low cost by delaying the mining of timestamp txs.<br>
<br>
Of course, there's an obvious way to fix this: allow transactions to de=
signate<br>
a pubkey allowed to add further transaction fees if required. Which Bitcoin=
<br>
already has in two forms: Replace-by-Fee and Child Pays for Parent.<br>
<br>
-- <br>
<a href=3D"https://petertodd.org" rel=3D"noreferrer noreferrer" target=3D"_=
blank">https://petertodd.org</a> 'peter'[:-1]@<a href=3D"http://pet=
ertodd.org" rel=3D"noreferrer noreferrer" target=3D"_blank">petertodd.org</=
a><br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank" =
rel=3D"noreferrer">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer noreferrer" target=3D"_blank">https://lists.linuxfoundati=
on.org/mailman/listinfo/bitcoin-dev</a><br>
</blockquote></div>
--0000000000000db2e105d7a577e4--
|