summaryrefslogtreecommitdiff
path: root/64/3216ef45efafce3a1563ec9bc472cdbdbd7619
blob: 9a84fddf1a59c08205e0537df344e1f55be50c64 (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
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
Return-Path: <christophera@gmail.com>
Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id DF7B0C000E
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Thu,  5 Aug 2021 20:50:22 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp4.osuosl.org (Postfix) with ESMTP id C16514064F
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Thu,  5 Aug 2021 20:50:22 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -1.398
X-Spam-Level: 
X-Spam-Status: No, score=-1.398 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
 autolearn=no autolearn_force=no
Authentication-Results: smtp4.osuosl.org (amavisd-new);
 dkim=pass (2048-bit key)
 header.d=lifewithalacrity-com.20150623.gappssmtp.com
Received: from smtp4.osuosl.org ([127.0.0.1])
 by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 1zDYNi9Yj4G8
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Thu,  5 Aug 2021 20:50:21 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.8.0
Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com
 [IPv6:2607:f8b0:4864:20::e2c])
 by smtp4.osuosl.org (Postfix) with ESMTPS id 8821140627
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Thu,  5 Aug 2021 20:50:21 +0000 (UTC)
Received: by mail-vs1-xe2c.google.com with SMTP id j19so3909687vso.0
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Thu, 05 Aug 2021 13:50:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=lifewithalacrity-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=RHqgZ+9svUWmZiR9xmy2eN0ccoF+CxyZ73YxM0PRL2Q=;
 b=Y3QDXPbH0NHKpfsJcmFXFnyCBVSqf0uNpIIxoeQNdolg0WUx4d1fAUA33hiyeog7vl
 Vx04C4ocCT4EjhvvlmjRX8Jav7GeJT/RADxrA4/tIyt94nDFAhnZ2HFkvscgwdgj0Hjm
 HbT1PnJ8jxAU/ILnyZxFhvAYm4sKHTIOvjc+ZhKjuW4UxEkr2fHPyHK+wmGH4UTBLERa
 IJE6HLdEOhzmWI26tr71uRDzpvSpj9o6RoGReND9HEZVoqf5mFsUR7EPJlfU7UUOeiDu
 FlQXR8EJq3RSUVhSKrGSvHIjoha5fZqtN51CqH2X/jCpIK8VQ5PdKVorYQtGCFxEL3Dk
 y1Mw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=RHqgZ+9svUWmZiR9xmy2eN0ccoF+CxyZ73YxM0PRL2Q=;
 b=KFLqtSPRTv7/Vrw136bYhVGdHW9651ZCNQ2G+nftU2sRwwvYUlmRw3HkEWcH1CZKi0
 Scoml+pRXrcz2OOVC6kC0slZ1J99Z2D3+fi72HmO37sjmTqTKOWOAPf9zQhqq0OgG0g6
 oDlUlahoBxK1bEQ0Y9oQUAblUEIFWrktbBSrpRmJ16bUQsDOfOikcKVbI+iFJxNTJrUw
 w0EIVzNghpsvcRzyxUh1PswDRen1sRL4BZrfi7KnKgVHe2PV3X3RAbBlHJCRDIi9wIAp
 boACbnkwrCtez7TweX7YN+6XCZbUzP78Bw/lVE0wbPno5W9GaUBnPFhAz15sKycyOQCL
 JH4A==
X-Gm-Message-State: AOAM530B8/MQ+3nK6NAJy5O1auSLNuHyeMjhKFlGBtnqIWQXzwMFp1OB
 oOKsZafbTs+8xTSZ18rwb/4BOiQtE5o8+4LnnUc=
X-Google-Smtp-Source: ABdhPJxxEpIN9YXeyT/iq5ZQArcU1DXCA0cOzexyEN2afcD1lkVDyXfRWOyT+qx3hsqlOtIysJoaefgwk9EP9zs/VcI=
X-Received: by 2002:a67:f7ca:: with SMTP id a10mr6536123vsp.7.1628196620216;
 Thu, 05 Aug 2021 13:50:20 -0700 (PDT)
MIME-Version: 1.0
References: <1eb7b635-094c-a583-7dc0-21cea58ed1fb@achow101.com>
 <38AE919F-7EA2-4CF4-9AF8-7E38C7542C59@sprovoost.nl>
In-Reply-To: <38AE919F-7EA2-4CF4-9AF8-7E38C7542C59@sprovoost.nl>
From: Christopher Allen <ChristopherA@lifewithalacrity.com>
Date: Thu, 5 Aug 2021 13:49:43 -0700
Message-ID: <CACrqygAVreg0ALPeg50vrHB+J=X6quUaEyGv9ia5WgDQzDL10A@mail.gmail.com>
To: Sjors Provoost <sjors@sprovoost.nl>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="0000000000002c459205c8d611fa"
X-Mailman-Approved-At: Thu, 05 Aug 2021 21:05:13 +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: Thu, 05 Aug 2021 20:50:23 -0000

--0000000000002c459205c8d611fa
Content-Type: text/plain; charset="UTF-8"

On Thu, Aug 5, 2021 at 8:07 AM Sjors Provoost via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:

> One thing on my wish list - for this BIP, BIP 88 (Hierarchical
> Deterministic Path Templates) or yet another one - is to include a birth
> date (minimum block height). E.g. tr([m/86'/0'/0']xpub.../{0-1}/*)>709631
>
> And then of course there's the gap limit. Perhaps we just need a
> "metadata" format to go along with descriptors to track the birth data, gap
> limit and anything else you need (nonce collection for musig2 setup?). E.g.
> a simple dictionary: tr([m/86'/0'/0']xpub.../{0-1}/*){dob:709631,gap:1000}
>

The UR standards we use in Airgap Wallet Community for interoperability
(currently used by a number of recent wallets for airgap PSBT via animated
QR) leverages CBOR's tagging capability, and thus explicitly supports
metadata. In particular the spec reference code support optional seed
birthdate as some wallet vendors really wanted that metadata.

It would be trivial to support it for hd-keys, and if gap is important, we
could also easily add this to the hd-keys spec as well. That is part of the
reason why use CBOR for the underlying binary encoding is tagging lets
us add important metadata. The UR standards themselves adds to binary CBOR
encoding a very efficient transport via QRs or URLs that leverage native QR
compression.

See:
* Video: [Blockchain Commons Technology Overview](
https://www.youtube.com/watch?v=RYgOFSdUqWY)
* Articles: [URs: An Overview](Docs/ur-1-overview.md)
  * [A Guide to Using URs for Key Material](Docs/ur-2-keys.md)
  *[A Guide to Using URs for SSKRs](Docs/ur-3-sskrs.md)**
  * [A Guide to Using UR Request & Response](Docs/ur-99-request-response.md)
* Specs:
  * [Research 2020-05 - Uniform Resources (UR): Encoding Structured Binary
Data for Transport in URIs and QR Codes](
https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-005-ur.md
)
  * [Reserach 2020 - UR Type Definition for Hierarchical Deterministic (HD)
Keys](
https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-007-hdkey.md
)

If you have questions about these, drop by the Airgapped Wallet Community
on GitHub at https://github.com/BlockchainCommons/Airgapped-Wallet-Community

-- Christopher Allen

--0000000000002c459205c8d611fa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Thu, Aug 5, 2021 at 8:07 AM Sjors Prov=
oost via bitcoin-dev &lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundatio=
n.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt; wrote:<br></div><div c=
lass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-col=
or:rgb(204,204,204);padding-left:1ex">One thing on my wish list - for this =
BIP, BIP 88 (Hierarchical Deterministic Path Templates) or yet another one =
- is to include a birth date (minimum block height). E.g. tr([m/86&#39;/0&#=
39;/0&#39;]xpub.../{0-1}/*)&gt;709631<br>
<br>
And then of course there&#39;s the gap limit. Perhaps we just need a &quot;=
metadata&quot; format to go along with descriptors to track the birth data,=
 gap limit and anything else you need (nonce collection for musig2 setup?).=
 E.g. a simple dictionary: tr([m/86&#39;/0&#39;/0&#39;]xpub.../{0-1}/*){dob=
:709631,gap:1000}<br></blockquote><div><br></div><div>The UR standards we u=
se in Airgap Wallet Community for interoperability (currently used by a num=
ber of recent wallets for airgap=C2=A0PSBT via animated QR) leverages CBOR&=
#39;s tagging capability, and thus explicitly supports metadata. In particu=
lar the spec reference code=C2=A0support=C2=A0optional seed birthdate as so=
me wallet vendors really wanted that metadata.</div><div><br></div><div>It =
would be trivial=C2=A0to support it for hd-keys, and if gap is important, w=
e could also easily add this to the hd-keys spec as well. That is part of t=
he reason why=C2=A0use CBOR for the underlying binary encoding is tagging l=
ets us=C2=A0add=C2=A0important metadata. The UR standards=C2=A0themselves a=
dds to binary CBOR encoding a very efficient transport via QRs or URLs that=
 leverage native QR compression.</div><div><br></div><div>See:</div><div>* =
Video: [Blockchain Commons Technology Overview](<a href=3D"https://www.yout=
ube.com/watch?v=3DRYgOFSdUqWY">https://www.youtube.com/watch?v=3DRYgOFSdUqW=
Y</a>)</div><div>* Articles: [URs: An Overview](Docs/ur-1-overview.md)<br>=
=C2=A0 * [A Guide to Using URs for Key Material](Docs/ur-2-keys.md)<br>=C2=
=A0 *[A Guide to Using URs for SSKRs](Docs/ur-3-sskrs.md)**<br>=C2=A0 * [A =
Guide to Using UR Request &amp; Response](Docs/ur-99-request-response.md)<b=
r></div><div>* Specs:</div><div>=C2=A0 * [Research 2020-05 - Uniform Resour=
ces (UR): Encoding Structured Binary Data for Transport in URIs and QR Code=
s](<a href=3D"https://github.com/BlockchainCommons/Research/blob/master/pap=
ers/bcr-2020-005-ur.md">https://github.com/BlockchainCommons/Research/blob/=
master/papers/bcr-2020-005-ur.md</a>)</div><div>=C2=A0 * [Reserach 2020 -=
=C2=A0UR Type Definition for Hierarchical Deterministic (HD) Keys](<a href=
=3D"https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-20=
20-007-hdkey.md">https://github.com/BlockchainCommons/Research/blob/master/=
papers/bcr-2020-007-hdkey.md</a>)</div><div><br></div><div>If you have ques=
tions about these, drop by the Airgapped Wallet Community on GitHub at=C2=
=A0<a href=3D"https://github.com/BlockchainCommons/Airgapped-Wallet-Communi=
ty">https://github.com/BlockchainCommons/Airgapped-Wallet-Community</a></di=
v><div><br></div><div>-- Christopher Allen</div></div></div>

--0000000000002c459205c8d611fa--