@sphereon/ssi-sdk.vc-status-list 0.33.0 → 0.33.1-feature.vcdm2.4
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/dist/functions.js +140 -168
- package/dist/functions.js.map +1 -1
- package/dist/impl/IStatusList.js +1 -2
- package/dist/impl/OAuthStatusList.js +131 -142
- package/dist/impl/OAuthStatusList.js.map +1 -1
- package/dist/impl/StatusList2021.js +157 -164
- package/dist/impl/StatusList2021.js.map +1 -1
- package/dist/impl/StatusListFactory.js +9 -12
- package/dist/impl/StatusListFactory.js.map +1 -1
- package/dist/impl/encoding/cbor.js +34 -51
- package/dist/impl/encoding/cbor.js.map +1 -1
- package/dist/impl/encoding/common.js +6 -14
- package/dist/impl/encoding/common.js.map +1 -1
- package/dist/impl/encoding/jwt.js +27 -40
- package/dist/impl/encoding/jwt.js.map +1 -1
- package/dist/index.js +2 -18
- package/dist/index.js.map +1 -1
- package/dist/types/index.js +4 -7
- package/dist/types/index.js.map +1 -1
- package/dist/utils.js +22 -31
- package/dist/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/functions.js
CHANGED
|
@@ -1,200 +1,172 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.fetchStatusListCredential = fetchStatusListCredential;
|
|
13
|
-
exports.statusPluginStatusFunction = statusPluginStatusFunction;
|
|
14
|
-
exports.vcLibCheckStatusFunction = vcLibCheckStatusFunction;
|
|
15
|
-
exports.checkStatusForCredential = checkStatusForCredential;
|
|
16
|
-
exports.simpleCheckStatusFromStatusListUrl = simpleCheckStatusFromStatusListUrl;
|
|
17
|
-
exports.checkStatusIndexFromStatusListCredential = checkStatusIndexFromStatusListCredential;
|
|
18
|
-
exports.createNewStatusList = createNewStatusList;
|
|
19
|
-
exports.updateStatusIndexFromStatusListCredential = updateStatusIndexFromStatusListCredential;
|
|
20
|
-
exports.statusListCredentialToDetails = statusListCredentialToDetails;
|
|
21
|
-
exports.updateStatusListIndexFromEncodedList = updateStatusListIndexFromEncodedList;
|
|
22
|
-
exports.statusList2021ToVerifiableCredential = statusList2021ToVerifiableCredential;
|
|
23
|
-
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
24
|
-
const vc_status_list_1 = require("@sphereon/vc-status-list");
|
|
25
|
-
const utils_1 = require("./utils");
|
|
26
|
-
const StatusListFactory_1 = require("./impl/StatusListFactory");
|
|
27
|
-
function fetchStatusListCredential(args) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const url = (0, utils_1.getAssertedValue)('statusListCredential', args.statusListCredential);
|
|
30
|
-
try {
|
|
31
|
-
const response = yield fetch(url);
|
|
32
|
-
if (!response.ok) {
|
|
33
|
-
throw Error(`Fetching status list ${url} resulted in an error: ${response.status} : ${response.statusText}`);
|
|
34
|
-
}
|
|
35
|
-
const responseAsText = yield response.text();
|
|
36
|
-
if (responseAsText.trim().startsWith('{')) {
|
|
37
|
-
return JSON.parse(responseAsText);
|
|
38
|
-
}
|
|
39
|
-
return responseAsText;
|
|
1
|
+
import { CredentialMapper, StatusListType, } from '@sphereon/ssi-types';
|
|
2
|
+
import { checkStatus } from '@sphereon/vc-status-list';
|
|
3
|
+
import { assertValidProofType, determineStatusListType, getAssertedValue, getAssertedValues } from './utils';
|
|
4
|
+
import { getStatusListImplementation } from './impl/StatusListFactory';
|
|
5
|
+
export async function fetchStatusListCredential(args) {
|
|
6
|
+
const url = getAssertedValue('statusListCredential', args.statusListCredential);
|
|
7
|
+
try {
|
|
8
|
+
const response = await fetch(url);
|
|
9
|
+
if (!response.ok) {
|
|
10
|
+
throw Error(`Fetching status list ${url} resulted in an error: ${response.status} : ${response.statusText}`);
|
|
40
11
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
const responseAsText = await response.text();
|
|
13
|
+
if (responseAsText.trim().startsWith('{')) {
|
|
14
|
+
return JSON.parse(responseAsText);
|
|
44
15
|
}
|
|
45
|
-
|
|
16
|
+
return responseAsText;
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
console.error(`Fetching status list ${url} resulted in an unexpected error: ${error instanceof Error ? error.message : JSON.stringify(error)}`);
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
46
22
|
}
|
|
47
|
-
function statusPluginStatusFunction(args) {
|
|
48
|
-
return (credential, didDoc) =>
|
|
49
|
-
const result =
|
|
50
|
-
|
|
51
|
-
|
|
23
|
+
export function statusPluginStatusFunction(args) {
|
|
24
|
+
return async (credential, didDoc) => {
|
|
25
|
+
const result = await checkStatusForCredential({
|
|
26
|
+
...args,
|
|
27
|
+
documentLoader: args.documentLoader,
|
|
28
|
+
credential: credential,
|
|
29
|
+
errorUnknownListType: args.errorUnknownListType,
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
revoked: !result.verified || result.error,
|
|
33
|
+
...(result.error && { error: result.error }),
|
|
34
|
+
};
|
|
35
|
+
};
|
|
52
36
|
}
|
|
53
37
|
/**
|
|
54
38
|
* Function that can be used together with @digitalbazar/vc and @digitialcredentials/vc
|
|
55
39
|
* @param args
|
|
56
40
|
*/
|
|
57
|
-
function vcLibCheckStatusFunction(args) {
|
|
41
|
+
export function vcLibCheckStatusFunction(args) {
|
|
58
42
|
const { mandatoryCredentialStatus, verifyStatusListCredential, verifyMatchingIssuers, errorUnknownListType } = args;
|
|
59
43
|
return (args) => {
|
|
60
|
-
return checkStatusForCredential(
|
|
44
|
+
return checkStatusForCredential({
|
|
45
|
+
...args,
|
|
46
|
+
mandatoryCredentialStatus,
|
|
61
47
|
verifyStatusListCredential,
|
|
62
48
|
verifyMatchingIssuers,
|
|
63
|
-
errorUnknownListType
|
|
49
|
+
errorUnknownListType,
|
|
50
|
+
});
|
|
64
51
|
};
|
|
65
52
|
}
|
|
66
|
-
function checkStatusForCredential(args) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
console.log(error);
|
|
76
|
-
return { verified: false, error };
|
|
77
|
-
}
|
|
78
|
-
return { verified: true };
|
|
79
|
-
}
|
|
80
|
-
if ('credentialStatus' in uniform && uniform.credentialStatus) {
|
|
81
|
-
if (uniform.credentialStatus.type === 'StatusList2021Entry') {
|
|
82
|
-
return (0, vc_status_list_1.checkStatus)(Object.assign(Object.assign({}, args), { verifyStatusListCredential, verifyMatchingIssuers }));
|
|
83
|
-
}
|
|
84
|
-
else if (args === null || args === void 0 ? void 0 : args.errorUnknownListType) {
|
|
85
|
-
const error = `Credential status type ${uniform.credentialStatus.type} is not supported, and check status has been configured to not allow for that`;
|
|
86
|
-
console.log(error);
|
|
87
|
-
return { verified: false, error };
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
console.log(`Skipped verification of status type ${uniform.credentialStatus.type} as we do not support it (yet)`);
|
|
91
|
-
}
|
|
53
|
+
export async function checkStatusForCredential(args) {
|
|
54
|
+
const verifyStatusListCredential = args.verifyStatusListCredential ?? true;
|
|
55
|
+
const verifyMatchingIssuers = args.verifyMatchingIssuers ?? true;
|
|
56
|
+
const uniform = CredentialMapper.toUniformCredential(args.credential);
|
|
57
|
+
if (!('credentialStatus' in uniform) || !uniform.credentialStatus) {
|
|
58
|
+
if (args.mandatoryCredentialStatus) {
|
|
59
|
+
const error = 'No credential status object found in the Verifiable Credential and it is mandatory';
|
|
60
|
+
console.log(error);
|
|
61
|
+
return { verified: false, error };
|
|
92
62
|
}
|
|
93
63
|
return { verified: true };
|
|
94
|
-
}
|
|
64
|
+
}
|
|
65
|
+
if ('credentialStatus' in uniform && uniform.credentialStatus) {
|
|
66
|
+
if (uniform.credentialStatus.type === 'StatusList2021Entry') {
|
|
67
|
+
return checkStatus({ ...args, verifyStatusListCredential, verifyMatchingIssuers });
|
|
68
|
+
}
|
|
69
|
+
else if (args?.errorUnknownListType) {
|
|
70
|
+
const error = `Credential status type ${uniform.credentialStatus.type} is not supported, and check status has been configured to not allow for that`;
|
|
71
|
+
console.log(error);
|
|
72
|
+
return { verified: false, error };
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
console.log(`Skipped verification of status type ${uniform.credentialStatus.type} as we do not support it (yet)`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return { verified: true };
|
|
95
79
|
}
|
|
96
|
-
function simpleCheckStatusFromStatusListUrl(args) {
|
|
97
|
-
return
|
|
98
|
-
|
|
80
|
+
export async function simpleCheckStatusFromStatusListUrl(args) {
|
|
81
|
+
return checkStatusIndexFromStatusListCredential({
|
|
82
|
+
...args,
|
|
83
|
+
statusListCredential: await fetchStatusListCredential(args),
|
|
99
84
|
});
|
|
100
85
|
}
|
|
101
|
-
function checkStatusIndexFromStatusListCredential(args) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return implementation.checkStatusIndex(args);
|
|
106
|
-
});
|
|
86
|
+
export async function checkStatusIndexFromStatusListCredential(args) {
|
|
87
|
+
const statusListType = determineStatusListType(args.statusListCredential);
|
|
88
|
+
const implementation = getStatusListImplementation(statusListType);
|
|
89
|
+
return implementation.checkStatusIndex(args);
|
|
107
90
|
}
|
|
108
|
-
function createNewStatusList(args, context) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return implementation.createNewStatusList(args, context);
|
|
113
|
-
});
|
|
91
|
+
export async function createNewStatusList(args, context) {
|
|
92
|
+
const { type } = getAssertedValues(args);
|
|
93
|
+
const implementation = getStatusListImplementation(type);
|
|
94
|
+
return implementation.createNewStatusList(args, context);
|
|
114
95
|
}
|
|
115
|
-
function updateStatusIndexFromStatusListCredential(args, context) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return implementation.updateStatusListIndex(args, context);
|
|
121
|
-
});
|
|
96
|
+
export async function updateStatusIndexFromStatusListCredential(args, context) {
|
|
97
|
+
const credential = getAssertedValue('statusListCredential', args.statusListCredential);
|
|
98
|
+
const statusListType = determineStatusListType(credential);
|
|
99
|
+
const implementation = getStatusListImplementation(statusListType);
|
|
100
|
+
return implementation.updateStatusListIndex(args, context);
|
|
122
101
|
}
|
|
123
102
|
// Keeping helper function for backward compatibility
|
|
124
|
-
function statusListCredentialToDetails(args) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
statusListType = ssi_types_1.StatusListType.OAuthStatusList;
|
|
134
|
-
}
|
|
103
|
+
export async function statusListCredentialToDetails(args) {
|
|
104
|
+
const credential = getAssertedValue('statusListCredential', args.statusListCredential);
|
|
105
|
+
let statusListType;
|
|
106
|
+
const documentFormat = CredentialMapper.detectDocumentType(credential);
|
|
107
|
+
if (documentFormat === 0 /* DocumentFormat.JWT */) {
|
|
108
|
+
const [header] = credential.split('.');
|
|
109
|
+
const decodedHeader = JSON.parse(Buffer.from(header, 'base64').toString());
|
|
110
|
+
if (decodedHeader.typ === 'statuslist+jwt') {
|
|
111
|
+
statusListType = StatusListType.OAuthStatusList;
|
|
135
112
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
113
|
+
}
|
|
114
|
+
else if (documentFormat === 4 /* DocumentFormat.MSO_MDOC */) {
|
|
115
|
+
statusListType = StatusListType.OAuthStatusList;
|
|
116
|
+
// TODO check CBOR content?
|
|
117
|
+
}
|
|
118
|
+
if (!statusListType) {
|
|
119
|
+
const uniform = CredentialMapper.toUniformCredential(credential);
|
|
120
|
+
const type = uniform.type.find((t) => t.includes('StatusList2021') || t.includes('OAuth2StatusList'));
|
|
121
|
+
if (!type) {
|
|
122
|
+
throw new Error('Invalid status list credential type');
|
|
139
123
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
const implementation = (0, StatusListFactory_1.getStatusListImplementation)(statusListType);
|
|
149
|
-
return yield implementation.toStatusListDetails({
|
|
150
|
-
statusListPayload: credential,
|
|
151
|
-
correlationId: args.correlationId,
|
|
152
|
-
driverType: args.driverType,
|
|
153
|
-
});
|
|
124
|
+
statusListType = type.replace('Credential', '');
|
|
125
|
+
}
|
|
126
|
+
const implementation = getStatusListImplementation(statusListType);
|
|
127
|
+
return await implementation.toStatusListDetails({
|
|
128
|
+
statusListPayload: credential,
|
|
129
|
+
correlationId: args.correlationId,
|
|
130
|
+
driverType: args.driverType,
|
|
154
131
|
});
|
|
155
132
|
}
|
|
156
|
-
function updateStatusListIndexFromEncodedList(args, context) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return implementation.updateStatusListFromEncodedList(args, context);
|
|
161
|
-
});
|
|
133
|
+
export async function updateStatusListIndexFromEncodedList(args, context) {
|
|
134
|
+
const { type } = getAssertedValue('type', args);
|
|
135
|
+
const implementation = getStatusListImplementation(type);
|
|
136
|
+
return implementation.updateStatusListFromEncodedList(args, context);
|
|
162
137
|
}
|
|
163
|
-
function statusList2021ToVerifiableCredential(args, context) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
138
|
+
export async function statusList2021ToVerifiableCredential(args, context) {
|
|
139
|
+
const { issuer, id, type } = getAssertedValues(args);
|
|
140
|
+
const identifier = await context.agent.identifierManagedGet({
|
|
141
|
+
identifier: typeof issuer === 'string' ? issuer : issuer.id,
|
|
142
|
+
vmRelationship: 'assertionMethod',
|
|
143
|
+
offlineWhenNoDIDRegistered: true, // FIXME Fix identifier resolution for EBSI
|
|
144
|
+
});
|
|
145
|
+
const proofFormat = args?.proofFormat ?? 'lds';
|
|
146
|
+
assertValidProofType(StatusListType.StatusList2021, proofFormat);
|
|
147
|
+
const veramoProofFormat = proofFormat;
|
|
148
|
+
const encodedList = getAssertedValue('encodedList', args.encodedList);
|
|
149
|
+
const statusPurpose = getAssertedValue('statusPurpose', args.statusPurpose);
|
|
150
|
+
const credential = {
|
|
151
|
+
'@context': ['https://www.w3.org/2018/credentials/v1', 'https://w3id.org/vc/status-list/2021/v1'],
|
|
152
|
+
id,
|
|
153
|
+
issuer,
|
|
154
|
+
// issuanceDate: "2021-03-10T04:24:12.164Z",
|
|
155
|
+
type: ['VerifiableCredential', `${type}Credential`],
|
|
156
|
+
credentialSubject: {
|
|
179
157
|
id,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
const verifiableCredential = yield context.agent.createVerifiableCredential({
|
|
192
|
-
credential,
|
|
193
|
-
keyRef: identifier.kmsKeyRef,
|
|
194
|
-
proofFormat: veramoProofFormat,
|
|
195
|
-
fetchRemoteContexts: true,
|
|
196
|
-
});
|
|
197
|
-
return ssi_types_1.CredentialMapper.toWrappedVerifiableCredential(verifiableCredential).original;
|
|
158
|
+
type,
|
|
159
|
+
statusPurpose,
|
|
160
|
+
encodedList,
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
// TODO copy statuslist schema to local and disable fetching remote contexts
|
|
164
|
+
const verifiableCredential = await context.agent.createVerifiableCredential({
|
|
165
|
+
credential,
|
|
166
|
+
keyRef: identifier.kmsKeyRef,
|
|
167
|
+
proofFormat: veramoProofFormat,
|
|
168
|
+
fetchRemoteContexts: true,
|
|
198
169
|
});
|
|
170
|
+
return CredentialMapper.toWrappedVerifiableCredential(verifiableCredential).original;
|
|
199
171
|
}
|
|
200
172
|
//# sourceMappingURL=functions.js.map
|
package/dist/functions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAKhB,cAAc,GAEf,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAWtD,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAEtE,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,IAAsC;IACpF,MAAM,GAAG,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAA;IAC/E,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;QACjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,KAAK,CAAC,wBAAwB,GAAG,0BAA0B,QAAQ,CAAC,MAAM,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA;QAC9G,CAAC;QACD,MAAM,cAAc,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;QAC5C,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAyB,CAAA;QAC3D,CAAC;QACD,OAAO,cAAsC,CAAA;IAC/C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,qCAAqC,KAAK,YAAY,KAAK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