-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Employment authorization document test vector.
Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Manu Sporny <[email protected]>
- Loading branch information
1 parent
0c5c862
commit 8fe612f
Showing
11 changed files
with
203 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<did:key:zDnaegE6RR3atJtHKwTRTWHsJ3kNHqFwv7n9YjTgmU7TyfU76> <https://schema.org/image> <data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgUPr/HwADaAIhG61j/AAAAABJRU5ErkJggg==> . | ||
_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/citizenship#EmploymentAuthorizationDocumentCredential> . | ||
_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> . | ||
_:c14n0 <https://schema.org/description> "Example Employment Authorization Document." . | ||
_:c14n0 <https://schema.org/name> "Employment Authorization Document" . | ||
_:c14n0 <https://www.w3.org/2018/credentials#credentialSubject> _:c14n1 . | ||
_:c14n0 <https://www.w3.org/2018/credentials#issuer> <did:key:zDnaegE6RR3atJtHKwTRTWHsJ3kNHqFwv7n9YjTgmU7TyfU76> . | ||
_:c14n0 <https://www.w3.org/2018/credentials#validFrom> "2019-12-03T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
_:c14n0 <https://www.w3.org/2018/credentials#validUntil> "2029-12-03T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
_:c14n1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Person> . | ||
_:c14n1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/citizenship#EmployablePerson> . | ||
_:c14n1 <https://schema.org/additionalName> "JACOB" . | ||
_:c14n1 <https://schema.org/birthDate> "1999-07-17"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
_:c14n1 <https://schema.org/familyName> "SMITH" . | ||
_:c14n1 <https://schema.org/gender> "Male" . | ||
_:c14n1 <https://schema.org/givenName> "JOHN" . | ||
_:c14n1 <https://schema.org/image> <data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2Ng+M/wHwAEAQH/7yMK/gAAAABJRU5ErkJggg==> . | ||
_:c14n1 <https://w3id.org/citizenship#birthCountry> "Bahamas" . | ||
_:c14n1 <https://w3id.org/citizenship#employmentAuthorizationDocument> _:c14n2 . | ||
_:c14n1 <https://w3id.org/citizenship#residentSince> "2015-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
_:c14n2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/citizenship#EmploymentAuthorizationDocument> . | ||
_:c14n2 <https://schema.org/identifier> "83627465" . | ||
_:c14n2 <https://w3id.org/citizenship#lprCategory> "C09" . | ||
_:c14n2 <https://w3id.org/citizenship#lprNumber> "999-999-999" . |
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 @@ | ||
bea7b7acfbad0126b135104024a5f1733e705108f42d59668b05c0c50004c6b003f59e5b04ab575b1172cb684f22eede72f0e9033e0b5c67d0e2506768d6ce11 |
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 @@ | ||
03f59e5b04ab575b1172cb684f22eede72f0e9033e0b5c67d0e2506768d6ce11 |
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 @@ | ||
_:c14n0 <http://purl.org/dc/terms/created> "2023-02-24T23:36:38Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#DataIntegrityProof> . | ||
_:c14n0 <https://w3id.org/security#cryptosuite> "eddsa-rdfc-2022"^^<https://w3id.org/security#cryptosuiteString> . | ||
_:c14n0 <https://w3id.org/security#proofPurpose> <https://w3id.org/security#assertionMethod> . | ||
_:c14n0 <https://w3id.org/security#verificationMethod> <did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2> . |
11 changes: 11 additions & 0 deletions
11
TestVectors/eddsa-rdfc-2022/employ/proofConfigDataInt.json
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,11 @@ | ||
{ | ||
"type": "DataIntegrityProof", | ||
"cryptosuite": "eddsa-rdfc-2022", | ||
"created": "2023-02-24T23:36:38Z", | ||
"verificationMethod": "did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", | ||
"proofPurpose": "assertionMethod", | ||
"@context": [ | ||
"https://www.w3.org/ns/credentials/v2", | ||
"https://w3id.org/citizenship/v4rc1" | ||
] | ||
} |
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 @@ | ||
bea7b7acfbad0126b135104024a5f1733e705108f42d59668b05c0c50004c6b0 |
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 @@ | ||
zeuuS9pi2ZR8Q41bFFJKS9weSWkwa7pRcxHTHzxjDEHtVSZp3D9Rm3JdzT82EQpmXMb9wvfFJLuDPeSXZaRX1q1c |
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 @@ | ||
20b1a944960b75ca69ba070af4820de6e6acae1afe827d8c566c0f7b932d1bd3abde3222b3095088051439a8b4e7a5356c7ba6d246774f875ebb6ddee1577003 |
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,46 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/ns/credentials/v2", | ||
"https://w3id.org/citizenship/v4rc1" | ||
], | ||
"type": [ | ||
"VerifiableCredential", | ||
"EmploymentAuthorizationDocumentCredential" | ||
], | ||
"issuer": { | ||
"id": "did:key:zDnaegE6RR3atJtHKwTRTWHsJ3kNHqFwv7n9YjTgmU7TyfU76", | ||
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgUPr/HwADaAIhG61j/AAAAABJRU5ErkJggg==" | ||
}, | ||
"credentialSubject": { | ||
"type": [ | ||
"Person", | ||
"EmployablePerson" | ||
], | ||
"givenName": "JOHN", | ||
"additionalName": "JACOB", | ||
"familyName": "SMITH", | ||
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2Ng+M/wHwAEAQH/7yMK/gAAAABJRU5ErkJggg==", | ||
"gender": "Male", | ||
"residentSince": "2015-01-01", | ||
"birthCountry": "Bahamas", | ||
"birthDate": "1999-07-17", | ||
"employmentAuthorizationDocument": { | ||
"type": "EmploymentAuthorizationDocument", | ||
"identifier": "83627465", | ||
"lprCategory": "C09", | ||
"lprNumber": "999-999-999" | ||
} | ||
}, | ||
"name": "Employment Authorization Document", | ||
"description": "Example Employment Authorization Document.", | ||
"validFrom": "2019-12-03T00:00:00Z", | ||
"validUntil": "2029-12-03T00:00:00Z", | ||
"proof": { | ||
"type": "DataIntegrityProof", | ||
"cryptosuite": "eddsa-rdfc-2022", | ||
"created": "2023-02-24T23:36:38Z", | ||
"verificationMethod": "did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", | ||
"proofPurpose": "assertionMethod", | ||
"proofValue": "zeuuS9pi2ZR8Q41bFFJKS9weSWkwa7pRcxHTHzxjDEHtVSZp3D9Rm3JdzT82EQpmXMb9wvfFJLuDPeSXZaRX1q1c" | ||
} | ||
} |
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,38 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/ns/credentials/v2", | ||
"https://w3id.org/citizenship/v4rc1" | ||
], | ||
"type": [ | ||
"VerifiableCredential", | ||
"EmploymentAuthorizationDocumentCredential" | ||
], | ||
"issuer": { | ||
"id": "did:key:zDnaegE6RR3atJtHKwTRTWHsJ3kNHqFwv7n9YjTgmU7TyfU76", | ||
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgUPr/HwADaAIhG61j/AAAAABJRU5ErkJggg==" | ||
}, | ||
"credentialSubject": { | ||
"type": [ | ||
"Person", | ||
"EmployablePerson" | ||
], | ||
"givenName": "JOHN", | ||
"additionalName": "JACOB", | ||
"familyName": "SMITH", | ||
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2Ng+M/wHwAEAQH/7yMK/gAAAABJRU5ErkJggg==", | ||
"gender": "Male", | ||
"residentSince": "2015-01-01", | ||
"birthCountry": "Bahamas", | ||
"birthDate": "1999-07-17", | ||
"employmentAuthorizationDocument": { | ||
"type": "EmploymentAuthorizationDocument", | ||
"identifier": "83627465", | ||
"lprCategory": "C09", | ||
"lprNumber": "999-999-999" | ||
} | ||
}, | ||
"name": "Employment Authorization Document", | ||
"description": "Example Employment Authorization Document.", | ||
"validFrom": "2019-12-03T00:00:00Z", | ||
"validUntil": "2029-12-03T00:00:00Z" | ||
} |
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