-
Notifications
You must be signed in to change notification settings - Fork 22
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
Generated credential is not valid JSON-LD #13
Comments
This service is using the JWT VC format and not the JSON-LD format. Although I would be happy to accept contributions that enable the use of JSON-LD as well. Both are accepted encodings of verifiable credentials in the w3c spec. |
I missed:
I just saw:
So, I'll concede the In the long term, I think having a valid semantic representation would be nice. schema.org is a morass of definitions. I think maybe RegisterAction… |
Happy to add a relevant context if you want to create one! |
Here's where I'm at currently: {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"http://schema.org/"
],
"type": [
"VerifiableCredential",
"RegisterAction"
],
"credentialSubject": {
"verification": {
"agent": { "name": "dysbulic" },
"location": {
"name": "Github",
"url": "https://github.com"
},
"result": {
"name": "gist",
"url": "https://gist.githubusercontent.com/dysbulic/2d6173168e3418%20DID"
}
}
}
} My statement is "dysbulic created a gist at http://gist… verifying their control of their Github account." The potentially useful contexts are:
|
Interesting, I'm learning as we go here 😅 Haven't played around with JSON-LD much tbh! Maybe it could make sense to use Claim here somehow? |
Linked Data is black magic to me. I get the sense it would be really useful if I could but grasp it. Especially for systems that are doing data discovery. It's all apparently analogous to building a directed graph. I've not been able to find a tutorial depicting it pictorially though.
I'm having difficulty finding properties where I'd stick the gist and site info. I see how I could represent the claim "there is no God", but not "the user controls the username dysbulic on Github". Maybe though, there's alot of properties on a Claim. |
The current Verifiable Credential looks like:
There are several parts of the VC & JSON-LD specifications are not followed. These include:
issuer
property specifying creator's DIDcredentialSubject
should contain anid
specifying the subject's DID@context
should contain a contextualization for the contents of theaccount
propertytype
should contain a descriptor for theaccount
propertyThe issuer and subject are present as the
iss
&sub
properties, but I'm pretty sure they're also supposed to be present in the VC in case the JWT wrapper is stripped off in a presentation.My understanding is JSON-LD's
context
is supposed to contain entries for all the elements in the document.The text was updated successfully, but these errors were encountered: