diff --git a/package.json b/package.json index 077a2a8..4ae0fe9 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "./package.json": "./package.json" }, "dependencies": { + "@digitalbazaar/credentials-v2-context": "github:digitalbazaar/credentials-v2-context", "@digitalbazaar/http-client": "^4.1.0", "@digitalbazaar/vc-status-list-context": "^3.0.1", "@digitalcredentials/crypto-ld": "^7.0.2", diff --git a/src/documentLoader.ts b/src/documentLoader.ts index 22e73a5..ae44a23 100644 --- a/src/documentLoader.ts +++ b/src/documentLoader.ts @@ -19,7 +19,7 @@ import * as didWeb from '@interop/did-web-resolver'; import { parseResponseBody } from './parseResponse'; import obCtx from '@digitalcredentials/open-badges-context'; import { httpClient } from '@digitalbazaar/http-client'; -// import vc2Context from '@digitalbazaar/credentials-v2-context'; +import * as vc2Context from '@digitalbazaar/credentials-v2-context'; const cryptoLd = new CryptoLD(); cryptoLd.use(Ed25519VerificationKey2020); @@ -108,7 +108,7 @@ export function securityLoader({ fetchRemoteContexts = false, useOBv3BetaContext credentialsContext.get(CREDENTIALS_CONTEXT_V1_URL), ); // Verifiable Credentials Data Model 2.0 - BETA / non-final - // loader.addStatic(vc2Context.CONTEXT_URL, vc2Context.CONTEXT); + loader.addStatic(vc2Context.CONTEXT_URL, vc2Context.CONTEXT); loader.addStatic(dccCtx.CONTEXT_URL_V1, dccCtx.CONTEXT_V1);