-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling DID value, which is not known until after DID Doc has been committed #4
Comments
I think the designers of the git:did method need to decide where the DID Doc/keys/etc. are going to exist. That is, in the .git directory? As a top-level file called something like SECURITY.md, or something else? If it's in the .git directory, and you're going to modify the git binary, you have a ton of options. If you are going to use something like SECURITY.md, then you can always make that the second commit and thus it's clear what to put in |
@msporny we went back and forth on this for a long time but we think we came to a well-reasoned conclusion. We decided that all of the files must be stored in the repo itself and not in the .git directory. Here are a bunch of reasons:
I originally envisioned all of these documents going into a |
See also #16 |
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:
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
id
is 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?The text was updated successfully, but these errors were encountered: