Skip to content

Commit d589215

Browse files
Add zCap v0.3 context.
Signed-off-by: Dmitri Zagidulin <dzagidulin@gmail.com>
1 parent a5e0239 commit d589215

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@digitalbazaar/data-integrity-context": "^2.0.0",
3030
"@digitalbazaar/vc-bitstring-status-list-context": "^1.0.0",
3131
"@digitalbazaar/vc-status-list-context": "^3.0.1",
32+
"@digitalbazaar/zcap-context": "^2.0.1",
3233
"@digitalcredentials/credentials-v2-context": "^1.0.0",
3334
"@digitalcredentials/crypto-ld": "^7.0.2",
3435
"@digitalcredentials/dcc-context": "^1.0.0",

src/declarations.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ declare module 'react-native-keychain';
2424
declare module '@digitalcredentials/open-badges-context';
2525
declare module '@digitalcredentials/credentials-v2-context';
2626
declare module '@digitalcredentials/http-client';
27+
declare module '@digitalbazaar/zcap-context'

src/documentLoader.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import dccContext from '@digitalcredentials/dcc-context';
1818
import didContext from 'did-context';
1919
import ed25519Context from 'ed25519-signature-2020-context';
2020
import x25519Context from 'x25519-key-agreement-2020-context';
21+
import zcapContext from '@digitalbazaar/zcap-context';
2122
import { JsonLdDocumentLoader } from 'jsonld-document-loader';
2223
import obContext from '@digitalcredentials/open-badges-context';
2324
import { httpClient } from '@digitalcredentials/http-client';
@@ -127,6 +128,9 @@ export function securityLoader({ fetchRemoteContexts = false, useOBv3BetaContext
127128
// Status List 2021 Context (DEPRECATED)
128129
loader.addStatic(vcStatusListContext.CONTEXT_URL_V1, vcStatusListContext.CONTEXT_V1);
129130

131+
// zCap Context (Authorization Capabilities v0.3)
132+
loader.addStatic(zcapContext.CONTEXT_URL, zcapContext.CONTEXT);
133+
130134
// Open Badges v3 Contexts, includes OBv3 Beta, 3.0, 3.0.1, 3.0.2, etc.
131135
for (const [url, context] of obContext.contexts) {
132136
loader.addStatic(url, context)

0 commit comments

Comments
 (0)