Skip to content

Commit

Permalink
add some unit tests for VC and VP validation
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Sep 18, 2023
1 parent ff920f5 commit 22c24e1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/credentials/src/ssi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export class VerifiableCredential {
} else {
vc = {
id : uuidv4(),
'@context' : ['https://www.w3.org/2018/credentials/v1'],
'@context' : ['https://www.w3.org/2018/credentials/v1'], // should this be set to DEFAULT_CONTEXT from ./types.ts?
credentialSubject : createVcOptions!.credentialSubject,
type : ['VerifiableCredential'],
type : ['VerifiableCredential'], // should this be set to DEFAULT_VC_TYPE from ./types.ts?
issuer : createVcOptions!.issuer,
issuanceDate : getCurrentXmlSchema112Timestamp(),
credentialSchema : createVcOptions?.credentialSchema,
Expand Down
Loading

0 comments on commit 22c24e1

Please sign in to comment.