Open msporny opened 2 years ago
In my view, the decentralized identifier (DID) itself is canonical.
Canonical URLs as described in RFC 6596 exist so one of several identical resources can be identified as representative of the entire group. The DID meets that need.
can we upload json file in google drive and share it like http://drive.google.com/uc?export=download&id=1LX7vjFYFU9yTj14mvFwCj22lQKHDH7J3 in issuer in vc instead of did:web: domainname ??
can we upload json file in google drive and share it like http://drive.google.com/uc?export=download&id=1LX7vjFYFU9yTj14mvFwCj22lQKHDH7J3 in issuer in vc instead of did:web: domainname ??
Great question. I do think the 'upload to google drive' is a good usecase to think through.
What is the canonical URL for a did:web
id
field. At present, one variation of the future looks like this:did:web:example.com -> HTTP GET https://example.com/.well-known/did.json
Then the question becomes, what should we expect in the
id
field for the resulting DID Document. One possibility is this:... but another possibility is this:
What if someone specified this as their DID:
did:web:example.com/alice.json
, but their DID Document states:Is this DID
did:web:example.com
equivalent to this DIDdid:web:example.com/
?The current specification does not have an answer to any of these questions, which can be summarized as: What is the canonical URL for a DID Web identifier, if any?
Therefore, if the proposal to use absolute URLs is rejected https://github.com/w3c-ccg/did-method-web/issues/52 ... then it raises the question around what a canonical DID Web ID is.
At present, there might be an assumption that there is a canonical URL for a DID Web ID, that is, these are canonical URLs for the examples above:
If that's the case, then it holds that we have to have at least two special cases when determining if a DID Web ID is valid based on the DID Document we receive:
id
field in the DID Document MUST bedid:web:DOMAIN
.id
field in the DID Document MUST bedid:web:DOMAIN/ARBITRARY_PATH/FILE
(without the extension).Are there any other special cases we need to consider?