@veramo/credential-ld 4.2.1-unstable.9 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build/action-handler.d.ts +3 -389
  2. package/build/action-handler.d.ts.map +1 -1
  3. package/build/action-handler.js +136 -118
  4. package/build/action-handler.js.map +1 -1
  5. package/build/index.d.ts +16 -8
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +36 -8
  8. package/build/index.js.map +1 -1
  9. package/build/ld-context-loader.d.ts +1 -1
  10. package/build/ld-context-loader.d.ts.map +1 -1
  11. package/build/ld-context-loader.js +20 -6
  12. package/build/ld-context-loader.js.map +1 -1
  13. package/build/ld-credential-module.d.ts +3 -3
  14. package/build/ld-credential-module.d.ts.map +1 -1
  15. package/build/ld-credential-module.js +85 -72
  16. package/build/ld-credential-module.js.map +1 -1
  17. package/build/ld-default-contexts.d.ts +1 -315
  18. package/build/ld-default-contexts.d.ts.map +1 -1
  19. package/build/ld-default-contexts.js +17 -28
  20. package/build/ld-default-contexts.js.map +1 -1
  21. package/build/ld-suite-loader.d.ts +1 -1
  22. package/build/ld-suite-loader.d.ts.map +1 -1
  23. package/build/ld-suite-loader.js +9 -4
  24. package/build/ld-suite-loader.js.map +1 -1
  25. package/build/ld-suites.js +7 -2
  26. package/build/ld-suites.js.map +1 -1
  27. package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts +1 -1
  28. package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts.map +1 -1
  29. package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +52 -16
  30. package/build/suites/EcdsaSecp256k1RecoverySignature2020.js.map +1 -1
  31. package/build/suites/Ed25519Signature2018.d.ts +1 -1
  32. package/build/suites/Ed25519Signature2018.d.ts.map +1 -1
  33. package/build/suites/Ed25519Signature2018.js +48 -12
  34. package/build/suites/Ed25519Signature2018.js.map +1 -1
  35. package/build/suites/Ed25519Signature2020.d.ts +1 -1
  36. package/build/suites/Ed25519Signature2020.d.ts.map +1 -1
  37. package/build/suites/Ed25519Signature2020.js +52 -13
  38. package/build/suites/Ed25519Signature2020.js.map +1 -1
  39. package/build/suites/JsonWebSignature2020.d.ts +1 -1
  40. package/build/suites/JsonWebSignature2020.d.ts.map +1 -1
  41. package/build/suites/JsonWebSignature2020.js +82 -44
  42. package/build/suites/JsonWebSignature2020.js.map +1 -1
  43. package/build/tsdoc-metadata.json +1 -1
  44. package/build/types.js +2 -1
  45. package/package.json +9 -18
  46. package/{src/plugin.schema.json → plugin.schema.json} +0 -0
  47. package/src/__tests__/context.loader.test.ts +3 -3
  48. package/src/__tests__/issue-verify-flow.test.ts +5 -6
  49. package/src/action-handler.ts +7 -8
  50. package/src/index.ts +17 -8
  51. package/src/ld-context-loader.ts +1 -1
  52. package/src/ld-credential-module.ts +4 -5
  53. package/src/ld-default-contexts.ts +14 -27
  54. package/src/ld-suite-loader.ts +1 -1
  55. package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +4 -4
  56. package/src/suites/Ed25519Signature2018.ts +1 -1
  57. package/src/suites/Ed25519Signature2020.ts +1 -1
  58. package/src/suites/JsonWebSignature2020.ts +1 -1
  59. package/build/plugin.schema.json +0 -430
@@ -1,29 +1,57 @@
1
- import fetch from 'cross-fetch';
2
- import Debug from 'debug';
3
- import jsonldSignatures from '@digitalcredentials/jsonld-signatures';
4
- const { extendContextLoader } = jsonldSignatures;
5
- import * as vc from '@digitalcredentials/vc';
6
- const debug = Debug('veramo:w3c:ld-credential-module');
7
- export class LdCredentialModule {
8
- /**
9
- * TODO: General Implementation Notes
10
- * - (SOLVED) EcdsaSecp256k1Signature2019 (Signature) and EcdsaSecp256k1VerificationKey2019 (Key)
11
- * are not useable right now, since they are not able to work with blockChainId and ECRecover.
12
- * - DID Fragment Resolution.
13
- * - Key Manager and Verification Methods: Veramo currently implements no link between those.
14
- */
15
- ldContextLoader;
16
- ldSuiteLoader;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.LdCredentialModule = void 0;
39
+ const cross_fetch_1 = __importDefault(require("cross-fetch"));
40
+ const debug_1 = __importDefault(require("debug"));
41
+ const jsonld_signatures_1 = require("@digitalcredentials/jsonld-signatures");
42
+ const vc = __importStar(require("@digitalcredentials/vc"));
43
+ const debug = (0, debug_1.default)('veramo:w3c:ld-credential-module');
44
+ class LdCredentialModule {
17
45
  constructor(options) {
18
46
  this.ldContextLoader = options.ldContextLoader;
19
47
  this.ldSuiteLoader = options.ldSuiteLoader;
20
48
  }
21
49
  getDocumentLoader(context, attemptToFetchContexts = false) {
22
- return extendContextLoader(async (url) => {
50
+ return (0, jsonld_signatures_1.extendContextLoader)((url) => __awaiter(this, void 0, void 0, function* () {
23
51
  // console.log(`resolving context for: ${url}`)
24
52
  // did resolution
25
53
  if (url.toLowerCase().startsWith('did:')) {
26
- const resolutionResult = await context.agent.resolveDid({ didUrl: url });
54
+ const resolutionResult = yield context.agent.resolveDid({ didUrl: url });
27
55
  const didDoc = resolutionResult.didDocument;
28
56
  if (!didDoc)
29
57
  return;
@@ -39,7 +67,7 @@ export class LdCredentialModule {
39
67
  };
40
68
  }
41
69
  if (this.ldContextLoader.has(url)) {
42
- const contextDoc = await this.ldContextLoader.get(url);
70
+ const contextDoc = yield this.ldContextLoader.get(url);
43
71
  return {
44
72
  contextUrl: null,
45
73
  documentUrl: url,
@@ -51,9 +79,9 @@ export class LdCredentialModule {
51
79
  // attempt to fetch the remote context!!!! MEGA FAIL for JSON-LD.
52
80
  debug('WARNING: attempting to fetch the doc directly for ', url);
53
81
  try {
54
- const response = await fetch(url);
82
+ const response = yield (0, cross_fetch_1.default)(url);
55
83
  if (response.status === 200) {
56
- const document = await response.json();
84
+ const document = yield response.json();
57
85
  return {
58
86
  contextUrl: null,
59
87
  documentUrl: url,
@@ -68,65 +96,50 @@ export class LdCredentialModule {
68
96
  }
69
97
  debug(`WARNING: Possible unknown context/identifier for ${url} \n falling back to default documentLoader`);
70
98
  return vc.defaultDocumentLoader(url);
71
- });
99
+ }));
72
100
  }
73
- async issueLDVerifiableCredential(credential, issuerDid, key, verificationMethodId, options, context) {
74
- const suite = this.ldSuiteLoader.getSignatureSuiteForKeyType(key.type, key.meta?.verificationMethod?.type ?? '');
75
- const documentLoader = this.getDocumentLoader(context, options.fetchRemoteContexts);
76
- // some suites can modify the incoming credential (e.g. add required contexts)
77
- suite.preSigningCredModification(credential);
78
- return await vc.issue({
79
- ...options,
80
- credential,
81
- suite: await suite.getSuiteForSigning(key, issuerDid, verificationMethodId, context),
82
- documentLoader,
83
- compactProof: false,
101
+ issueLDVerifiableCredential(credential, issuerDid, key, verificationMethodId, options, context) {
102
+ var _a, _b, _c;
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const suite = this.ldSuiteLoader.getSignatureSuiteForKeyType(key.type, (_c = (_b = (_a = key.meta) === null || _a === void 0 ? void 0 : _a.verificationMethod) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : '');
105
+ const documentLoader = this.getDocumentLoader(context, options.fetchRemoteContexts);
106
+ // some suites can modify the incoming credential (e.g. add required contexts)
107
+ suite.preSigningCredModification(credential);
108
+ return yield vc.issue(Object.assign(Object.assign({}, options), { credential, suite: yield suite.getSuiteForSigning(key, issuerDid, verificationMethodId, context), documentLoader, compactProof: false }));
84
109
  });
85
110
  }
86
- async signLDVerifiablePresentation(presentation, holderDid, key, verificationMethodId, challenge, domain, options, context) {
87
- const suite = this.ldSuiteLoader.getSignatureSuiteForKeyType(key.type, key.meta?.verificationMethod?.type ?? '');
88
- const documentLoader = this.getDocumentLoader(context, options.fetchRemoteContexts);
89
- suite.preSigningPresModification(presentation);
90
- return await vc.signPresentation({
91
- ...options,
92
- presentation,
93
- suite: await suite.getSuiteForSigning(key, holderDid, verificationMethodId, context),
94
- challenge,
95
- domain,
96
- documentLoader,
97
- compactProof: false,
111
+ signLDVerifiablePresentation(presentation, holderDid, key, verificationMethodId, challenge, domain, options, context) {
112
+ var _a, _b, _c;
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const suite = this.ldSuiteLoader.getSignatureSuiteForKeyType(key.type, (_c = (_b = (_a = key.meta) === null || _a === void 0 ? void 0 : _a.verificationMethod) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : '');
115
+ const documentLoader = this.getDocumentLoader(context, options.fetchRemoteContexts);
116
+ suite.preSigningPresModification(presentation);
117
+ return yield vc.signPresentation(Object.assign(Object.assign({}, options), { presentation, suite: yield suite.getSuiteForSigning(key, holderDid, verificationMethodId, context), challenge,
118
+ domain,
119
+ documentLoader, compactProof: false }));
98
120
  });
99
121
  }
100
- async verifyCredential(credential, fetchRemoteContexts = false, options, context) {
101
- const result = await vc.verifyCredential({
102
- ...options,
103
- credential,
104
- suite: this.ldSuiteLoader.getAllSignatureSuites().map((x) => x.getSuiteForVerification()),
105
- documentLoader: this.getDocumentLoader(context, fetchRemoteContexts),
106
- compactProof: false,
107
- checkStatus: async () => Promise.resolve({ verified: true }), // Fake method
122
+ verifyCredential(credential, fetchRemoteContexts = false, options, context) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ const result = yield vc.verifyCredential(Object.assign(Object.assign({}, options), { credential, suite: this.ldSuiteLoader.getAllSignatureSuites().map((x) => x.getSuiteForVerification()), documentLoader: this.getDocumentLoader(context, fetchRemoteContexts), compactProof: false, checkStatus: () => __awaiter(this, void 0, void 0, function* () { return Promise.resolve({ verified: true }); }) }));
125
+ if (!result.verified) {
126
+ // result can include raw Error
127
+ debug(`Error verifying LD Credential: ${JSON.stringify(result, null, 2)}`);
128
+ }
129
+ return result;
108
130
  });
109
- if (!result.verified) {
110
- // result can include raw Error
111
- debug(`Error verifying LD Credential: ${JSON.stringify(result, null, 2)}`);
112
- }
113
- return result;
114
131
  }
115
- async verifyPresentation(presentation, challenge, domain, fetchRemoteContexts = false, options, context) {
116
- const result = await vc.verify({
117
- ...options,
118
- presentation,
119
- suite: this.ldSuiteLoader.getAllSignatureSuites().map((x) => x.getSuiteForVerification()),
120
- documentLoader: this.getDocumentLoader(context, fetchRemoteContexts),
121
- challenge,
122
- domain,
123
- compactProof: false,
132
+ verifyPresentation(presentation, challenge, domain, fetchRemoteContexts = false, options, context) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const result = yield vc.verify(Object.assign(Object.assign({}, options), { presentation, suite: this.ldSuiteLoader.getAllSignatureSuites().map((x) => x.getSuiteForVerification()), documentLoader: this.getDocumentLoader(context, fetchRemoteContexts), challenge,
135
+ domain, compactProof: false }));
136
+ if (!result.verified) {
137
+ // result can include raw Error
138
+ debug(`Error verifying LD Presentation: ${JSON.stringify(result, null, 2)}`);
139
+ }
140
+ return result;
124
141
  });
125
- if (!result.verified) {
126
- // result can include raw Error
127
- debug(`Error verifying LD Presentation: ${JSON.stringify(result, null, 2)}`);
128
- }
129
- return result;
130
142
  }
131
143
  }
144
+ exports.LdCredentialModule = LdCredentialModule;
132
145
  //# sourceMappingURL=ld-credential-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ld-credential-module.js","sourceRoot":"","sources":["../src/ld-credential-module.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,gBAAgB,MAAM,uCAAuC,CAAA;AACpE,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAK5C,MAAM,KAAK,GAAG,KAAK,CAAC,iCAAiC,CAAC,CAAA;AAEtD,MAAM,OAAO,kBAAkB;IAC7B;;;;;;OAMG;IAEK,eAAe,CAAiB;IACxC,aAAa,CAAe;IAE5B,YAAY,OAA2E;QACrF,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;QAC9C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;IAC5C,CAAC;IAED,iBAAiB,CAAC,OAAiC,EAAE,yBAAkC,KAAK;QAC1F,OAAO,mBAAmB,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;YAC/C,+CAA+C;YAE/C,iBAAiB;YACjB,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC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AC,CAAC,uBAAuB,EAAE,CAAC,EACzF,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EACpE,SAAS;gBACT,MAAM,EACN,YAAY,EAAE,KAAK,IACnB,CAAA;YAEF,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;gBACpB,+BAA+B;gBAC/B,KAAK,CAAC,oCAAoC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAA;aAC7E;YACD,OAAO,MAAM,CAAA;QACf,CAAC;KAAA;CACF;AA5KD,gDA4KC"}
@@ -6,319 +6,5 @@
6
6
  *
7
7
  * @beta This API may change without a BREAKING CHANGE notice.
8
8
  */
9
- export declare const LdDefaultContexts: Map<string, {
10
- "@context": {
11
- "@version": number;
12
- "@protected": boolean;
13
- id: string;
14
- type: string;
15
- VerifiableCredential: {
16
- "@id": string;
17
- "@context": {
18
- "@version": number;
19
- "@protected": boolean;
20
- id: string;
21
- type: string;
22
- cred: string;
23
- sec: string;
24
- xsd: string;
25
- credentialSchema: {
26
- "@id": string;
27
- "@type": string;
28
- "@context": {
29
- "@version": number;
30
- "@protected": boolean;
31
- id: string;
32
- type: string;
33
- cred: string;
34
- JsonSchemaValidator2018: string;
35
- };
36
- };
37
- credentialStatus: {
38
- "@id": string;
39
- "@type": string;
40
- };
41
- credentialSubject: {
42
- "@id": string;
43
- "@type": string;
44
- };
45
- evidence: {
46
- "@id": string;
47
- "@type": string;
48
- };
49
- expirationDate: {
50
- "@id": string;
51
- "@type": string;
52
- };
53
- holder: {
54
- "@id": string;
55
- "@type": string;
56
- };
57
- issued: {
58
- "@id": string;
59
- "@type": string;
60
- };
61
- issuer: {
62
- "@id": string;
63
- "@type": string;
64
- };
65
- issuanceDate: {
66
- "@id": string;
67
- "@type": string;
68
- };
69
- proof: {
70
- "@id": string;
71
- "@type": string;
72
- "@container": string;
73
- };
74
- refreshService: {
75
- "@id": string;
76
- "@type": string;
77
- "@context": {
78
- "@version": number;
79
- "@protected": boolean;
80
- id: string;
81
- type: string;
82
- cred: string;
83
- ManualRefreshService2018: string;
84
- };
85
- };
86
- termsOfUse: {
87
- "@id": string;
88
- "@type": string;
89
- };
90
- validFrom: {
91
- "@id": string;
92
- "@type": string;
93
- };
94
- validUntil: {
95
- "@id": string;
96
- "@type": string;
97
- };
98
- };
99
- };
100
- VerifiablePresentation: {
101
- "@id": string;
102
- "@context": {
103
- "@version": number;
104
- "@protected": boolean;
105
- id: string;
106
- type: string;
107
- cred: string;
108
- sec: string;
109
- holder: {
110
- "@id": string;
111
- "@type": string;
112
- };
113
- proof: {
114
- "@id": string;
115
- "@type": string;
116
- "@container": string;
117
- };
118
- verifiableCredential: {
119
- "@id": string;
120
- "@type": string;
121
- "@container": string;
122
- };
123
- };
124
- };
125
- EcdsaSecp256k1Signature2019: {
126
- "@id": string;
127
- "@context": {
128
- "@version": number;
129
- "@protected": boolean;
130
- id: string;
131
- type: string;
132
- sec: string;
133
- xsd: string;
134
- challenge: string;
135
- created: {
136
- "@id": string;
137
- "@type": string;
138
- };
139
- domain: string;
140
- expires: {
141
- "@id": string;
142
- "@type": string;
143
- };
144
- jws: string;
145
- nonce: string;
146
- proofPurpose: {
147
- "@id": string;
148
- "@type": string;
149
- "@context": {
150
- "@version": number;
151
- "@protected": boolean;
152
- id: string;
153
- type: string;
154
- sec: string;
155
- assertionMethod: {
156
- "@id": string;
157
- "@type": string;
158
- "@container": string;
159
- };
160
- authentication: {
161
- "@id": string;
162
- "@type": string;
163
- "@container": string;
164
- };
165
- };
166
- };
167
- proofValue: string;
168
- verificationMethod: {
169
- "@id": string;
170
- "@type": string;
171
- };
172
- };
173
- };
174
- EcdsaSecp256r1Signature2019: {
175
- "@id": string;
176
- "@context": {
177
- "@version": number;
178
- "@protected": boolean;
179
- id: string;
180
- type: string;
181
- sec: string;
182
- xsd: string;
183
- challenge: string;
184
- created: {
185
- "@id": string;
186
- "@type": string;
187
- };
188
- domain: string;
189
- expires: {
190
- "@id": string;
191
- "@type": string;
192
- };
193
- jws: string;
194
- nonce: string;
195
- proofPurpose: {
196
- "@id": string;
197
- "@type": string;
198
- "@context": {
199
- "@version": number;
200
- "@protected": boolean;
201
- id: string;
202
- type: string;
203
- sec: string;
204
- assertionMethod: {
205
- "@id": string;
206
- "@type": string;
207
- "@container": string;
208
- };
209
- authentication: {
210
- "@id": string;
211
- "@type": string;
212
- "@container": string;
213
- };
214
- };
215
- };
216
- proofValue: string;
217
- verificationMethod: {
218
- "@id": string;
219
- "@type": string;
220
- };
221
- };
222
- };
223
- Ed25519Signature2018: {
224
- "@id": string;
225
- "@context": {
226
- "@version": number;
227
- "@protected": boolean;
228
- id: string;
229
- type: string;
230
- sec: string;
231
- xsd: string;
232
- challenge: string;
233
- created: {
234
- "@id": string;
235
- "@type": string;
236
- };
237
- domain: string;
238
- expires: {
239
- "@id": string;
240
- "@type": string;
241
- };
242
- jws: string;
243
- nonce: string;
244
- proofPurpose: {
245
- "@id": string;
246
- "@type": string;
247
- "@context": {
248
- "@version": number;
249
- "@protected": boolean;
250
- id: string;
251
- type: string;
252
- sec: string;
253
- assertionMethod: {
254
- "@id": string;
255
- "@type": string;
256
- "@container": string;
257
- };
258
- authentication: {
259
- "@id": string;
260
- "@type": string;
261
- "@container": string;
262
- };
263
- };
264
- };
265
- proofValue: string;
266
- verificationMethod: {
267
- "@id": string;
268
- "@type": string;
269
- };
270
- };
271
- };
272
- RsaSignature2018: {
273
- "@id": string;
274
- "@context": {
275
- "@version": number;
276
- "@protected": boolean;
277
- challenge: string;
278
- created: {
279
- "@id": string;
280
- "@type": string;
281
- };
282
- domain: string;
283
- expires: {
284
- "@id": string;
285
- "@type": string;
286
- };
287
- jws: string;
288
- nonce: string;
289
- proofPurpose: {
290
- "@id": string;
291
- "@type": string;
292
- "@context": {
293
- "@version": number;
294
- "@protected": boolean;
295
- id: string;
296
- type: string;
297
- sec: string;
298
- assertionMethod: {
299
- "@id": string;
300
- "@type": string;
301
- "@container": string;
302
- };
303
- authentication: {
304
- "@id": string;
305
- "@type": string;
306
- "@container": string;
307
- };
308
- };
309
- };
310
- proofValue: string;
311
- verificationMethod: {
312
- "@id": string;
313
- "@type": string;
314
- };
315
- };
316
- };
317
- proof: {
318
- "@id": string;
319
- "@type": string;
320
- "@container": string;
321
- };
322
- };
323
- }>;
9
+ export declare const LdDefaultContexts: Map<string, any>;
324
10
  //# sourceMappingURL=ld-default-contexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB5B,CAAA"}
1
+ {"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,kBAoB5B,CAAA"}
@@ -1,16 +1,6 @@
1
- import contextCredentialV1 from "./contexts/www.w3.org_2018_credentials_v1.json" assert { type: 'json' };
2
- import contextDidV1 from "./contexts/www.w3.org_ns_did_v1.json" assert { type: 'json' };
3
- import contextSecurityV1 from "./contexts/w3id.org_security_v1.json" assert { type: 'json' };
4
- import contextSecurityV2 from "./contexts/w3id.org_security_v2.json" assert { type: 'json' };
5
- import contextSecurityV3 from "./contexts/w3id.org_security_v3-unstable.json" assert { type: 'json' };
6
- import contextSuitesEd25519 from "./contexts/w3id.org_security_suites_ed25519-2018_v1.json" assert { type: 'json' };
7
- import contextSuitesX25519 from "./contexts/w3id.org_security_suites_x25519-2019_v1.json" assert { type: 'json' };
8
- import contextProfile from "./contexts/veramo.io_contexts_profile_v1.json" assert { type: 'json' };
9
- import contextLdsEcdsaSecpRecovery2020_0 from "./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json" assert { type: 'json' };
10
- import contextLdsEcdsaSecpRecovery2020_2 from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' };
11
- import contextSuitesSecp from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' };
12
- import contextSuitesEd25519_2020 from './contexts/ed25519-signature-2020-v1.json' assert { type: 'json' };
13
- import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' assert { type: 'json' };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LdDefaultContexts = void 0;
14
4
  /**
15
5
  * Provides a hardcoded map of common Linked Data `@context` definitions.
16
6
  *
@@ -19,25 +9,24 @@ import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' a
19
9
  *
20
10
  * @beta This API may change without a BREAKING CHANGE notice.
21
11
  */
22
- // @ts-ignore
23
- export const LdDefaultContexts = new Map([
24
- ['https://www.w3.org/2018/credentials/v1', contextCredentialV1],
25
- ['https://www.w3.org/ns/did/v1', contextDidV1],
26
- ['https://w3id.org/security/v1', contextSecurityV1],
27
- ['https://w3id.org/security/v2', contextSecurityV2],
28
- ['https://w3id.org/security/v3-unstable', contextSecurityV3],
29
- ['https://w3id.org/security/suites/ed25519-2018/v1', contextSuitesEd25519],
30
- ['https://w3id.org/security/suites/x25519-2019/v1', contextSuitesX25519],
31
- ['https://w3id.org/security/suites/ed25519-2020/v1', contextSuitesEd25519_2020],
32
- ['https://w3id.org/security/suites/jws-2020/v1', contextSuitesJws_2020],
12
+ exports.LdDefaultContexts = new Map([
13
+ ['https://www.w3.org/2018/credentials/v1', require('./contexts/www.w3.org_2018_credentials_v1.json')],
14
+ ['https://www.w3.org/ns/did/v1', require('./contexts/www.w3.org_ns_did_v1.json')],
15
+ ['https://w3id.org/security/v1', require('./contexts/w3id.org_security_v1.json')],
16
+ ['https://w3id.org/security/v2', require('./contexts/w3id.org_security_v2.json')],
17
+ ['https://w3id.org/security/v3-unstable', require('./contexts/w3id.org_security_v3-unstable.json')],
18
+ ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/w3id.org_security_suites_ed25519-2018_v1.json')],
19
+ ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/w3id.org_security_suites_x25519-2019_v1.json')],
20
+ ['https://w3id.org/security/suites/ed25519-2020/v1', require('./contexts/ed25519-signature-2020-v1.json')],
21
+ ['https://w3id.org/security/suites/jws-2020/v1', require('./contexts/json-web-signature-2020-v1.json')],
33
22
  // ['https://w3id.org/did/v0.11', require('./contexts/did_v0.11.json')],
34
23
  // ['https://veramo.io/contexts/socialmedia/v1', require('./contexts/socialmedia-v1.json')],
35
24
  // ['https://veramo.io/contexts/kyc/v1', require('./contexts/kyc-v1.json')],
36
- ['https://veramo.io/contexts/profile/v1', contextProfile],
25
+ ['https://veramo.io/contexts/profile/v1', require('./contexts/veramo.io_contexts_profile_v1.json')],
37
26
  // ['https://ns.did.ai/transmute/v1', require('./contexts/transmute_v1.json')],
38
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', contextLdsEcdsaSecpRecovery2020_0],
39
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', contextLdsEcdsaSecpRecovery2020_2],
40
- ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', contextSuitesSecp]
27
+ ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', require('./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json')],
28
+ ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
29
+ ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', require('./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json')],
41
30
  // ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/ed25519-signature-2018-v1.json')],
42
31
  // ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/X25519KeyAgreementKey2019.json')],
43
32
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"ld-default-contexts.js","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,gDAAgD,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,OAAO,YAAY,MAAM,sCAAsC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,OAAO,iBAAiB,MAAM,sCAAsC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5F,OAAO,iBAAiB,MAAM,sCAAsC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5F,OAAO,iBAAiB,MAAM,+CAA+C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACrG,OAAO,oBAAoB,MAAM,0DAA0D,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACnH,OAAO,mBAAmB,MAAM,yDAAyD,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACjH,OAAO,cAAc,MAAM,+CAA+C,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAClG,OAAO,iCAAiC,MAAM,sDAAsD,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5H,OAAO,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AC;IACrG,CAAC,8BAA8B,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACjF,CAAC,8BAA8B,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACjF,CAAC,8BAA8B,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACjF,CAAC,uCAAuC,EAAE,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACnG,CAAC,kDAAkD,EAAE,OAAO,CAAC,0DAA0D,CAAC,CAAC;IACzH,CAAC,iDAAiD,EAAE,OAAO,CAAC,yDAAyD,CAAC,CAAC;IACvH,CAAC,kDAAkD,EAAE,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAC1G,CAAC,8CAA8C,EAAE,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACvG,wEAAwE;IACxE,4FAA4F;IAC5F,4EAA4E;IAC5E,CAAC,uCAAuC,EAAE,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACnG,+EAA+E;IAC/E,CAAC,6GAA6G,EAAE,OAAO,CAAC,sDAAsD,CAAC,CAAC;IAChL,CAAC,6GAA6G,EAAE,OAAO,CAAC,oEAAoE,CAAC,CAAC;IAC9L,CAAC,4DAA4D,EAAE,OAAO,CAAC,oEAAoE,CAAC,CAAC;IAC7I,8GAA8G;IAC9G,6GAA6G;CAC9G,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { VeramoLdSignature } from './ld-suites.js';
1
+ import { VeramoLdSignature } from './ld-suites';
2
2
  import { TKeyType } from '@veramo/core';
3
3
  /**
4
4
  * Initializes a list of Veramo-wrapped LD Signature suites and exposes those to the Agent Module
@@ -1 +1 @@
1
- {"version":3,"file":"ld-suite-loader.d.ts","sourceRoot":"","sources":["../src/ld-suite-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,qBAAa,aAAa;gBACZ,OAAO,EAAE;QAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAA;KAAE;IAOhE,OAAO,CAAC,YAAY,CAAwD;IAE5E,2BAA2B,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM;IAOpE,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,yBAAyB;CAG1B"}
1
+ {"version":3,"file":"ld-suite-loader.d.ts","sourceRoot":"","sources":["../src/ld-suite-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,qBAAa,aAAa;gBACZ,OAAO,EAAE;QAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAA;KAAE;IAOhE,OAAO,CAAC,YAAY,CAAwD;IAE5E,2BAA2B,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM;IAOpE,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,yBAAyB;CAG1B"}