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
|
Delivery-date: Fri, 18 Jul 2025 15:56:31 -0700
Received: from mail-yb1-f183.google.com ([209.85.219.183])
by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.94.2)
(envelope-from <bitcoindev+bncBAABBFNC5PBQMGQEGX7VLUI@googlegroups.com>)
id 1ucu0F-00035V-2o
for bitcoindev@gnusha.org; Fri, 18 Jul 2025 15:56:31 -0700
Received: by mail-yb1-f183.google.com with SMTP id 3f1490d57ef6-e8bb626b2b3sf2654126276.1
for <bitcoindev@gnusha.org>; Fri, 18 Jul 2025 15:56:30 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1752879385; cv=pass;
d=google.com; s=arc-20240605;
b=kkJNpHE04f9rdbl4QQG1ZapHL/WZXIDNgq0Q2YfMs2g5WnceiC3hsG1kilWgExNQ9A
+axWlmsQk32qUARQIn0A7qGoMlNBVjmRdlh6U9ofXp1f9vFbTJsngcMNM1NpWnfrAAKn
6pbGPYKOpL6BH4GcDaBtOF0nrnMqnqcvArNTttBxZ5u7yO32JfTtpzCXNlwyTILk8Mol
aBMXy6MJicrju6T7ey4J18zwFv8koRvURJ78J2jHWj+ijCtDUVw70v5lB7U/u4Uf3DIL
PJivG7we/jG1EY0Amm2ykvujiZUrwmIzHO4nFKEgdpCEsrpnv0UMo5c0XwlamG6pWO7+
cnzA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to:content-transfer-encoding
:mime-version:feedback-id:references:in-reply-to:message-id:subject
:from:to:date:dkim-signature;
bh=mvPbHfP8ocJaW/wO0ecG0HZeenDJh/TrbTH8PNJdyE4=;
fh=IcjCQ1LtPr+sYlWdTLEYThbDPwZ0BT2URJ4qBnTR2sQ=;
b=jvgtjS60SF3FUeNgfB2FNNzGvDkA/K3sUNz3OszHwVWh+nhin1gWSAPBtFMRIwHc/Q
cC4MEJrM1GgIfpITe181EDEbCRpw7hPNIByx9KBvNe4X2kmO5gLU5wAsEhdM/4rf/X3B
D4CQwA+NPtMkWwjGOsr/2FYnjwN+LZ/YlqYutHypU4nsbJObgyMjpAbDi4Er+yPy5ALC
zr2zdwfCWg0b8T2j6jUyPutbklwJ5fO2XEh0EcCaE8sxfhFk2IC37vljqI6ICt5YOgNn
LHmUxvYnv/vGqjChR9e1L2xnbLnH0LkmUDBOmU/DIGKj4Ujw44xLmGWYYpIerhWqUPIz
LWew==;
darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@achow101.com header.s=protonmail3 header.b=ImSb68it;
spf=pass (google.com: domain of lists@achow101.com designates 79.135.106.25 as permitted sender) smtp.mailfrom=lists@achow101.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=achow101.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1752879385; x=1753484185; darn=gnusha.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender
:content-transfer-encoding:mime-version:feedback-id:references
:in-reply-to:message-id:subject:from:to:date:from:to:cc:subject:date
:message-id:reply-to;
bh=mvPbHfP8ocJaW/wO0ecG0HZeenDJh/TrbTH8PNJdyE4=;
b=aJCXYYANStxsSa/RLThCmxRTKANMNu49flr9wt/SIKKlgJwCwchybAg6TJ/6RbeBvy
o5DUEqP84gwjQobuT6UQAiHXEAalLRwsoTIMED5EWNWr9EL+//oBmYjkKSAvanOSQJwU
iVsvs43aPveIfNMOKMEFjeO2v0anJah1GYKglvIf7EYjrY8Zl8Rjwtfh3JjqGgg7N9Md
xHixYQIhc4yCrSZwdheILaj1BsBnSKPHMr+w60ZIbjdssNpbusOdgG98S10eoavPR/fp
7E1Zf+Sn7Q5jeheJt0yXfMppXYPFddGlScsuzNhnPbjZhcvGledupQk1huQXhspOl9f6
zNWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1752879385; x=1753484185;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender
:content-transfer-encoding:mime-version:feedback-id:references
:in-reply-to:message-id:subject:from:to:date:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=mvPbHfP8ocJaW/wO0ecG0HZeenDJh/TrbTH8PNJdyE4=;
b=fV89ArY2FX0m23WKxpif2nceGe7rWh2ZobIhz0Xjryz7vYI9XeU0nuL4Pz1+odfs+S
tra0v7aFGTLEHdSkGFqJqYOo75Emsk9lwTDMHwW4H683sYBioOp2lD+TbmVI8FjPyLMl
xkRIcOzJet5vxDABjFzz936aBANIwAqTO/rz/uJa3aa26atxNxisly6GrLxdnNi5lYxM
Cx1m+FofdkxEoYDuFjwm1oXhYNRFKsLKijeRWyi/6f4ihtB6dVu7XnVtd6ocSTNmpTCJ
kVLuVabZqxssLlbhSwGCmWs7atYXm65WMDqhA/I8u64sMS274WmGWrNVhVisttCHjWfn
PrDw==
X-Forwarded-Encrypted: i=2; AJvYcCVuH7elqVp/mamo57K5NVl3rKtOHvpahPposHBcjg6Be4qtIiA2nCeSYHiXpTlz32EMSPqsdLTEvxjJ@gnusha.org
X-Gm-Message-State: AOJu0Yxa3xwUZxv6Z/A4SM6MKu9BnuczAHfK3nKIHilcoEBMZOCWdUwW
/owGWgCHSGslhdYuQvrJCi07d4oR4RPjevK/TqeorM1BXWejlCNnTAS7
X-Google-Smtp-Source: AGHT+IGFuyn0Lz+riBS5PbqcIdZmrc9vQUpvKihfVtgGq5pvGDuTgFUhYK8Ql+tN/hnN1EUNofHwBw==
X-Received: by 2002:a05:6902:4886:b0:e8b:d0e7:3afe with SMTP id 3f1490d57ef6-e8c56d0e86cmr10484083276.4.1752879384739;
Fri, 18 Jul 2025 15:56:24 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com; h=AZMbMZeunMBBigQWWiuvGj4vdLhT07tq9OcKW6DgiZsQ1dJOVw==
Received: by 2002:a05:6902:2885:b0:e87:bdd0:75fc with SMTP id
3f1490d57ef6-e8d88a7e272ls607833276.2.-pod-prod-03-us; Fri, 18 Jul 2025
15:56:20 -0700 (PDT)
X-Received: by 2002:a05:690c:8691:10b0:719:59cb:a1c2 with SMTP id 00721157ae682-71959cba260mr27911437b3.9.1752879380573;
Fri, 18 Jul 2025 15:56:20 -0700 (PDT)
Received: by 2002:a50:d5c4:0:b0:608:b921:5113 with SMTP id 4fb4d7f45d1cf-612c239df2amsa12;
Fri, 18 Jul 2025 15:46:49 -0700 (PDT)
X-Received: by 2002:a05:6402:520c:b0:608:a7a0:48 with SMTP id 4fb4d7f45d1cf-6128262b18dmr11865398a12.28.1752878806959;
Fri, 18 Jul 2025 15:46:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1752878806; cv=none;
d=google.com; s=arc-20240605;
b=OuXiix/9D+JwHsvKa1i+W+NgyEbJM8vqLeTJYt5VvgMaCPMk22cw51V4xj06/ClD2J
YnIKK9r0mhTusSdcaHQlzk0As025LwRsNqQNt0vpJvNcolHVdviaP6CnlWAg+6z+vjD/
vsMucikH4PkciwHeBlarm0R7+mpV5VYqh+moB8oV9wEuqn9sy0vBZZ3kSMS+lbRh0P7m
R4RlICeu+QMfu5eRF95pufSyjUWo/9Twg8TkIxSF8qgKrjIqV2Cvn7XewC2BQgjGNreC
A4H8SKWhmkdRypz/9KXKcSwKV9NdQN/lMnisJoqJ73SVXegMPpxS2ipbPdoltv62nJu7
aHsg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=content-transfer-encoding:mime-version:feedback-id:references
:in-reply-to:message-id:subject:from:to:date:dkim-signature;
bh=v6XOwSShYlBpongh6rz3n13Am1wzRA3+pmFvYhc4C2Q=;
fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=;
b=b3LYhFDmqkvAA0u9KqL+kwj7kSZccbJgungBAncCB7gYhinwzkRfni/Zol+LALhihh
33XK59f1/HNQ0KiQm7YK5jtw6TwAFSwu2e4d7db2ZRttYWXAAGQLYHf7Dpxih9GjP3rX
SZVnbH6L/ORiaQpFYfw/Cj6yhYz3oRnfOww6TZPTP6hQr+XsZj3p2Z+E4Fhvb79Zlxo5
s5oQCkAtv6I+dSWrUzoj90MLq2sW2/Mmz6WcnKhFKZyAHplH4oMDFo/VLLVZ6iMKK654
bPQNap+TRshOx80rE4gSQ/nibbF8cOj8ENesM6o37RpXCRyyhwX7lsjVASaUmJgpMuus
3LcA==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@achow101.com header.s=protonmail3 header.b=ImSb68it;
spf=pass (google.com: domain of lists@achow101.com designates 79.135.106.25 as permitted sender) smtp.mailfrom=lists@achow101.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=achow101.com
Received: from mail-10625.protonmail.ch (mail-10625.protonmail.ch. [79.135.106.25])
by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-612c8f83372si67222a12.2.2025.07.18.15.46.46
for <bitcoindev@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 18 Jul 2025 15:46:46 -0700 (PDT)
Received-SPF: pass (google.com: domain of lists@achow101.com designates 79.135.106.25 as permitted sender) client-ip=79.135.106.25;
Date: Fri, 18 Jul 2025 22:46:38 +0000
To: bitcoindev@googlegroups.com
From: "'Ava Chow' via Bitcoin Development Mailing List" <bitcoindev@googlegroups.com>
Subject: Re: [bitcoindev] Human meaningful witness versioning
Message-ID: <d5b68a7e-0eea-465d-95f5-9cb6557697d8@achow101.com>
In-Reply-To: <CAEM=y+WkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA@mail.gmail.com>
References: <CAEM=y+WkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA@mail.gmail.com>
Feedback-ID: 53660394:user:proton
X-Pm-Message-ID: 4e268d987f78b81ca890b4250a652cf75fdd49da
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Original-Sender: lists@achow101.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@achow101.com header.s=protonmail3 header.b=ImSb68it; spf=pass
(google.com: domain of lists@achow101.com designates 79.135.106.25 as
permitted sender) smtp.mailfrom=lists@achow101.com; dmarc=pass
(p=REJECT sp=REJECT dis=NONE) header.from=achow101.com
X-Original-From: Ava Chow <lists@achow101.com>
Reply-To: Ava Chow <lists@achow101.com>
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -1.0 (-)
Hi Ethan,
I do not think that this is a good idea, and it undermines one of the=20
ways that witness programs provide us flexibility when deploying soft=20
forks in the form of varying witness program lengths.
Both witness version 0 and version 1 define consensus rules for the pair=20
of witness version and size of the witness program. A P2WPKH address and=20
a P2WSH address have very different meanings, yet share the same witness=20
version and therefore the same bc1q prefix. Their different rules are=20
applied depending on the size of the witness program.
While BIP 141 explicitly disallows the disallows the usage of other=20
sizes when it defined version 0, BIP 341 made no such restrictions on=20
version 1. Instead, the rules defined in BIP 341 only apply to witness=20
programs of 32 bytes, thus allowing new rules to be applied to witness=20
programs of other sizes that are also version 1.
We have already seen such a proposal be deployed - Pay to Anchor outputs=20
use witness version 1 with a 2 byte witness program of a particular value.
If the witness version were chosen based on a mnemonic, then we largely=20
lose the ability to define new rules for different sized witness=20
programs of already in use witness versions. Such usage would cause=20
mnemonics to lose their meaning, unless we expect users to also be=20
checking the length of addresses, and I don't think that's a reasonable=20
expectation.
Ava
On 07/18/2025 02:58 PM, Ethan Heilman wrote:
> I want to propose a new criteria for allocating Witness versions based=20
> on human meaningfulness and see if there is support for this approach or=
=20
> if the community is highly allergic to this idea.
>=20
> Bech32 (BIP-0173 <https://github.com/bitcoin/bips/blob/master/=20
> bip-0173.mediawiki>) was designed such that the Witness version is the=20
> first character in an address after the =E2=80=9Cbc1=E2=80=9D address pre=
fix
>=20
> Witness Version 0: bc1q=E2=80=A6
> Witness Version 1: bc1p=E2=80=A6
>=20
> Witness version 2: bc1z=E2=80=A6
>=20
> Witness version 3: bc1r=E2=80=A6
>=20
> Witness version 4: bc1y=E2=80=A6
> Witness version 5: bc19=E2=80=A6
>=20
> Witness version 6: bc1x=E2=80=A6
>=20
> Witness version 7: bc18=E2=80=A6
>=20
> Witness version 8: bc1g=E2=80=A6
>=20
> =E2=80=A6
>=20
>=20
> So far we have been allocating Witness Versions in incrementing numeric=
=20
> order (0,1,...). I want to suggest we allocate Witness Versions mnemonic=
=20
> to make it easier to look at an address and determine the output type.
>=20
>=20
> This originally came up over the question of if BIP-360 should use=20
> Witness Version 3 to get bc1r=E2=80=A6 for P2QRH (r for resistant) or the=
next=20
> numerically available 2, but I want to see how the community feels about=
=20
> it as a general pattern for future softforks (z for compressed/zipped=20
> output, y for yield outputs, etc=E2=80=A6).
>=20
>=20
> Making it easier for users to understand the output type associated is=20
> likely to grow in importance over time as we retire output types, add=20
> policy restricting the relay of certain output types or output types=20
> become insecure due to cryptanalytic breaks. While wallet software=20
> should flag dangerous output types, some wallets may not invest in such=
=20
> functionality or the user may be using a paper wallet. This is the same=
=20
> argument as prefixing addresses with =E2=80=9Cbc=E2=80=9D for mainnet and=
=E2=80=9Ctc=E2=80=9D for testnet.
>=20
>=20
> Note: the Witness version is sometimes called the SegWit version.
>=20
> Thanks,
> Ethan
>=20
> --=20
> You received this message because you are subscribed to the Google=20
> Groups "Bitcoin Development Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send=20
> an email to bitcoindev+unsubscribe@googlegroups.com=20
> <mailto:bitcoindev+unsubscribe@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/=20
> bitcoindev/=20
> CAEM%3Dy%2BWkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA%40mail.gmail.com=
=20
> <https://groups.google.com/d/msgid/bitcoindev/=20
> CAEM%3Dy%2BWkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA%40mail.gmail.com?=
utm_medium=3Demail&utm_source=3Dfooter>.
--=20
You received this message because you are subscribed to the Google Groups "=
Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/=
d5b68a7e-0eea-465d-95f5-9cb6557697d8%40achow101.com.
|