@sphereon/ssi-sdk.ebsi-support 0.34.1-feature.SSISDK.57.uni.client.205 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.145
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-feature.SSISDK.
|
|
3
|
+
"version": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
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.
|
|
31
|
-
"@sphereon/did-auth-siop-adapter": "0.19.1-feature.
|
|
30
|
+
"@sphereon/did-auth-siop": "0.19.1-feature.SSISDK.58.host.nonce.endpoint.107",
|
|
31
|
+
"@sphereon/did-auth-siop-adapter": "0.19.1-feature.SSISDK.58.host.nonce.endpoint.107",
|
|
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-feature.SSISDK.
|
|
35
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.
|
|
36
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.
|
|
37
|
-
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.
|
|
38
|
-
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.
|
|
39
|
-
"@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.
|
|
40
|
-
"@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.
|
|
41
|
-
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-feature.SSISDK.
|
|
42
|
-
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.
|
|
43
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-feature.SSISDK.
|
|
44
|
-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.
|
|
34
|
+
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
35
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
36
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
37
|
+
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
38
|
+
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
39
|
+
"@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
40
|
+
"@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
41
|
+
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
42
|
+
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
43
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
44
|
+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
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.
|
|
60
|
-
"@sphereon/oid4vci-common": "0.19.1-feature.
|
|
61
|
-
"@sphereon/ssi-express-support": "0.34.1-feature.SSISDK.
|
|
62
|
-
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-feature.SSISDK.
|
|
63
|
-
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-feature.SSISDK.
|
|
64
|
-
"@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.
|
|
65
|
-
"@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.
|
|
66
|
-
"@sphereon/ssi-sdk.public-key-hosting": "0.34.1-feature.SSISDK.
|
|
59
|
+
"@sphereon/oid4vci-client": "0.19.1-feature.SSISDK.58.host.nonce.endpoint.107",
|
|
60
|
+
"@sphereon/oid4vci-common": "0.19.1-feature.SSISDK.58.host.nonce.endpoint.107",
|
|
61
|
+
"@sphereon/ssi-express-support": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
62
|
+
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
63
|
+
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
64
|
+
"@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
65
|
+
"@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
66
|
+
"@sphereon/ssi-sdk.public-key-hosting": "0.34.1-feature.SSISDK.58.host.nonce.endpoint.145+5bfc0b12",
|
|
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": "5bfc0b1229134b5d80279a3baf1fc64c9c6e755e"
|
|
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 }) ?? setDefaultPurposes({ 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 setDefaultPurposes = (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) {
|