File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,26 @@ const setContexts = contexts => {
20
20
contextMap . set ( key , structuredClone ( value ) ) ;
21
21
}
22
22
} ;
23
+ const invalidPurpose = {
24
+ '@id' : 'https://w3id.org/security#invalidPurpose' ,
25
+ '@type' : '@id' ,
26
+ '@container' : '@set'
27
+ } ;
23
28
24
29
const { context : vc2Context } = namedCredentialsContexts . get ( 'v2' ) ;
25
30
const v2Ctx = vc2Context [ '@context' ] ;
26
31
v2Ctx . UnknownProofType = structuredClone ( v2Ctx . DataIntegrityProof ) ;
32
+ v2Ctx . DataIntegrityProof [ '@context' ] . proofPurpose [ '@context' ] . invalidPurpose =
33
+ invalidPurpose ;
34
+ v2Ctx . undefinedTerm = 'urn:example:undefinedTerm' ;
35
+
27
36
const _dataIntegrityCtx = structuredClone ( dataIntegrityCtx . CONTEXT ) ;
28
37
const diCtx = _dataIntegrityCtx [ '@context' ] ;
29
38
diCtx . UnknownProofType = structuredClone ( diCtx . DataIntegrityProof ) ;
39
+ diCtx . DataIntegrityProof [ '@context' ] . proofPurpose [ '@context' ] . invalidPurpose =
40
+ invalidPurpose ;
41
+ diCtx . undefinedTerm = 'urn:example:undefinedTerm' ;
42
+
30
43
contextMap . set (
31
44
dataIntegrityCtx . constants . CONTEXT_URL ,
32
45
_dataIntegrityCtx
You can’t perform that action at this time.
0 commit comments