summaryrefslogtreecommitdiff
path: root/ad/c1c05300033f96afdffdb28822a628a5d82f26
blob: 72f3f29b6129ddd3faaa84c8b652dcde5ab69423 (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
Return-Path: <remyers@yakshaver.org>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 5A83BC002D
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 24 Apr 2022 20:49:14 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp2.osuosl.org (Postfix) with ESMTP id 32AD04019A
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 24 Apr 2022 20:49:14 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level: 
X-Spam-Status: No, score=-2.102 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, 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=yakshaver.org
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 hjOrF5SlggwZ
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 24 Apr 2022 20:49:12 +0000 (UTC)
X-Greylist: delayed 00:07:07 by SQLgrey-1.8.0
Received: from mail-4321.protonmail.ch (mail-4321.protonmail.ch [185.70.43.21])
 by smtp2.osuosl.org (Postfix) with ESMTPS id 98F154018F
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 24 Apr 2022 20:49:12 +0000 (UTC)
Date: Sun, 24 Apr 2022 20:41:54 +0000
Authentication-Results: mail-4321.protonmail.ch;
 dkim=pass (2048-bit key) header.d=yakshaver.org header.i=@yakshaver.org
 header.b="CX/OTAzX"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yakshaver.org;
 s=protonmail3; t=1650832922;
 bh=AjnoeADdx0KlGj0wNFr0DZC8C9JTGdES/cDDQnPkvZM=;
 h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID;
 b=CX/OTAzXy7kxyIN8C9zqiPOZEU2A1n6r1/Evz6VP4kTbh2JRnudSBTJ032laTh+v+
 +KVOBqHH/jxqX0D/PPUW8f/AVcyDp08N0kd+8g8C3aTtSJeoAt+0vX8ofoieIwx3Zd
 eNUG+avxRC4YyKhWpM5kgCVtsE1QUKGYVE3gzir6uqiEiqy4YbaKeyxf9W+Vxh4UfJ
 lHhQUlNIyQkl/YemxAwCnUrgHNviaNnPl14fwfFAUsgBBw8Bm+Eac7p1IVt9/RsdvC
 9F5GPZMWEMfKK41Co6HJVI7h0KnqIiZC0RturyAlCMVGrzO2B0ewOPjTAhorqyTK4q
 Q7bhdKrqNqNTQ==
To: darosior <darosior@protonmail.com>,
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
From: Richard Myers <remyers@yakshaver.org>
Reply-To: Richard Myers <remyers@yakshaver.org>
Message-ID: <edZpe6R4qRm7fk8l49O6QkNBI-ViHKR3IozFUt6IuHxujshBRWoitjaOJJy_fk9njEG4woUdOPeKY8Vy87G22KSrOr2A7XHkYh-YSbzQiNs=@yakshaver.org>
In-Reply-To: <p3P0m2_aNXd-4oYhFjCKJyI8zQXahmZed6bv7lnj9M9HbP9gMqMtJr-pP7XRAPs-rn_fJuGu1cv9ero5i8f0cvyZrMXYPzPx17CxJ2ZSvRk=@protonmail.com>
References: <p3P0m2_aNXd-4oYhFjCKJyI8zQXahmZed6bv7lnj9M9HbP9gMqMtJr-pP7XRAPs-rn_fJuGu1cv9ero5i8f0cvyZrMXYPzPx17CxJ2ZSvRk=@protonmail.com>
Feedback-ID: 32932370:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Sun, 24 Apr 2022 21:05:52 +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: Sun, 24 Apr 2022 20:49:14 -0000

Hi darosior,

Thanks for sharing your thoughts on this.

> I would like to know people's sentiment about doing (a very slightly twea=
ked version of) BIP118 in place of
> (or before doing) BIP119.

Sounds good to me. Although from an activation perspective it may not be ei=
ther/or, both proposals do compete for scarce reviewer time so their orderi=
ng will necessarily be driven by reviewer's priorities. My priority is elto=
o which is why I focus on BIP-118.

> SIGHASH_ANYPREVOUTANYSCRIPT, if its "ANYONECANPAY" behaviour is made opti=
onal [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 late-b=
ind fees; that means ANYONECANPAY will always be paired with APO-AS for elt=
oo. 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 squee=
ze in one more sighash flag. Perhaps there's another way to do it?

Including SIGHASH_GROUP with APO for eltoo is also tempting. Specifically s=
o the counter-party who commits a settlement tx can use for fees their sett=
led to_self balance. How to rejigger the sighash flags to accommodate both =
APO and GROUP may be worth some discussion.

The BIP-118 proposal will certainly benefit from having input from reviewer=
s looking at other protocols than eltoo.

  -- Richard