Skip to content

Commit

Permalink
adds vc 2.0 context to document loader
Browse files Browse the repository at this point in the history
  • Loading branch information
kezike committed Mar 5, 2024
1 parent 6be54f0 commit 89e69df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/documentLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 89e69df

Please sign in to comment.