@veramo/credential-ld 4.2.1-next.7 → 4.2.1-unstable.9
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 +389 -3
- package/build/action-handler.d.ts.map +1 -1
- package/build/action-handler.js +118 -136
- package/build/action-handler.js.map +1 -1
- package/build/index.d.ts +8 -16
- package/build/index.d.ts.map +1 -1
- package/build/index.js +8 -36
- 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 +6 -20
- 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 +72 -85
- package/build/ld-credential-module.js.map +1 -1
- package/build/ld-default-contexts.d.ts +315 -1
- package/build/ld-default-contexts.d.ts.map +1 -1
- package/build/ld-default-contexts.js +28 -17
- 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 +4 -9
- package/build/ld-suite-loader.js.map +1 -1
- package/build/ld-suites.js +2 -7
- package/build/ld-suites.js.map +1 -1
- package/build/plugin.schema.json +430 -0
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts.map +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +16 -52
- 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 +12 -48
- 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 +16 -54
- 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 +44 -82
- package/build/suites/JsonWebSignature2020.js.map +1 -1
- package/build/tsdoc-metadata.json +1 -1
- package/build/types.js +1 -2
- package/package.json +20 -9
- package/src/__tests__/context.loader.test.ts +3 -3
- package/src/__tests__/issue-verify-flow.test.ts +7 -5
- package/src/action-handler.ts +8 -7
- package/src/index.ts +8 -17
- package/src/ld-context-loader.ts +1 -1
- package/src/ld-credential-module.ts +5 -4
- package/src/ld-default-contexts.ts +27 -14
- package/src/ld-suite-loader.ts +1 -1
- package/src/module-types/jsonld/index.d.ts +0 -1
- package/{plugin.schema.json → src/plugin.schema.json} +0 -0
- package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +4 -4
- package/src/suites/Ed25519Signature2018.ts +1 -1
- package/src/suites/Ed25519Signature2020.ts +4 -3
- package/src/suites/JsonWebSignature2020.ts +1 -1
package/build/action-handler.js
CHANGED
|
@@ -1,36 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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');
|
|
1
|
+
import schema from './plugin.schema.json' assert { type: 'json' };
|
|
2
|
+
import Debug from 'debug';
|
|
3
|
+
import { LdContextLoader } from './ld-context-loader.js';
|
|
4
|
+
import { extractIssuer, isDefined, MANDATORY_CREDENTIAL_CONTEXT, mapIdentifierKeysToDoc, processEntryToArray, } from '@veramo/utils';
|
|
5
|
+
import { LdCredentialModule } from './ld-credential-module.js';
|
|
6
|
+
import { LdSuiteLoader } from './ld-suite-loader.js';
|
|
7
|
+
const debug = Debug('veramo:w3c:action-handler');
|
|
23
8
|
/**
|
|
24
9
|
* A Veramo plugin that implements the {@link ICredentialIssuerLD} methods.
|
|
25
10
|
*
|
|
26
11
|
* @public
|
|
27
12
|
*/
|
|
28
|
-
class CredentialIssuerLD {
|
|
13
|
+
export class CredentialIssuerLD {
|
|
14
|
+
methods;
|
|
15
|
+
schema = schema.ICredentialIssuerLD;
|
|
16
|
+
ldCredentialModule;
|
|
29
17
|
constructor(options) {
|
|
30
|
-
this.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ldSuiteLoader: new ld_suite_loader_1.LdSuiteLoader({ veramoLdSignatures: options.suites }),
|
|
18
|
+
this.ldCredentialModule = new LdCredentialModule({
|
|
19
|
+
ldContextLoader: new LdContextLoader({ contextsPaths: options.contextMaps }),
|
|
20
|
+
ldSuiteLoader: new LdSuiteLoader({ veramoLdSignatures: options.suites }),
|
|
34
21
|
});
|
|
35
22
|
this.methods = {
|
|
36
23
|
createVerifiablePresentationLD: this.createVerifiablePresentationLD.bind(this),
|
|
@@ -40,128 +27,123 @@ class CredentialIssuerLD {
|
|
|
40
27
|
};
|
|
41
28
|
}
|
|
42
29
|
/** {@inheritdoc ICredentialIssuerLD.createVerifiablePresentationLD} */
|
|
43
|
-
createVerifiablePresentationLD(args, context) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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);
|
|
30
|
+
async createVerifiablePresentationLD(args, context) {
|
|
31
|
+
const presentationContext = processEntryToArray(args?.presentation?.['@context'], MANDATORY_CREDENTIAL_CONTEXT);
|
|
32
|
+
const presentationType = processEntryToArray(args?.presentation?.type, 'VerifiablePresentation');
|
|
33
|
+
const presentation = {
|
|
34
|
+
...args?.presentation,
|
|
35
|
+
'@context': presentationContext,
|
|
36
|
+
type: presentationType,
|
|
37
|
+
};
|
|
38
|
+
if (!isDefined(presentation.holder)) {
|
|
39
|
+
throw new Error('invalid_argument: args.presentation.holder must not be empty');
|
|
40
|
+
}
|
|
41
|
+
if (args.presentation.verifiableCredential) {
|
|
42
|
+
const credentials = args.presentation.verifiableCredential.map((cred) => {
|
|
43
|
+
if (typeof cred !== 'string' && cred.proof.jwt) {
|
|
44
|
+
return cred.proof.jwt;
|
|
77
45
|
}
|
|
78
|
-
|
|
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);
|
|
46
|
+
else {
|
|
47
|
+
return cred;
|
|
109
48
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
49
|
+
});
|
|
50
|
+
presentation.verifiableCredential = credentials;
|
|
51
|
+
}
|
|
52
|
+
//issuanceDate must not be present for presentations because it is not defined in a @context
|
|
53
|
+
delete presentation.issuanceDate;
|
|
54
|
+
let identifier;
|
|
55
|
+
try {
|
|
56
|
+
identifier = await context.agent.didManagerGet({ did: presentation.holder });
|
|
57
|
+
}
|
|
58
|
+
catch (e) {
|
|
59
|
+
throw new Error('invalid_argument: args.presentation.holder must be a DID managed by this agent');
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
const { signingKey, verificationMethodId } = await this.findSigningKeyWithId(context, identifier, args.keyRef);
|
|
122
63
|
let { now } = args;
|
|
123
64
|
if (typeof now === 'number') {
|
|
124
65
|
now = new Date(now * 1000);
|
|
125
66
|
}
|
|
126
|
-
return this.ldCredentialModule.
|
|
127
|
-
}
|
|
67
|
+
return await this.ldCredentialModule.signLDVerifiablePresentation(presentation, identifier.did, signingKey, verificationMethodId, args.challenge || '', args.domain || '', { ...args, now }, context);
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
debug(error);
|
|
71
|
+
return Promise.reject(error);
|
|
72
|
+
}
|
|
128
73
|
}
|
|
129
|
-
/** {@inheritdoc ICredentialIssuerLD.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
74
|
+
/** {@inheritdoc ICredentialIssuerLD.createVerifiableCredentialLD} */
|
|
75
|
+
async createVerifiableCredentialLD(args, context) {
|
|
76
|
+
const credentialContext = processEntryToArray(args?.credential?.['@context'], MANDATORY_CREDENTIAL_CONTEXT);
|
|
77
|
+
const credentialType = processEntryToArray(args?.credential?.type, 'VerifiableCredential');
|
|
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);
|
|
133
96
|
let { now } = args;
|
|
134
97
|
if (typeof now === 'number') {
|
|
135
98
|
now = new Date(now * 1000);
|
|
136
99
|
}
|
|
137
|
-
return this.ldCredentialModule.
|
|
138
|
-
}
|
|
100
|
+
return await this.ldCredentialModule.issueLDVerifiableCredential(credential, identifier.did, signingKey, verificationMethodId, { ...args.options, now }, context);
|
|
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);
|
|
139
124
|
}
|
|
140
|
-
findSigningKeyWithId(context, identifier, keyRef) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
125
|
+
async findSigningKeyWithId(context, identifier, keyRef) {
|
|
126
|
+
const extendedKeys = await mapIdentifierKeysToDoc(identifier, 'assertionMethod', context);
|
|
127
|
+
let supportedTypes = this.ldCredentialModule.ldSuiteLoader.getAllSignatureSuiteTypes();
|
|
128
|
+
let signingKey;
|
|
129
|
+
let verificationMethodId;
|
|
130
|
+
if (keyRef) {
|
|
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) {
|
|
146
138
|
if (keyRef) {
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
});
|
|
139
|
+
debug('WARNING: no signing key was found that matches the reference provided. Searching for the first available signing key.');
|
|
140
|
+
}
|
|
141
|
+
signingKey = extendedKeys.find((k) => supportedTypes.includes(k.meta.verificationMethod.type));
|
|
142
|
+
}
|
|
143
|
+
if (!signingKey)
|
|
144
|
+
throw Error(`key_not_found: No suitable signing key found for ${identifier.did}`);
|
|
145
|
+
verificationMethodId = signingKey.meta.verificationMethod.id;
|
|
146
|
+
return { signingKey, verificationMethodId };
|
|
164
147
|
}
|
|
165
148
|
}
|
|
166
|
-
exports.CredentialIssuerLD = CredentialIssuerLD;
|
|
167
149
|
//# 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":"AAYA,OAAO,MAAM,MAAM,sBAAsB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AACjE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAEL,aAAa,EACb,SAAS,EACT,4BAA4B,EAC5B,sBAAsB,EAEtB,mBAAmB,GAEpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAWpD,MAAM,KAAK,GAAG,KAAK,CAAC,2BAA2B,CAAC,CAAA;AAEhD;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IACpB,OAAO,CAAqB;IAC5B,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAA;IAEpC,kBAAkB,CAAoB;IAE9C,YAAY,OAA0F;QACpG,IAAI,CAAC,kBAAkB,GAAG,IAAI,kBAAkB,CAAC;YAC/C,eAAe,EAAE,IAAI,eAAe,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;YAC5E,aAAa,EAAE,IAAI,aAAa,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;SACzE,CAAC,CAAA;QAEF,IAAI,CAAC,OAAO,GAAG;YACb,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,CAAC,IA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IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAA;SACxD;QACD,IAAI,UAAU,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;YACnF,KAAK,CACH,wHAAwH,CACzH,CAAA;YACD,UAAU,GAAG,SAAS,CAAA;SACvB;QACD,IAAI,CAAC,UAAU,EAAE;YACf,IAAI,MAAM,EAAE;gBACV,KAAK,CACH,uHAAuH,CACxH,CAAA;aACF;YACD,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;SAC/F;QAGD,IAAI,CAAC,UAAU;YAAE,MAAM,KAAK,CAAC,oDAAoD,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;QAClG,oBAAoB,GAAG,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAA;QAC5D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAA;IAC7C,CAAC;CACF"}
|
package/build/index.d.ts
CHANGED
|
@@ -10,20 +10,12 @@
|
|
|
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';
|
|
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 };
|
|
13
|
+
export { CredentialIssuerLD } from './action-handler.js';
|
|
14
|
+
export * from './types.js';
|
|
15
|
+
export { LdDefaultContexts } from './ld-default-contexts.js';
|
|
16
|
+
export { VeramoLdSignature } from './ld-suites.js';
|
|
17
|
+
export * from './suites/EcdsaSecp256k1RecoverySignature2020.js';
|
|
18
|
+
export * from './suites/Ed25519Signature2018.js';
|
|
19
|
+
export * from './suites/Ed25519Signature2020.js';
|
|
20
|
+
export * from './suites/JsonWebSignature2020.js';
|
|
29
21
|
//# 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,qBAAqB,CAAA;AACxD,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
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;
|
|
18
1
|
/**
|
|
19
2
|
* Provides a {@link @veramo/credential-ld#CredentialIssuerLD | plugin} for the {@link @veramo/core#Agent} that
|
|
20
3
|
* implements
|
|
@@ -27,23 +10,12 @@ exports.schema = exports.VeramoLdSignature = exports.LdDefaultContexts = exports
|
|
|
27
10
|
*
|
|
28
11
|
* @packageDocumentation
|
|
29
12
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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;
|
|
13
|
+
export { CredentialIssuerLD } from './action-handler.js';
|
|
14
|
+
export * from './types.js';
|
|
15
|
+
export { LdDefaultContexts } from './ld-default-contexts.js';
|
|
16
|
+
export { VeramoLdSignature } from './ld-suites.js';
|
|
17
|
+
export * from './suites/EcdsaSecp256k1RecoverySignature2020.js';
|
|
18
|
+
export * from './suites/Ed25519Signature2018.js';
|
|
19
|
+
export * from './suites/Ed25519Signature2020.js';
|
|
20
|
+
export * from './suites/JsonWebSignature2020.js';
|
|
49
21
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACxD,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA"}
|
|
@@ -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.js';
|
|
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,YAAY,CAAA;AAEvC,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,26 +1,15 @@
|
|
|
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;
|
|
13
1
|
/**
|
|
14
2
|
* The LdContextLoader is initialized with a List of Map<string, ContextDoc | Promise<ContextDoc>>
|
|
15
3
|
* that it unifies into a single Map to provide to the documentLoader within
|
|
16
4
|
* the w3c credential module.
|
|
17
5
|
*/
|
|
18
|
-
|
|
19
|
-
class LdContextLoader {
|
|
6
|
+
import { isIterable } from '@veramo/utils';
|
|
7
|
+
export class LdContextLoader {
|
|
8
|
+
contexts;
|
|
20
9
|
constructor(options) {
|
|
21
10
|
this.contexts = {};
|
|
22
11
|
Array.from(options.contextsPaths, (mapItem) => {
|
|
23
|
-
const map =
|
|
12
|
+
const map = isIterable(mapItem) ? mapItem : Object.entries(mapItem);
|
|
24
13
|
// generate-plugin-schema is failing unless we use the cast to `any[]`
|
|
25
14
|
for (const [key, value] of map) {
|
|
26
15
|
this.contexts[key] = value;
|
|
@@ -30,11 +19,8 @@ class LdContextLoader {
|
|
|
30
19
|
has(url) {
|
|
31
20
|
return this.contexts[url] !== null && typeof this.contexts[url] !== 'undefined';
|
|
32
21
|
}
|
|
33
|
-
get(url) {
|
|
34
|
-
return
|
|
35
|
-
return this.contexts[url];
|
|
36
|
-
});
|
|
22
|
+
async get(url) {
|
|
23
|
+
return this.contexts[url];
|
|
37
24
|
}
|
|
38
25
|
}
|
|
39
|
-
exports.LdContextLoader = LdContextLoader;
|
|
40
26
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"ld-context-loader.js","sourceRoot":"","sources":["../src/ld-context-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAyB,MAAM,eAAe,CAAA;AAGjE,MAAM,OAAO,eAAe;IACT,QAAQ,CAAuC;IAEhE,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,UAAU,CAAC,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;IAED,KAAK,CAAC,GAAG,CAAC,GAAW;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC;CACF"}
|
|
@@ -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.js';
|
|
3
|
+
import { LdSuiteLoader } from './ld-suite-loader.js';
|
|
4
|
+
import { RequiredAgentMethods } from './ld-suites.js';
|
|
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","sour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