Skip to content

Commit

Permalink
modify documentloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Jul 25, 2023
1 parent 8bd8fc8 commit ee9bb19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/src/credential/vc.d.ts.map

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

3 changes: 2 additions & 1 deletion build/src/credential/vc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const credential_1 = require("../../libs/generated/ssi/credential");
const crypto_1 = __importDefault(require("crypto"));
const v1_1 = __importDefault(require("../../libs/w3cache/v1"));
const ethereumeip712signature2021suite_1 = require("ethereumeip712signature2021suite");
const documentLoader = v1_1.default;
const jsonld_signatures_2 = require("jsonld-signatures");
const documentLoader = (0, jsonld_signatures_2.extendContextLoader)(v1_1.default);
class HypersignVerifiableCredential {
constructor(params = {}) {
this._checkIfAllRequiredPropsAreSent = (sentAttributes, requiredProps) => {
Expand Down
3 changes: 2 additions & 1 deletion src/credential/vc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import crypto from 'crypto';
import customLoader from '../../libs/w3cache/v1';
import { EthereumEip712Signature2021 } from 'ethereumeip712signature2021suite';
import { IClientSpec } from '../did/IDID';
import { extendContextLoader } from 'jsonld-signatures';

const documentLoader = customLoader;
const documentLoader = extendContextLoader(customLoader);

export default class HypersignVerifiableCredential implements ICredentialMethods, IVerifiableCredential {
public context: Array<string>;
Expand Down

0 comments on commit ee9bb19

Please sign in to comment.