Skip to content

Commit

Permalink
fix json load
Browse files Browse the repository at this point in the history
Signed-off-by: F-Node-Karlsruhe <christian.fries@eecc.de>
  • Loading branch information
F-Node-Karlsruhe committed Aug 5, 2024
1 parent 9bea964 commit 22a3e6f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@context": {
"@protected": "true",
"EPCISDocumentCredential": {
"@id": "https://github.com/european-epc-competence-center/epcis-signing#epcisdocumentcredential"
},
"EPCISEventCredential": {
"@id": "https://github.com/european-epc-competence-center/epcis-signing#epciseventcredential"
},
"name": "http://schema.org/name",
"image": "http://schema.org/image"
}
}
2 changes: 1 addition & 1 deletion package/src/signing/json-ld-signatures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function createEPCISCredential(issuer: string, subject: EPCISDocument | E
return {
'@context': [
'https://www.w3.org/2018/credentials/v1',
'https://raw.githubusercontent.com/COPPA-CCP/epcis-signing/main/package/src/signing/json-ld-signatures/contexts/epcis-credentials-context.ts'
'https://raw.githubusercontent.com/COPPA-CCP/epcis-signing/main/package/src/signing/json-ld-signatures/contexts/epcis-credential-context.json'
],
type: ['VerifiableCredential', subject.type == 'EPCISDocument' ? 'EPCISDocumentCredential' : 'EPCISEventCredential'],
...(credentialId && { id: credentialId }),
Expand Down

0 comments on commit 22a3e6f

Please sign in to comment.