W3C home > Mailing lists > Public > public-credentials@w3.org > January 2022

Re: Using a DID Identifier in a filename?

From: Orie Steele <orie@transmute.industries>
Date: Thu, 13 Jan 2022 14:23:49 -0600
Message-ID: <CAN8C-_KZ1DgnsZNuvR=aw6GnTbXDfTDb1Hh=_ENCb0ixuQhMmw@mail.gmail.com>
To: "Michael Herman (Trusted Digital Web)" <mwherman@parallelspace.net>
Cc: "public-credentials (public-credentials@w3.org)" <public-credentials@w3.org>
Yes, I have had this problem before.

and yes, you can just convert all reserved characters from the ABNF.

https://www.w3.org/TR/did-core/#did-syntax (beware of "." and "_", etc)

If you can get away with dropping the "did:method" part, your files will be
more readable.

You can also consider a folder structure approach: /did/method/id.json

OS


ᐧ

On Thu, Jan 13, 2022 at 2:17 PM Michael Herman (Trusted Digital Web) <
mwherman@parallelspace.net> wrote:

> Given that a colon is an invalid filename character (at least on most
> PCs), does any one have any thoughts about a convention for mapping a DID
> Identifier into a filename?
>
> For example, using a simple mapping of a colon into a dot (period)?
> [image: Image]
>
> Michael Herman
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
>


-- 
*ORIE STEELE*
Chief Technical Officer
www.transmute.industries

<https://www.transmute.industries>

did-filenames.png
(image/png attachment: did-filenames.png)

Received on Thursday, 13 January 2022 20:25:14 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 13 January 2022 20:25:15 UTC