<div dir="ltr"><div dir="ltr">On Thu, Aug 5, 2021 at 8:07 AM Sjors Provoost via bitcoin-dev <<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color: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'/0'/0']xpub.../{0-1}/*)>709631<br>
<br>
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}<br></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>See:</div><div>* Video: [Blockchain Commons Technology Overview](<a href="https://www.youtube.com/watch?v=RYgOFSdUqWY">https://www.youtube.com/watch?v=RYgOFSdUqWY</a>)</div><div>* Articles: [URs: An Overview](Docs/ur-1-overview.md)<br>  * [A Guide to Using URs for Key Material](Docs/ur-2-keys.md)<br>  *[A Guide to Using URs for SSKRs](Docs/ur-3-sskrs.md)**<br>  * [A Guide to Using UR Request & Response](Docs/ur-99-request-response.md)<br></div><div>* Specs:</div><div>  * [Research 2020-05 - Uniform Resources (UR): Encoding Structured Binary Data for Transport in URIs and QR Codes](<a href="https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-005-ur.md">https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-005-ur.md</a>)</div><div>  * [Reserach 2020 - UR Type Definition for Hierarchical Deterministic (HD) Keys](<a href="https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-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 questions about these, drop by the Airgapped Wallet Community on GitHub at <a href="https://github.com/BlockchainCommons/Airgapped-Wallet-Community">https://github.com/BlockchainCommons/Airgapped-Wallet-Community</a></div><div><br></div><div>-- Christopher Allen</div></div></div>