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
297
298
299
|
Return-Path: <danielb@numberall.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
by lists.linuxfoundation.org (Postfix) with ESMTP id 7739AC001A
for <bitcoin-dev@lists.linuxfoundation.org>;
Sun, 4 Jul 2021 18:03:32 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp1.osuosl.org (Postfix) with ESMTP id 62F8083579
for <bitcoin-dev@lists.linuxfoundation.org>;
Sun, 4 Jul 2021 18:03:32 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, HTML_MESSAGE=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: smtp1.osuosl.org (amavisd-new);
dkim=pass (1024-bit key) header.d=numberall.com
Received: from smtp1.osuosl.org ([127.0.0.1])
by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 2stS3Pf4KKeU
for <bitcoin-dev@lists.linuxfoundation.org>;
Sun, 4 Jul 2021 18:03:31 +0000 (UTC)
X-Greylist: delayed 00:07:00 by SQLgrey-1.8.0
Received: from mail.numberall.com (mail.numberall.com [64.222.170.42])
by smtp1.osuosl.org (Postfix) with ESMTPS id 0B721801D9
for <bitcoin-dev@lists.linuxfoundation.org>;
Sun, 4 Jul 2021 18:03:30 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by mail.numberall.com (Postfix) with ESMTP id C696A2B62FDF;
Sun, 4 Jul 2021 13:56:29 -0400 (EDT)
Received: from mail.numberall.com ([127.0.0.1])
by localhost (mail.numberall.com [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id SMq0v0KDsGK7; Sun, 4 Jul 2021 13:56:28 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
by mail.numberall.com (Postfix) with ESMTP id C8A2A2B6305D;
Sun, 4 Jul 2021 13:56:28 -0400 (EDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.numberall.com C8A2A2B6305D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=numberall.com;
s=570D8D16-B255-11E4-8E05-DB4A5F2ECC60; t=1625421388;
bh=mIw/K1NrmumUy2excjoxo8mB2sgz10rwux4R/IDkriA=;
h=Date:From:To:Message-ID:MIME-Version;
b=X+DOvBwa6ZXLEbsc5D+iOFzEABXzGrumJWZnMWhkRSUvDj620igf5saEAPdIcmB1m
xn3Y/04sP+9/aK+vEk2Dnd5ZLls9ZnSwMAACSWsbCd0YitvqvbFxy8iG7nxamPjqQo
9WdN7QVb24tk5Ck2yrKs5T1tflqCNTTaMAB6V/pA=
X-Virus-Scanned: amavisd-new at numberall.com
Received: from mail.numberall.com ([127.0.0.1])
by localhost (mail.numberall.com [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id YP5mRbWoPenC; Sun, 4 Jul 2021 13:56:28 -0400 (EDT)
Received: from mail.numberall.com (mail.numberall.com [10.1.1.202])
by mail.numberall.com (Postfix) with ESMTP id 8ACF22B63036;
Sun, 4 Jul 2021 13:56:28 -0400 (EDT)
Date: Sun, 4 Jul 2021 13:56:28 -0400 (EDT)
From: Daniel Bayerdorffer <danielb@numberall.com>
To: Craig Raw <craigraw@gmail.com>,
Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Message-ID: <1628014947.8985.1625421388348.JavaMail.zimbra@numberall.com>
In-Reply-To: <CAPR5oBMnzzNxL1j5YRgJNLnC9aPTX0m=As23KB2Wf-UDahL40A@mail.gmail.com>
References: <1eb7b635-094c-a583-7dc0-21cea58ed1fb@achow101.com>
<20210703032405.j3mru5rbag5sbfil@ganymede>
<ad7657ea-0c35-f065-1788-cc8663bf94b5@achow101.com>
<CAPR5oBP+5r8WLOew6zOdp3BzOLNr0vf2SVK028zfgoCSyu2wnA@mail.gmail.com>
<20210703100540.pr3nsgjhox26hhic@ganymede>
<CAPR5oBMnzzNxL1j5YRgJNLnC9aPTX0m=As23KB2Wf-UDahL40A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_f38c74c7-acf0-4990-af5e-06ba20506bea"
X-Mailer: Zimbra 8.8.15_GA_4059 (ZimbraWebClient - FF89 (Win)/8.8.15_GA_4059)
Thread-Topic: BIP Proposals for Output Script Descriptors
Thread-Index: 0uY5oOa3It5Gk/m9Ap9pjwkCnQ0yOg==
X-Mailman-Approved-At: Sun, 04 Jul 2021 18:43:28 +0000
Subject: Re: [bitcoin-dev] BIP Proposals for Output Script Descriptors
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, 04 Jul 2021 18:03:32 -0000
--=_f38c74c7-acf0-4990-af5e-06ba20506bea
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hello,
I just wanted to put my two cents in, on the metal backup aspect. We make the Bitcoin Recovery Tag for a similar purpose. We use a fixed font, so using ' (apostrophe) or H/h are both acceptable. Most metal stamping tools are fixed width fonts.
You can see a picture here...
[ https://cyphersafe.io/product/bitcoin-recovery-tag/ | https://cyphersafe.io/product/bitcoin-recovery-tag/ ]
Thanks,
Daniel
--
Daniel Bayerdorffer, VP danielb@numberall.com
Numberall Stamp & Tool Co., Inc. www.numberall.com
Reuleaux Models www.reuleauxmodels.com
CypherSafe www.cyphersafe.io
PO BOX 187, Sangerville, ME 04479 USA
TEL: 207-876-3541 FAX: 207-876-3566
From: "Craig Raw via bitcoin-dev" <bitcoin-dev@lists.linuxfoundation.org>
To: "David A. Harding" <dave@dtrt.org>
Cc: "Bitcoin Protocol Discussion" <bitcoin-dev@lists.linuxfoundation.org>
Sent: Saturday, July 3, 2021 10:00:51 AM
Subject: Re: [bitcoin-dev] BIP Proposals for Output Script Descriptors
It's a consideration, not a serious concern.
When I made the point around alphanumeric characters being similar to the path numbers, I was actually thinking of the output descriptor appearing in a fixed character width font, which I prefer as more appropriate for displaying hexidecimal values. In this case, the apostrophe provides more whitespace which makes the path easier to parse visually. It's difficult to reduce this to a mathematical argument, as is true for many UX considerations. Your example in fixed width here: [ https://gist.github.com/craigraw/fc98b9031a7e01e1bc5d75a77bdb72e5 | https://gist.github.com/craigraw/fc98b9031a7e01e1bc5d75a77bdb72e5 ]
That said you make good arguments around the shell quoting and stamps for metal backups, and therefore I agree it is preferable to use the lowercase "h". Thanks for the detailed reply.
Craig
On Sat, Jul 3, 2021 at 12:11 PM David A. Harding < [ mailto:dave@dtrt.org | dave@dtrt.org ] > wrote:
On Sat, Jul 03, 2021 at 10:35:48AM +0200, Craig Raw wrote:
> There is a downside to using "h"/"H" from a UX perspective - taking up more
> space
Is this a serious concern of yours? An apostrophe is 1/2 en; an "h" is
1 en; the following descriptor contains three hardened derivations in 149
characters; assuming the average non-'/h character width is 1.5 en, the
difference between 207 en and 208.5 en is barely more than half a
percent.
pkh([d34db33f/44h/0h/0h]xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/1/*)#ml40v0wf
Here's a direct visual comparison: [ https://gist.github.com/harding/2fbbf2bfdce04c3e4110082f03ae3c80 | https://gist.github.com/harding/2fbbf2bfdce04c3e4110082f03ae3c80 ]
> appearing as alphanumeric characters similar to the path numbers
First, I think you'd have to be using an awful font to confuse "h" with
any arabic numeral. Second, avoiding transcription errors is exactly
why descriptors now have checksums.
> they make derivation paths and descriptors more difficult to read.
The example descriptor pasted above looks equally (un)readable to me
whether it uses ' or h.
> Also, although not as important, less efficient when making metal
> backups.
I think many metal backup schemes are using stamps or punch grids that
are fixed-width in nature, so there's no difference either way. (And
you can argue that h is better since it's part of both the base58check
and bech32 character sets, so you already need a stamp or a grid row for
it---but ' is otherwise unused, so a stamp or grid row for it would be
special).
But even if people are manually etching descriptors into metal, we're
back to the original point where we're looking at something like a 0.7%
difference in "efficiency".
By comparison, the Bitcoin Core issue I cited in my earlier post
contains several examples of actual users needing technical support
because they tried to use '-containing descriptors in a bourne-style
shell. (And I've personally lost time to that class of problems.) In
the worst case, a shell-quoting accident can cause loss of money by
sending bitcoins to the descriptor for a key your hardware signing
device won't sign for. I think these problems are much more serious
than using a tiny bit of extra space in a GUI or on a physical backup
medium.
-Dave
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
--=_f38c74c7-acf0-4990-af5e-06ba20506bea
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"font-family: courier new,courier,monaco,monospace=
,sans-serif; font-size: 10pt; color: #000000"><div>Hello,<br></div><div><br=
data-mce-bogus=3D"1"></div><div>I just wanted to put my two cents in, on t=
he metal backup aspect. We make the Bitcoin Recovery Tag for a similar purp=
ose. We use a fixed font, so using ' (apostrophe) or H/h are both acceptabl=
e. Most metal stamping tools are fixed width fonts.<br data-mce-bogus=3D"1"=
></div><div><br data-mce-bogus=3D"1"></div><div>You can see a picture here.=
..<br data-mce-bogus=3D"1"></div><div><a href=3D"https://cyphersafe.io/prod=
uct/bitcoin-recovery-tag/">https://cyphersafe.io/product/bitcoin-recovery-t=
ag/</a><br data-mce-bogus=3D"1"></div><div><br data-mce-bogus=3D"1"></div><=
div>Thanks,<br data-mce-bogus=3D"1"></div><div>Daniel<br data-mce-bogus=3D"=
1"></div><div><br></div><div data-marker=3D"__SIG_PRE__">-- <br>Daniel Baye=
rdorffer, VP danielb@numberall.com <br>Numberall Stamp & Tool Co., Inc.=
www.numberall.com <br>Reuleaux Models www.reuleauxmodels.com<br>Cyph=
erSafe www.cyphersafe.io<br>PO BOX 187, Sangerville, ME 04479 USA <br=
>TEL: 207-876-3541 FAX: 207-876-3566</div><div><br></div><hr id=3D"zwchr" d=
ata-marker=3D"__DIVIDER__"><div data-marker=3D"__HEADERS__"><b>From: </b>"C=
raig Raw via bitcoin-dev" <bitcoin-dev@lists.linuxfoundation.org><br>=
<b>To: </b>"David A. Harding" <dave@dtrt.org><br><b>Cc: </b>"Bitcoin =
Protocol Discussion" <bitcoin-dev@lists.linuxfoundation.org><br><b>Se=
nt: </b>Saturday, July 3, 2021 10:00:51 AM<br><b>Subject: </b>Re: [bitcoin-=
dev] BIP Proposals for Output Script Descriptors<br></div><div><br></div><d=
iv data-marker=3D"__QUOTED_TEXT__"><div dir=3D"ltr">It's a consideration, n=
ot a serious concern.<br><div>When I made the point around alphanumeric cha=
racters being similar to the path numbers, I was actually thinking of the o=
utput descriptor appearing in a fixed character width font, which I pr=
efer as more appropriate for displaying hexidecimal values. In th=
is case, the apostrophe provides more whitespace which makes the path =
easier to parse visually. It's difficult to reduce this to a mathematical a=
rgument, as is true for many UX considerations. Your example in fixed width=
here: <a href=3D"https://gist.github.com/craigraw/fc98b9031a7e01e1bc5=
d75a77bdb72e5" target=3D"_blank" rel=3D"nofollow noopener noreferrer">https=
://gist.github.com/craigraw/fc98b9031a7e01e1bc5d75a77bdb72e5</a><br data-mc=
e-bogus=3D"1"></div><br><div>That said you make good arguments around the s=
hell quoting and stamps for metal backups, and therefore I agree it is pref=
erable to use the lowercase "h". Thanks for the detailed reply.</div><br><d=
iv>Craig</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Sat, Jul 3, 2021 at 12:11 PM David A. Harding <<a hre=
f=3D"mailto:dave@dtrt.org" target=3D"_blank" rel=3D"nofollow noopener noref=
errer">dave@dtrt.org</a>> wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 =
, 204 );padding-left:1ex">On Sat, Jul 03, 2021 at 10:35:48AM +0200, Craig R=
aw wrote:<br>
> There is a downside to using "h"/"H" from a UX perspective - taking up=
more<br>
> space <br>
<br>
Is this a serious concern of yours? An apostrophe is 1/2 en; an "h" i=
s<br>
1 en; the following descriptor contains three hardened derivations in 149<b=
r>
characters; assuming the average non-'/h character width is 1.5 en, the<br>
difference between 207 en and 208.5 en is barely more than half a<br>
percent.<br>
<br>
pkh([d34db33f/44h/0h/0h]xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed5=
4G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/=
1/*)#ml40v0wf<br>
<br>
Here's a direct visual comparison: <a href=3D"https://gist.github.com/hardi=
ng/2fbbf2bfdce04c3e4110082f03ae3c80" rel=3D"noreferrer nofollow noopener no=
referrer" target=3D"_blank">https://gist.github.com/harding/2fbbf2bfdce04c3=
e4110082f03ae3c80</a><br>
<br>
> appearing as alphanumeric characters similar to the path numbers<br>
<br>
First, I think you'd have to be using an awful font to confuse "h" with<br>
any arabic numeral. Second, avoiding transcription errors is exactly<=
br>
why descriptors now have checksums.<br>
<br>
> they make derivation paths and descriptors more difficult to read.<br>
<br>
The example descriptor pasted above looks equally (un)readable to me<br>
whether it uses ' or h.<br>
<br>
> Also, although not as important, less efficient when making metal<br>
> backups.<br>
<br>
I think many metal backup schemes are using stamps or punch grids that<br>
are fixed-width in nature, so there's no difference either way. (And<=
br>
you can argue that h is better since it's part of both the base58check<br>
and bech32 character sets, so you already need a stamp or a grid row for<br=
>
it---but ' is otherwise unused, so a stamp or grid row for it would be<br>
special).<br>
<br>
But even if people are manually etching descriptors into metal, we're<br>
back to the original point where we're looking at something like a 0.7%<br>
difference in "efficiency".<br>
<br>
By comparison, the Bitcoin Core issue I cited in my earlier post<br>
contains several examples of actual users needing technical support<br>
because they tried to use '-containing descriptors in a bourne-style<br>
shell. (And I've personally lost time to that class of problems.)&nbs=
p; In<br>
the worst case, a shell-quoting accident can cause loss of money by<br>
sending bitcoins to the descriptor for a key your hardware signing<br>
device won't sign for. I think these problems are much more serious<b=
r>
than using a tiny bit of extra space in a GUI or on a physical backup<br>
medium.<br>
<br>
-Dave<br>
</blockquote></div>
<br>_______________________________________________<br>bitcoin-dev mailing =
list<br>bitcoin-dev@lists.linuxfoundation.org<br>https://lists.linuxfoundat=
ion.org/mailman/listinfo/bitcoin-dev<br></div></div></body></html>
--=_f38c74c7-acf0-4990-af5e-06ba20506bea--
|