@sphereon/ssi-sdk.ebsi-support 0.34.1-fix.171 → 0.34.1-fix.223
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +23 -23
- package/src/did/functions.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.ebsi-support",
|
|
3
|
-
"version": "0.34.1-fix.
|
|
3
|
+
"version": "0.34.1-fix.223+9c86d039",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ethersproject/random": "^5.7.0",
|
|
30
|
-
"@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.
|
|
31
|
-
"@sphereon/did-auth-siop-adapter": "0.19.1-feature.DIIPv4.
|
|
30
|
+
"@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.170",
|
|
31
|
+
"@sphereon/did-auth-siop-adapter": "0.19.1-feature.DIIPv4.170",
|
|
32
32
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
33
33
|
"@sphereon/pex-models": "^2.3.2",
|
|
34
|
-
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.34.1-fix.
|
|
35
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-fix.
|
|
36
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-fix.
|
|
37
|
-
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-fix.
|
|
38
|
-
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-fix.
|
|
39
|
-
"@sphereon/ssi-sdk.contact-manager": "0.34.1-fix.
|
|
40
|
-
"@sphereon/ssi-sdk.core": "0.34.1-fix.
|
|
41
|
-
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-fix.
|
|
42
|
-
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-fix.
|
|
43
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-fix.
|
|
44
|
-
"@sphereon/ssi-types": "0.34.1-fix.
|
|
34
|
+
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.34.1-fix.223+9c86d039",
|
|
35
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-fix.223+9c86d039",
|
|
36
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-fix.223+9c86d039",
|
|
37
|
+
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-fix.223+9c86d039",
|
|
38
|
+
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-fix.223+9c86d039",
|
|
39
|
+
"@sphereon/ssi-sdk.contact-manager": "0.34.1-fix.223+9c86d039",
|
|
40
|
+
"@sphereon/ssi-sdk.core": "0.34.1-fix.223+9c86d039",
|
|
41
|
+
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-fix.223+9c86d039",
|
|
42
|
+
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-fix.223+9c86d039",
|
|
43
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-fix.223+9c86d039",
|
|
44
|
+
"@sphereon/ssi-types": "0.34.1-fix.223+9c86d039",
|
|
45
45
|
"@veramo/core": "4.2.0",
|
|
46
46
|
"@veramo/did-manager": "4.2.0",
|
|
47
47
|
"@veramo/utils": "4.2.0",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"xstate": "^4.38.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.
|
|
60
|
-
"@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.
|
|
61
|
-
"@sphereon/ssi-express-support": "0.34.1-fix.
|
|
62
|
-
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-fix.
|
|
63
|
-
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-fix.
|
|
64
|
-
"@sphereon/ssi-sdk.agent-config": "0.34.1-fix.
|
|
65
|
-
"@sphereon/ssi-sdk.data-store": "0.34.1-fix.
|
|
66
|
-
"@sphereon/ssi-sdk.public-key-hosting": "0.34.1-fix.
|
|
59
|
+
"@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.170",
|
|
60
|
+
"@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.170",
|
|
61
|
+
"@sphereon/ssi-express-support": "0.34.1-fix.223+9c86d039",
|
|
62
|
+
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-fix.223+9c86d039",
|
|
63
|
+
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-fix.223+9c86d039",
|
|
64
|
+
"@sphereon/ssi-sdk.agent-config": "0.34.1-fix.223+9c86d039",
|
|
65
|
+
"@sphereon/ssi-sdk.data-store": "0.34.1-fix.223+9c86d039",
|
|
66
|
+
"@sphereon/ssi-sdk.public-key-hosting": "0.34.1-fix.223+9c86d039",
|
|
67
67
|
"@transmute/json-web-signature": "0.7.0-unstable.81",
|
|
68
68
|
"@types/cors": "^2.8.17",
|
|
69
69
|
"@types/express": "^4.17.21",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"EBSI",
|
|
99
99
|
"EBSI Authorization Client"
|
|
100
100
|
],
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "9c86d03951f1267495e456d1fbfd9eb380f27e78"
|
|
102
102
|
}
|
package/src/did/functions.ts
CHANGED
|
@@ -236,7 +236,7 @@ export const toMinimalImportableKey = async (args: { key?: IKeyOpts; type: EbsiK
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
minimalImportableKey.meta = {
|
|
239
|
-
purposes: assertedPurposes({ key }) ??
|
|
239
|
+
purposes: assertedPurposes({ key }) ?? setPurposes({ key, type }),
|
|
240
240
|
jwkThumbprint: calculateJwkThumbprintForKey({
|
|
241
241
|
key: minimalImportableKey as MinimalImportableKey,
|
|
242
242
|
digestAlgorithm: 'sha256',
|
|
@@ -275,7 +275,7 @@ export const assertedPurposes = (args: { key?: IKeyOpts }): EbsiPublicKeyPurpose
|
|
|
275
275
|
return key?.purposes
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export const
|
|
278
|
+
export const setPurposes = (args: { key?: IKeyOpts; type: EbsiKeyType }): EbsiPublicKeyPurpose[] => {
|
|
279
279
|
const { key, type } = args
|
|
280
280
|
if (!key?.purposes || key.purposes.length === 0) {
|
|
281
281
|
switch (type) {
|