Skip to content
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

Add "key-type" DID URL matrix parameter. #60

Open
wants to merge 1 commit into
base: master
from

Conversation

@peacekeeper
Copy link
Contributor

peacekeeper commented Oct 5, 2019

Re-creating PR from CCG repo: w3c-ccg/did-spec#193. Please consider earlier discussions there.


Preview | Diff

@peacekeeper

This comment has been minimized.

Copy link
Contributor Author

peacekeeper commented Oct 5, 2019

This adds one concrete DID URL matrix parameter.

Description: Identifies a set of keys from the DID Document by key type.

Example: did:example:1234;key-type=Ed25519VerificationKey2018

@dlongley

This comment has been minimized.

Copy link
Contributor

dlongley commented Oct 5, 2019

-1 to merging as is because I don't know what the purpose of this parameter is and because it seems like it would tend to produce a set of keys whilst losing their authorized purpose (which could be dangerous). It is also "key" specific, not allowing for other types (i.e., why not "type="?).

@msporny

This comment has been minimized.

Copy link
Member

msporny commented Oct 10, 2019

did:example:1234;key-type=Ed25519VerificationKey2018

I don't understand the use case here... why can't you just write a function to go through the DID Document and fetch all of these keys?

I'm trying to understand where we'd put a value like this -- did:example:1234;key-type=Ed25519VerificationKey2018 ... like, we'd put it in a database table because we'd want to get the set of all Ed25519VerificationKey2018s, but I'm struggling to figure out why we'd put this value in a database table vs. just write a function to extract what we want from the DID Document?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.