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

Re: Using a DID Identifier in a filename?

From: Michael Herman (Trusted Digital Web) <mwherman@parallelspace.net>
Date: Fri, 14 Jan 2022 02:09:44 +0000
To: "dzagidulin@gmail.com" <dzagidulin@gmail.com>, "public-credentials (public-credentials@w3.org)" <public-credentials@w3.org>
Message-ID: <MWHPR1301MB2094D936D79E4655A8943E52C3549@MWHPR1301MB2094.namprd13.prod.outlook.com>
How about these additions to #didlang (version 0.4)...

+did:color ...to register a new DID Method name

+did:color:mygray Name="My Gray" A=255 R=10 G=10 B=10 ...to add a new DID Chain: a new DID Identifier and associated DID Agent Cluster and subsequent DID Object

-did:color:mygray ...to deactivate the DID Chain associated with the DID Identifier

"More news at 11...",
Michael

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Michael Herman (Trusted Digital Web) <mwherman@parallelspace.net>
Sent: Thursday, January 13, 2022 6:43:18 PM
To: dzagidulin@gmail.com <dzagidulin@gmail.com>; public-credentials (public-credentials@w3.org) <public-credentials@w3.org>
Subject: Re: Using a DID Identifier in a filename?

As an aside: it would be interested to fuse did-cli and #didlang: https://youtu.be/mf0aKLvJoCw


Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Dmitri Zagidulin <dzagidulin@gmail.com>
Sent: Thursday, January 13, 2022 2:26:01 PM
To: public-credentials (public-credentials@w3.org) <public-credentials@w3.org>
Subject: Re: Using a DID Identifier in a filename?

Great question, Michael.

I've also been faced with this problem (storing did documents & keys for the did-cli tool), and I've found that URL-encoding the DIDs turns them into file system friendly identifiers.
I like Orie's suggestion too, though.

On Thu, Jan 13, 2022 at 3:27 PM Michael Herman (Trusted Digital Web) <mwherman@parallelspace.net<mailto:mwherman@parallelspace.net>> wrote:
I like the latter Orie. It's also a good way to avoid file system directory size related performance issues. Thk you

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Orie Steele <orie@transmute.industries>
Sent: Thursday, January 13, 2022 1:23:49 PM
To: Michael Herman (Trusted Digital Web) <mwherman@parallelspace.net<mailto:mwherman@parallelspace.net>>
Cc: public-credentials (public-credentials@w3.org<mailto:public-credentials@w3.org>) <public-credentials@w3.org<mailto:public-credentials@w3.org>>
Subject: Re: Using a DID Identifier in a filename?

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


[https://mailfoogae.appspot.com/t?sender=ab3JpZUB0cmFuc211dGUuaW5kdXN0cmllcw%3D%3D&type=zerocontent&guid=7cf96fab-9f51-468c-9ef4-e4f9bb121a76]ᐧ

On Thu, Jan 13, 2022 at 2:17 PM Michael Herman (Trusted Digital Web) <mwherman@parallelspace.net<mailto: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]

Michael Herman

Get Outlook for Android<https://aka.ms/AAb9ysg>


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

[https://drive.google.com/a/transmute.industries/uc?id=1hbftCJoB5KdeV_kzj4eeyS28V3zS9d9c&export=download]<https://www.transmute.industries>

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

Received on Friday, 14 January 2022 02:10:14 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:25:28 UTC