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
|
Return-Path: <darosior@protonmail.com>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])
by lists.linuxfoundation.org (Postfix) with ESMTP id 4C494C002D
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 25 Apr 2022 16:35:25 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp2.osuosl.org (Postfix) with ESMTP id 35DF5402DC
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 25 Apr 2022 16:35:25 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 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,
SPF_HELO_PASS=-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=protonmail.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 ZfoiN2PSl1_n
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 25 Apr 2022 16:35:23 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0
Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25])
by smtp2.osuosl.org (Postfix) with ESMTPS id 833D6401ED
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 25 Apr 2022 16:35:23 +0000 (UTC)
Date: Mon, 25 Apr 2022 16:35:14 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail2; t=1650904521;
bh=nIfl1Rp2h3VRxv0kKMcFHX8RmKc5MZIqTfnuGGtqSvw=;
h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To:
References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To:
Feedback-ID:Message-ID;
b=jQEdSu4d6ar7RgBgjxC74WxRLLmJqmkfBJ/VwhIp8i0yKwjX5SU4mbG/k0xGXyVG1
g4mAt4Np4FrxlerbQ01erOtU0jh4rnj9oRu7ICX/NcqKZlxdPuEDy/yo9u26BBPbeE
HJc4TJz23MTlhdAtFNQgVQPU+mp2pFWv1MAnO6cSntj9bk9X1QgxJ5cIxreA6z6OJO
u2JfUG0gbiKvpkJ649DgQABsku6uzV2bVoPnP7PWzBPZA1m/k+UqrIjt188HOFeRlD
+uvaaaW9pe76iKoJWGMfaKgruRYJL84ca1NgbiYBQaxe6iSTvoopWADRh5CKnwlICi
g/JJyDiEiVEIQ==
To: darosior <darosior@protonmail.com>,
Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
From: darosior <darosior@protonmail.com>
Reply-To: darosior <darosior@protonmail.com>
Message-ID: <spT0QI_ZRWuz7Zu3hMfC-8qKns8n_eSI2D22lEYFtiAACfgt2eAKQ8SZe8lTdIH_VdFg7CA6ZcMKZ1adPb2TUx4MfsM94eTUnPhv0t4Sw84=@protonmail.com>
In-Reply-To: <vUv4gRXGegam5vWJosPS7rCNBOnH-B2hCok5QYXfwdpLme_cg7tAXoKvH3AU3lKE-BZ-IIq4hvtGnqytZitdS43kgAFwSQJvLPaO2tRwqEA=@protonmail.com>
References: <p3P0m2_aNXd-4oYhFjCKJyI8zQXahmZed6bv7lnj9M9HbP9gMqMtJr-pP7XRAPs-rn_fJuGu1cv9ero5i8f0cvyZrMXYPzPx17CxJ2ZSvRk=@protonmail.com>
<edZpe6R4qRm7fk8l49O6QkNBI-ViHKR3IozFUt6IuHxujshBRWoitjaOJJy_fk9njEG4woUdOPeKY8Vy87G22KSrOr2A7XHkYh-YSbzQiNs=@yakshaver.org>
<vUv4gRXGegam5vWJosPS7rCNBOnH-B2hCok5QYXfwdpLme_cg7tAXoKvH3AU3lKE-BZ-IIq4hvtGnqytZitdS43kgAFwSQJvLPaO2tRwqEA=@protonmail.com>
Feedback-ID: 7060259:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Mon, 25 Apr 2022 16:51:20 +0000
Subject: Re: [bitcoin-dev] ANYPREVOUT in place of CTV
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Apr 2022 16:35:25 -0000
Just a correction to my previous mail. Sorry for the non-attribution, i did=
n't recall APO covenants had been discussed in the context of CTV.
> > a write-up that explains how APO-AS w/out ANYONECANPAY approximates CTV=
?
>
> I'm not aware of any specific to CTV. It's just that the fields covered i=
n the CTV hash are very close to what
The comparison was already done by Anthony Towns.
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2019-June/017036.ht=
ml
Jeremy Rubin already pointed out that it missed committing to the nSequence=
s hash and number of inputs (and optionally scriptSigs).
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2019-June/017038.ht=
ml
------- Original Message -------
Le lundi 25 avril 2022 =C3=A0 3:35 PM, darosior via bitcoin-dev <bitcoin-de=
v@lists.linuxfoundation.org> a =C3=A9crit :
> Hi Richard,
>
> > Sounds good to me. Although from an activation perspective it may not b=
e either/or, both proposals do
>
> compete for scarce reviewer time
>
> Yes, of course. Let's say i was more interested in knowing if people who =
oppose CTV would oppose
> SIGHASH_ANYPREVOUT too. I think talking about activation of anything at t=
his point is premature.
>
> > For someone not as versed in CTV, why is it necessary that ANYONECANPAY=
be optional to emulate CTV? Is there
>
> a write-up that explains how APO-AS w/out ANYONECANPAY approximates CTV?
>
> I'm not aware of any specific to CTV. It's just that the fields covered i=
n the CTV hash are very close to what
> ANYPREVOUT_ANYSCRIPT's signature hash covers [0]. The two things that CTV=
commits to that APO_AS does not are
> the number of inputs and the hash of the inputs' sequences [1].
> Not committing to the number of inputs and other inputs' data is today's =
behaviour of ANYONECANPAY that can
> be combined with other signature hash types [1]. Thus APO_AS makes ACP ma=
ndatory, and to emulate CTV
> completely it should be optional.
>
>
> Antoine
>
> [0] https://github.com/bitcoin/bips/blob/master/bip-0119.mediawiki#Detail=
ed_Specification
> [1] https://github.com/bitcoin/bips/blob/master/bip-0118.mediawiki#signat=
ure-message
> [2] https://github.com/bitcoin/bitcoin/blob/10a626a1d6776447525f50d3e1a97=
b3c5bbad7d6/src/script/interpreter.cpp#L1327, https://github.com/bitcoin/bi=
tcoin/blob/10a626a1d6776447525f50d3e1a97b3c5bbad7d6/src/script/interpreter.=
cpp#L1517-L1522
>
>
> ------- Original Message -------
> Le dimanche 24 avril 2022 =C3=A0 10:41 PM, Richard Myers remyers@yakshave=
r.org a =C3=A9crit :
>
>
>
> > Hi darosior,
> >
> > Thanks for sharing your thoughts on this.
> >
> > > I would like to know people's sentiment about doing (a very slightly =
tweaked version of) BIP118 in place of
> > > (or before doing) BIP119.
> >
> > Sounds good to me. Although from an activation perspective it may not b=
e either/or, both proposals do compete for scarce reviewer time so their or=
dering will necessarily be driven by reviewer's priorities. My priority is =
eltoo which is why I focus on BIP-118.
> >
> > > SIGHASH_ANYPREVOUTANYSCRIPT, if its "ANYONECANPAY" behaviour is made =
optional [0], can emulate CTV just fine.
> >
> > For someone not as versed in CTV, why is it necessary that ANYONECANPAY=
be optional to emulate CTV? Is there a write-up that explains how APO-AS w=
/out ANYONECANPAY approximates CTV?
> >
> > In the case of eltoo commit txs, we use bring-your-own-fee (BYOF) to la=
te-bind fees; that means ANYONECANPAY will always be paired with APO-AS for=
eltoo. Settlement txs in eltoo use just APO and do not necessarily need to=
be paired with ANYONECANPAY.
> >
> > I would guess making ANYONECANPAY the default for APO-AS was a way to s=
queeze in one more sighash flag. Perhaps there's another way to do it?
> >
> > Including SIGHASH_GROUP with APO for eltoo is also tempting. Specifical=
ly so the counter-party who commits a settlement tx can use for fees their =
settled to_self balance. How to rejigger the sighash flags to accommodate b=
oth APO and GROUP may be worth some discussion.
> >
> > The BIP-118 proposal will certainly benefit from having input from revi=
ewers looking at other protocols than eltoo.
> >
> > -- Richard
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
|