-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for Verifiable Credential Data Model 2.0
Signed-off-by: Bob Stasyszyn <[email protected]>
- Loading branch information
1 parent
69c25a9
commit 26282ac
Showing
44 changed files
with
2,064 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
|
||
"identifier": "http://schema.org/identifier", | ||
"image": {"@id": "http://schema.org/image", "@type": "@id"}, | ||
|
||
"PermanentResidentCard": { | ||
"@id": "https://w3id.org/citizenship#PermanentResidentCard", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
|
||
"id": "@id", | ||
"type": "@type", | ||
|
||
"identifier": "http://schema.org/identifier", | ||
"image": {"@id": "http://schema.org/image", "@type": "@id"} | ||
} | ||
}, | ||
|
||
"PermanentResident": { | ||
"@id": "https://w3id.org/citizenship#PermanentResident", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
|
||
"id": "@id", | ||
"type": "@type", | ||
|
||
"ctzn": "https://w3id.org/citizenship#", | ||
"schema": "http://schema.org/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
|
||
"birthCountry": "ctzn:birthCountry", | ||
"birthDate": {"@id": "schema:birthDate", "@type": "xsd:dateTime"}, | ||
"commuterClassification": "ctzn:commuterClassification", | ||
"familyName": "schema:familyName", | ||
"gender": "schema:gender", | ||
"givenName": "schema:givenName", | ||
"lprCategory": "ctzn:lprCategory", | ||
"lprNumber": "ctzn:lprNumber", | ||
"residentSince": {"@id": "ctzn:residentSince", "@type": "xsd:dateTime"} | ||
} | ||
}, | ||
|
||
"Person": "http://schema.org/Person" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
pkg/internal/testutil/contexts/credentials-examples_v2.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "https://www.w3.org/ns/credentials/examples#" | ||
} | ||
} |
Oops, something went wrong.