@veramo/credential-ld 4.3.1-next.7 → 4.3.1-unstable.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.
- package/build/action-handler.d.ts +3 -389
- package/build/action-handler.d.ts.map +1 -1
- package/build/action-handler.js +136 -118
- package/build/action-handler.js.map +1 -1
- package/build/index.d.ts +16 -8
- package/build/index.d.ts.map +1 -1
- package/build/index.js +36 -8
- package/build/index.js.map +1 -1
- package/build/ld-context-loader.d.ts +1 -1
- package/build/ld-context-loader.d.ts.map +1 -1
- package/build/ld-context-loader.js +20 -6
- package/build/ld-context-loader.js.map +1 -1
- package/build/ld-credential-module.d.ts +3 -3
- package/build/ld-credential-module.d.ts.map +1 -1
- package/build/ld-credential-module.js +85 -72
- package/build/ld-credential-module.js.map +1 -1
- package/build/ld-default-contexts.d.ts +1 -315
- package/build/ld-default-contexts.d.ts.map +1 -1
- package/build/ld-default-contexts.js +17 -28
- package/build/ld-default-contexts.js.map +1 -1
- package/build/ld-suite-loader.d.ts +1 -1
- package/build/ld-suite-loader.d.ts.map +1 -1
- package/build/ld-suite-loader.js +9 -4
- package/build/ld-suite-loader.js.map +1 -1
- package/build/ld-suites.js +7 -2
- package/build/ld-suites.js.map +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts.map +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +52 -16
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js.map +1 -1
- package/build/suites/Ed25519Signature2018.d.ts +1 -1
- package/build/suites/Ed25519Signature2018.d.ts.map +1 -1
- package/build/suites/Ed25519Signature2018.js +48 -12
- package/build/suites/Ed25519Signature2018.js.map +1 -1
- package/build/suites/Ed25519Signature2020.d.ts +1 -1
- package/build/suites/Ed25519Signature2020.d.ts.map +1 -1
- package/build/suites/Ed25519Signature2020.js +52 -13
- package/build/suites/Ed25519Signature2020.js.map +1 -1
- package/build/suites/JsonWebSignature2020.d.ts +1 -1
- package/build/suites/JsonWebSignature2020.d.ts.map +1 -1
- package/build/suites/JsonWebSignature2020.js +82 -44
- package/build/suites/JsonWebSignature2020.js.map +1 -1
- package/build/tsdoc-metadata.json +1 -1
- package/build/types.js +2 -1
- package/package.json +8 -17
- package/src/__tests__/context.loader.test.ts +3 -3
- package/src/__tests__/issue-verify-flow.test.ts +5 -6
- package/src/action-handler.ts +7 -8
- package/src/index.ts +17 -8
- package/src/ld-context-loader.ts +1 -1
- package/src/ld-credential-module.ts +4 -5
- package/src/ld-default-contexts.ts +14 -27
- package/src/ld-suite-loader.ts +1 -1
- package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +4 -4
- package/src/suites/Ed25519Signature2018.ts +1 -1
- package/src/suites/Ed25519Signature2020.ts +1 -1
- package/src/suites/JsonWebSignature2020.ts +1 -1
- package/build/plugin.schema.json +0 -430
- /package/{src/plugin.schema.json → plugin.schema.json} +0 -0
package/build/action-handler.js
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CredentialIssuerLD = void 0;
|
|
16
|
+
const _1 = require("./");
|
|
17
|
+
const debug_1 = __importDefault(require("debug"));
|
|
18
|
+
const ld_context_loader_1 = require("./ld-context-loader");
|
|
19
|
+
const utils_1 = require("@veramo/utils");
|
|
20
|
+
const ld_credential_module_1 = require("./ld-credential-module");
|
|
21
|
+
const ld_suite_loader_1 = require("./ld-suite-loader");
|
|
22
|
+
const debug = (0, debug_1.default)('veramo:w3c:action-handler');
|
|
8
23
|
/**
|
|
9
24
|
* A Veramo plugin that implements the {@link ICredentialIssuerLD} methods.
|
|
10
25
|
*
|
|
11
26
|
* @public
|
|
12
27
|
*/
|
|
13
|
-
|
|
14
|
-
methods;
|
|
15
|
-
schema = schema.ICredentialIssuerLD;
|
|
16
|
-
ldCredentialModule;
|
|
28
|
+
class CredentialIssuerLD {
|
|
17
29
|
constructor(options) {
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
this.schema = _1.schema.ICredentialIssuer;
|
|
31
|
+
this.ldCredentialModule = new ld_credential_module_1.LdCredentialModule({
|
|
32
|
+
ldContextLoader: new ld_context_loader_1.LdContextLoader({ contextsPaths: options.contextMaps }),
|
|
33
|
+
ldSuiteLoader: new ld_suite_loader_1.LdSuiteLoader({ veramoLdSignatures: options.suites }),
|
|
21
34
|
});
|
|
22
35
|
this.methods = {
|
|
23
36
|
createVerifiablePresentationLD: this.createVerifiablePresentationLD.bind(this),
|
|
@@ -27,123 +40,128 @@ export class CredentialIssuerLD {
|
|
|
27
40
|
};
|
|
28
41
|
}
|
|
29
42
|
/** {@inheritdoc ICredentialIssuerLD.createVerifiablePresentationLD} */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'@context': presentationContext,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
createVerifiablePresentationLD(args, context) {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const presentationContext = (0, utils_1.processEntryToArray)((_a = args === null || args === void 0 ? void 0 : args.presentation) === null || _a === void 0 ? void 0 : _a['@context'], utils_1.MANDATORY_CREDENTIAL_CONTEXT);
|
|
47
|
+
const presentationType = (0, utils_1.processEntryToArray)((_b = args === null || args === void 0 ? void 0 : args.presentation) === null || _b === void 0 ? void 0 : _b.type, 'VerifiablePresentation');
|
|
48
|
+
const presentation = Object.assign(Object.assign({}, args === null || args === void 0 ? void 0 : args.presentation), { '@context': presentationContext, type: presentationType });
|
|
49
|
+
if (!(0, utils_1.isDefined)(presentation.holder)) {
|
|
50
|
+
throw new Error('invalid_argument: args.presentation.holder must not be empty');
|
|
51
|
+
}
|
|
52
|
+
if (args.presentation.verifiableCredential) {
|
|
53
|
+
const credentials = args.presentation.verifiableCredential.map((cred) => {
|
|
54
|
+
if (typeof cred !== 'string' && cred.proof.jwt) {
|
|
55
|
+
return cred.proof.jwt;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return cred;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
presentation.verifiableCredential = credentials;
|
|
62
|
+
}
|
|
63
|
+
//issuanceDate must not be present for presentations because it is not defined in a @context
|
|
64
|
+
delete presentation.issuanceDate;
|
|
65
|
+
let identifier;
|
|
66
|
+
try {
|
|
67
|
+
identifier = yield context.agent.didManagerGet({ did: presentation.holder });
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
throw new Error('invalid_argument: args.presentation.holder must be a DID managed by this agent');
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
const { signingKey, verificationMethodId } = yield this.findSigningKeyWithId(context, identifier, args.keyRef);
|
|
74
|
+
let { now } = args;
|
|
75
|
+
if (typeof now === 'number') {
|
|
76
|
+
now = new Date(now * 1000);
|
|
45
77
|
}
|
|
46
|
-
|
|
47
|
-
|
|
78
|
+
return yield this.ldCredentialModule.signLDVerifiablePresentation(presentation, identifier.did, signingKey, verificationMethodId, args.challenge || '', args.domain || '', Object.assign(Object.assign({}, args), { now }), context);
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
debug(error);
|
|
82
|
+
return Promise.reject(error);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/** {@inheritdoc ICredentialIssuerLD.createVerifiableCredentialLD} */
|
|
87
|
+
createVerifiableCredentialLD(args, context) {
|
|
88
|
+
var _a, _b;
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const credentialContext = (0, utils_1.processEntryToArray)((_a = args === null || args === void 0 ? void 0 : args.credential) === null || _a === void 0 ? void 0 : _a['@context'], utils_1.MANDATORY_CREDENTIAL_CONTEXT);
|
|
91
|
+
const credentialType = (0, utils_1.processEntryToArray)((_b = args === null || args === void 0 ? void 0 : args.credential) === null || _b === void 0 ? void 0 : _b.type, 'VerifiableCredential');
|
|
92
|
+
const credential = Object.assign(Object.assign({}, args === null || args === void 0 ? void 0 : args.credential), { '@context': credentialContext, type: credentialType });
|
|
93
|
+
const issuer = (0, utils_1.extractIssuer)(credential);
|
|
94
|
+
if (!issuer || typeof issuer === 'undefined') {
|
|
95
|
+
throw new Error('invalid_argument: args.credential.issuer must not be empty');
|
|
96
|
+
}
|
|
97
|
+
let identifier;
|
|
98
|
+
try {
|
|
99
|
+
identifier = yield context.agent.didManagerGet({ did: issuer });
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
throw new Error(`invalid_argument: args.credential.issuer must be a DID managed by this agent. ${e}`);
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
const { signingKey, verificationMethodId } = yield this.findSigningKeyWithId(context, identifier, args.keyRef);
|
|
106
|
+
let { now } = args;
|
|
107
|
+
if (typeof now === 'number') {
|
|
108
|
+
now = new Date(now * 1000);
|
|
48
109
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
try {
|
|
62
|
-
const { signingKey, verificationMethodId } = await this.findSigningKeyWithId(context, identifier, args.keyRef);
|
|
110
|
+
return yield this.ldCredentialModule.issueLDVerifiableCredential(credential, identifier.did, signingKey, verificationMethodId, Object.assign(Object.assign({}, args.options), { now }), context);
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
debug(error);
|
|
114
|
+
return Promise.reject(error);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/** {@inheritdoc ICredentialIssuerLD.verifyCredentialLD} */
|
|
119
|
+
verifyCredentialLD(args, context) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const credential = args.credential;
|
|
63
122
|
let { now } = args;
|
|
64
123
|
if (typeof now === 'number') {
|
|
65
124
|
now = new Date(now * 1000);
|
|
66
125
|
}
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
debug(error);
|
|
71
|
-
return Promise.reject(error);
|
|
72
|
-
}
|
|
126
|
+
return this.ldCredentialModule.verifyCredential(credential, args.fetchRemoteContexts || false, Object.assign(Object.assign({}, args.options), { now }), context);
|
|
127
|
+
});
|
|
73
128
|
}
|
|
74
|
-
/** {@inheritdoc ICredentialIssuerLD.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const credential = {
|
|
79
|
-
...args?.credential,
|
|
80
|
-
'@context': credentialContext,
|
|
81
|
-
type: credentialType,
|
|
82
|
-
};
|
|
83
|
-
const issuer = extractIssuer(credential);
|
|
84
|
-
if (!issuer || typeof issuer === 'undefined') {
|
|
85
|
-
throw new Error('invalid_argument: args.credential.issuer must not be empty');
|
|
86
|
-
}
|
|
87
|
-
let identifier;
|
|
88
|
-
try {
|
|
89
|
-
identifier = await context.agent.didManagerGet({ did: issuer });
|
|
90
|
-
}
|
|
91
|
-
catch (e) {
|
|
92
|
-
throw new Error(`invalid_argument: args.credential.issuer must be a DID managed by this agent. ${e}`);
|
|
93
|
-
}
|
|
94
|
-
try {
|
|
95
|
-
const { signingKey, verificationMethodId } = await this.findSigningKeyWithId(context, identifier, args.keyRef);
|
|
129
|
+
/** {@inheritdoc ICredentialIssuerLD.verifyPresentationLD} */
|
|
130
|
+
verifyPresentationLD(args, context) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const presentation = args.presentation;
|
|
96
133
|
let { now } = args;
|
|
97
134
|
if (typeof now === 'number') {
|
|
98
135
|
now = new Date(now * 1000);
|
|
99
136
|
}
|
|
100
|
-
return
|
|
101
|
-
}
|
|
102
|
-
catch (error) {
|
|
103
|
-
debug(error);
|
|
104
|
-
return Promise.reject(error);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
/** {@inheritdoc ICredentialIssuerLD.verifyCredentialLD} */
|
|
108
|
-
async verifyCredentialLD(args, context) {
|
|
109
|
-
const credential = args.credential;
|
|
110
|
-
let { now } = args;
|
|
111
|
-
if (typeof now === 'number') {
|
|
112
|
-
now = new Date(now * 1000);
|
|
113
|
-
}
|
|
114
|
-
return this.ldCredentialModule.verifyCredential(credential, args.fetchRemoteContexts || false, { ...args.options, now }, context);
|
|
115
|
-
}
|
|
116
|
-
/** {@inheritdoc ICredentialIssuerLD.verifyPresentationLD} */
|
|
117
|
-
async verifyPresentationLD(args, context) {
|
|
118
|
-
const presentation = args.presentation;
|
|
119
|
-
let { now } = args;
|
|
120
|
-
if (typeof now === 'number') {
|
|
121
|
-
now = new Date(now * 1000);
|
|
122
|
-
}
|
|
123
|
-
return this.ldCredentialModule.verifyPresentation(presentation, args.challenge, args.domain, args.fetchRemoteContexts || false, { ...args.options, now }, context);
|
|
137
|
+
return this.ldCredentialModule.verifyPresentation(presentation, args.challenge, args.domain, args.fetchRemoteContexts || false, Object.assign(Object.assign({}, args.options), { now }), context);
|
|
138
|
+
});
|
|
124
139
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
signingKey = extendedKeys.find((k) => k.kid === keyRef);
|
|
132
|
-
}
|
|
133
|
-
if (signingKey && !supportedTypes.includes(signingKey.meta.verificationMethod.type)) {
|
|
134
|
-
debug('WARNING: requested signing key DOES NOT correspond to a supported Signature suite type. Looking for the next best key.');
|
|
135
|
-
signingKey = undefined;
|
|
136
|
-
}
|
|
137
|
-
if (!signingKey) {
|
|
140
|
+
findSigningKeyWithId(context, identifier, keyRef) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const extendedKeys = yield (0, utils_1.mapIdentifierKeysToDoc)(identifier, 'assertionMethod', context);
|
|
143
|
+
let supportedTypes = this.ldCredentialModule.ldSuiteLoader.getAllSignatureSuiteTypes();
|
|
144
|
+
let signingKey;
|
|
145
|
+
let verificationMethodId;
|
|
138
146
|
if (keyRef) {
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
signingKey = extendedKeys.find((k) => k.kid === keyRef);
|
|
148
|
+
}
|
|
149
|
+
if (signingKey && !supportedTypes.includes(signingKey.meta.verificationMethod.type)) {
|
|
150
|
+
debug('WARNING: requested signing key DOES NOT correspond to a supported Signature suite type. Looking for the next best key.');
|
|
151
|
+
signingKey = undefined;
|
|
152
|
+
}
|
|
153
|
+
if (!signingKey) {
|
|
154
|
+
if (keyRef) {
|
|
155
|
+
debug('WARNING: no signing key was found that matches the reference provided. Searching for the first available signing key.');
|
|
156
|
+
}
|
|
157
|
+
signingKey = extendedKeys.find((k) => supportedTypes.includes(k.meta.verificationMethod.type));
|
|
158
|
+
}
|
|
159
|
+
if (!signingKey)
|
|
160
|
+
throw Error(`key_not_found: No suitable signing key found for ${identifier.did}`);
|
|
161
|
+
verificationMethodId = signingKey.meta.verificationMethod.id;
|
|
162
|
+
return { signingKey, verificationMethodId };
|
|
163
|
+
});
|
|
147
164
|
}
|
|
148
165
|
}
|
|
166
|
+
exports.CredentialIssuerLD = CredentialIssuerLD;
|
|
149
167
|
//# sourceMappingURL=action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-handler.js","sourceRoot":"","sources":["../src/action-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-handler.js","sourceRoot":"","sources":["../src/action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA,yBAA8C;AAC9C,kDAAyB;AACzB,2DAAqD;AACrD,yCASsB;AAEtB,iEAA2D;AAC3D,uDAAiD;AAWjD,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,2BAA2B,CAAC,CAAA;AAEhD;;;;GAIG;AACH,MAAa,kBAAkB;IAM7B,YAAY,OAA0F;QAJ7F,WAAM,GAAG,SAAM,CAAC,iBAAiB,CAAA;QAKxC,IAAI,CAAC,kBAAkB,GAAG,IAAI,yCAAkB,CAAC;YAC/C,eAAe,EAAE,IAAI,mCAAe,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;YAC5E,aAAa,EAAE,IAAI,+BAAa,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;SACzE,CAAC,CAAA;QAEF,IAAI,CAAC,OAAO,GAAG;YACb,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,IAAI,CAAC;YAC9E,4BAA4B,EAAE,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC;YAC1E,kBAAk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AY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAA;aACxD;YACD,IAAI,UAAU,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;gBACnF,KAAK,CACH,wHAAwH,CACzH,CAAA;gBACD,UAAU,GAAG,SAAS,CAAA;aACvB;YACD,IAAI,CAAC,UAAU,EAAE;gBACf,IAAI,MAAM,EAAE;oBACV,KAAK,CACH,uHAAuH,CACxH,CAAA;iBACF;gBACD,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAA;aAC/F;YAGD,IAAI,CAAC,UAAU;gBAAE,MAAM,KAAK,CAAC,oDAAoD,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;YAClG,oBAAoB,GAAG,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAA;YAC5D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAA;QAC7C,CAAC;KAAA;CACF;AAtND,gDAsNC"}
|
package/build/index.d.ts
CHANGED
|
@@ -10,12 +10,20 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @packageDocumentation
|
|
12
12
|
*/
|
|
13
|
-
export { CredentialIssuerLD } from './action-handler
|
|
14
|
-
export * from './types
|
|
15
|
-
export { LdDefaultContexts } from './ld-default-contexts
|
|
16
|
-
export { VeramoLdSignature } from './ld-suites
|
|
17
|
-
export * from './suites/EcdsaSecp256k1RecoverySignature2020
|
|
18
|
-
export * from './suites/Ed25519Signature2018
|
|
19
|
-
export * from './suites/Ed25519Signature2020
|
|
20
|
-
export * from './suites/JsonWebSignature2020
|
|
13
|
+
export { CredentialIssuerLD } from './action-handler';
|
|
14
|
+
export * from './types';
|
|
15
|
+
export { LdDefaultContexts } from './ld-default-contexts';
|
|
16
|
+
export { VeramoLdSignature } from './ld-suites';
|
|
17
|
+
export * from './suites/EcdsaSecp256k1RecoverySignature2020';
|
|
18
|
+
export * from './suites/Ed25519Signature2018';
|
|
19
|
+
export * from './suites/Ed25519Signature2020';
|
|
20
|
+
export * from './suites/JsonWebSignature2020';
|
|
21
|
+
/**
|
|
22
|
+
* The parameter and return types schemas for the {@link @veramo/credential-ld#CredentialIssuerLD | CredentialIssuerLD}
|
|
23
|
+
* plugin methods.
|
|
24
|
+
*
|
|
25
|
+
* @beta This API may change without a BREAKING CHANGE notice.
|
|
26
|
+
*/
|
|
27
|
+
declare const schema: any;
|
|
28
|
+
export { schema };
|
|
21
29
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,cAAc,8CAA8C,CAAA;AAC5D,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAE7C;;;;;GAKG;AACH,QAAA,MAAM,MAAM,KAAmC,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.schema = exports.VeramoLdSignature = exports.LdDefaultContexts = exports.CredentialIssuerLD = void 0;
|
|
1
18
|
/**
|
|
2
19
|
* Provides a {@link @veramo/credential-ld#CredentialIssuerLD | plugin} for the {@link @veramo/core#Agent} that
|
|
3
20
|
* implements
|
|
@@ -10,12 +27,23 @@
|
|
|
10
27
|
*
|
|
11
28
|
* @packageDocumentation
|
|
12
29
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
var action_handler_1 = require("./action-handler");
|
|
31
|
+
Object.defineProperty(exports, "CredentialIssuerLD", { enumerable: true, get: function () { return action_handler_1.CredentialIssuerLD; } });
|
|
32
|
+
__exportStar(require("./types"), exports);
|
|
33
|
+
var ld_default_contexts_1 = require("./ld-default-contexts");
|
|
34
|
+
Object.defineProperty(exports, "LdDefaultContexts", { enumerable: true, get: function () { return ld_default_contexts_1.LdDefaultContexts; } });
|
|
35
|
+
var ld_suites_1 = require("./ld-suites");
|
|
36
|
+
Object.defineProperty(exports, "VeramoLdSignature", { enumerable: true, get: function () { return ld_suites_1.VeramoLdSignature; } });
|
|
37
|
+
__exportStar(require("./suites/EcdsaSecp256k1RecoverySignature2020"), exports);
|
|
38
|
+
__exportStar(require("./suites/Ed25519Signature2018"), exports);
|
|
39
|
+
__exportStar(require("./suites/Ed25519Signature2020"), exports);
|
|
40
|
+
__exportStar(require("./suites/JsonWebSignature2020"), exports);
|
|
41
|
+
/**
|
|
42
|
+
* The parameter and return types schemas for the {@link @veramo/credential-ld#CredentialIssuerLD | CredentialIssuerLD}
|
|
43
|
+
* plugin methods.
|
|
44
|
+
*
|
|
45
|
+
* @beta This API may change without a BREAKING CHANGE notice.
|
|
46
|
+
*/
|
|
47
|
+
const schema = require('../plugin.schema.json');
|
|
48
|
+
exports.schema = schema;
|
|
21
49
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,mDAAqD;AAA5C,oHAAA,kBAAkB,OAAA;AAC3B,0CAAuB;AACvB,6DAAyD;AAAhD,wHAAA,iBAAiB,OAAA;AAC1B,yCAA+C;AAAtC,8GAAA,iBAAiB,OAAA;AAC1B,+EAA4D;AAC5D,gEAA6C;AAC7C,gEAA6C;AAC7C,gEAA6C;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;AACtC,wBAAM"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* the w3c credential module.
|
|
5
5
|
*/
|
|
6
6
|
import { OrPromise, RecordLike } from '@veramo/utils';
|
|
7
|
-
import { ContextDoc } from './types
|
|
7
|
+
import { ContextDoc } from './types';
|
|
8
8
|
export declare class LdContextLoader {
|
|
9
9
|
private readonly contexts;
|
|
10
10
|
constructor(options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-context-loader.d.ts","sourceRoot":"","sources":["../src/ld-context-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAc,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ld-context-loader.d.ts","sourceRoot":"","sources":["../src/ld-context-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAc,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuC;gBAEpD,OAAO,EAAE;QAAE,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAA;KAAE;IAW3E,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAG5C"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LdContextLoader = void 0;
|
|
1
13
|
/**
|
|
2
14
|
* The LdContextLoader is initialized with a List of Map<string, ContextDoc | Promise<ContextDoc>>
|
|
3
15
|
* that it unifies into a single Map to provide to the documentLoader within
|
|
4
16
|
* the w3c credential module.
|
|
5
17
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
contexts;
|
|
18
|
+
const utils_1 = require("@veramo/utils");
|
|
19
|
+
class LdContextLoader {
|
|
9
20
|
constructor(options) {
|
|
10
21
|
this.contexts = {};
|
|
11
22
|
Array.from(options.contextsPaths, (mapItem) => {
|
|
12
|
-
const map = isIterable(mapItem) ? mapItem : Object.entries(mapItem);
|
|
23
|
+
const map = (0, utils_1.isIterable)(mapItem) ? mapItem : Object.entries(mapItem);
|
|
13
24
|
// generate-plugin-schema is failing unless we use the cast to `any[]`
|
|
14
25
|
for (const [key, value] of map) {
|
|
15
26
|
this.contexts[key] = value;
|
|
@@ -19,8 +30,11 @@ export class LdContextLoader {
|
|
|
19
30
|
has(url) {
|
|
20
31
|
return this.contexts[url] !== null && typeof this.contexts[url] !== 'undefined';
|
|
21
32
|
}
|
|
22
|
-
|
|
23
|
-
return this
|
|
33
|
+
get(url) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
return this.contexts[url];
|
|
36
|
+
});
|
|
24
37
|
}
|
|
25
38
|
}
|
|
39
|
+
exports.LdContextLoader = LdContextLoader;
|
|
26
40
|
//# sourceMappingURL=ld-context-loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-context-loader.js","sourceRoot":"","sources":["../src/ld-context-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"ld-context-loader.js","sourceRoot":"","sources":["../src/ld-context-loader.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;GAIG;AACH,yCAAiE;AAGjE,MAAa,eAAe;IAG1B,YAAY,OAA+D;QACzE,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE;YAC5C,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;YACnE,sEAAsE;YACtE,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,GAAY,EAAE;gBACvC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;aAC3B;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CAAC,GAAW;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,WAAW,CAAA;IACjF,CAAC;IAEK,GAAG,CAAC,GAAW;;YACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;QAC3B,CAAC;KAAA;CACF;AArBD,0CAqBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CredentialPayload, IAgentContext, IKey, IResolver, PresentationPayload, VerifiableCredential, VerifiablePresentation } from '@veramo/core';
|
|
2
|
-
import { LdContextLoader } from './ld-context-loader
|
|
3
|
-
import { LdSuiteLoader } from './ld-suite-loader
|
|
4
|
-
import { RequiredAgentMethods } from './ld-suites
|
|
2
|
+
import { LdContextLoader } from './ld-context-loader';
|
|
3
|
+
import { LdSuiteLoader } from './ld-suite-loader';
|
|
4
|
+
import { RequiredAgentMethods } from './ld-suites';
|
|
5
5
|
export declare class LdCredentialModule {
|
|
6
6
|
/**
|
|
7
7
|
* TODO: General Implementation Notes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-credential-module.d.ts","sourceRoot":"","sources":["../src/ld-credential-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"ld-credential-module.d.ts","sourceRoot":"","sources":["../src/ld-credential-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,qBAAa,kBAAkB;IAC7B;;;;;;OAMG;IAEH,OAAO,CAAC,eAAe,CAAiB;IACxC,aAAa,EAAE,aAAa,CAAA;gBAEhB,OAAO,EAAE;QAAE,eAAe,EAAE,eAAe,CAAC;QAAC,aAAa,EAAE,aAAa,CAAA;KAAE;IAKvF,iBAAiB,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAE,OAAe;IA2DtF,2BAA2B,CAC/B,UAAU,EAAE,iBAAiB,EAC7B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,IAAI,EACT,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,aAAa,CAAC,oBAAoB,CAAC,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAgB1B,4BAA4B,CAChC,YAAY,EAAE,mBAAmB,EACjC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,IAAI,EACT,oBAAoB,EAAE,MAAM,EAC5B,SAAS,EAAE,MAAM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