-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Warning: I'm not up to date on the latest DID ABNF, so my examples may look off
Context
In the git did method spec, the "repo did" is based on the SHA1 of the commit used to create the repo did doc.
This leads to the same chicken-and-egg problem we had in BTCR when pointing to "continuation" DID documents in immutable storage, like IPFS. This leads to the question of what goes here:
{
"@context": "https://wsid.org/git-method/v1",
"id": // What goes here?
...
}
Our approach for BTCR was to allow fragments in the continuation document, and the method spec told the resolver to splice in DID (once the confirmed tx is known)
E.g.: a continuation DID doc in the immutable store could look like this "id": "#frag1", and the resolver would splice in the known did, returning this "id": "did:btcr:<txref>#frag1"
Questions
-
Is the above relative fragment/path approach still valid? Keep in mind my terminology like "fragment" may be out of date.
-
What should be done if no fragment/path/etc is needed? The latest DID spec indicates that
idis a required field, but does that apply to the resolved doc? In other words, can the field be omitted? Or does it need to exist and have an empty string or placeholder value?