@sphereon/ssi-sdk.oid4vci-holder 0.33.1-feature.vcdm2.tsup.45 → 0.33.1-feature.vcdm2.tsup.46
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
- package/src/agent/OID4VCIHolder.ts +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.oid4vci-holder",
|
|
3
|
-
"version": "0.33.1-feature.vcdm2.tsup.
|
|
3
|
+
"version": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.28.1-feature.esm.cjs.18",
|
|
35
35
|
"@sphereon/ssi-sdk-ext.jwt-service": "0.28.1-feature.esm.cjs.18",
|
|
36
36
|
"@sphereon/ssi-sdk-ext.key-utils": "0.28.1-feature.esm.cjs.18",
|
|
37
|
-
"@sphereon/ssi-sdk.contact-manager": "0.33.1-feature.vcdm2.tsup.
|
|
38
|
-
"@sphereon/ssi-sdk.core": "0.33.1-feature.vcdm2.tsup.
|
|
39
|
-
"@sphereon/ssi-sdk.credential-store": "0.33.1-feature.vcdm2.tsup.
|
|
40
|
-
"@sphereon/ssi-sdk.credential-validation": "0.33.1-feature.vcdm2.tsup.
|
|
41
|
-
"@sphereon/ssi-sdk.data-store": "0.33.1-feature.vcdm2.tsup.
|
|
42
|
-
"@sphereon/ssi-sdk.issuance-branding": "0.33.1-feature.vcdm2.tsup.
|
|
43
|
-
"@sphereon/ssi-sdk.mdl-mdoc": "0.33.1-feature.vcdm2.tsup.
|
|
44
|
-
"@sphereon/ssi-sdk.oidf-client": "0.33.1-feature.vcdm2.tsup.
|
|
45
|
-
"@sphereon/ssi-sdk.sd-jwt": "0.33.1-feature.vcdm2.tsup.
|
|
46
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.33.1-feature.vcdm2.tsup.
|
|
47
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.33.1-feature.vcdm2.tsup.
|
|
48
|
-
"@sphereon/ssi-sdk.xstate-machine-persistence": "0.33.1-feature.vcdm2.tsup.
|
|
49
|
-
"@sphereon/ssi-types": "0.33.1-feature.vcdm2.tsup.
|
|
37
|
+
"@sphereon/ssi-sdk.contact-manager": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
38
|
+
"@sphereon/ssi-sdk.core": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
39
|
+
"@sphereon/ssi-sdk.credential-store": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
40
|
+
"@sphereon/ssi-sdk.credential-validation": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
41
|
+
"@sphereon/ssi-sdk.data-store": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
42
|
+
"@sphereon/ssi-sdk.issuance-branding": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
43
|
+
"@sphereon/ssi-sdk.mdl-mdoc": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
44
|
+
"@sphereon/ssi-sdk.oidf-client": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
45
|
+
"@sphereon/ssi-sdk.sd-jwt": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
46
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
47
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
48
|
+
"@sphereon/ssi-sdk.xstate-machine-persistence": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
49
|
+
"@sphereon/ssi-types": "0.33.1-feature.vcdm2.tsup.46+466ac6a6",
|
|
50
50
|
"@veramo/core": "4.2.0",
|
|
51
51
|
"@veramo/data-store": "4.2.0",
|
|
52
52
|
"@veramo/utils": "4.2.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"OID4VCI",
|
|
90
90
|
"State Machine"
|
|
91
91
|
],
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "466ac6a6516d6218d407642ab07c9698862d3394"
|
|
93
93
|
}
|
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
} from '@sphereon/ssi-sdk.data-store'
|
|
48
48
|
import {
|
|
49
49
|
CredentialMapper,
|
|
50
|
+
CredentialProofFormat,
|
|
50
51
|
HasherSync,
|
|
51
52
|
IVerifiableCredential,
|
|
52
53
|
JoseSignatureAlgorithm,
|
|
@@ -65,7 +66,6 @@ import {
|
|
|
65
66
|
IDIDManager,
|
|
66
67
|
IKeyManager,
|
|
67
68
|
IResolver,
|
|
68
|
-
ProofFormat,
|
|
69
69
|
VerifiableCredential,
|
|
70
70
|
W3CVerifiableCredential,
|
|
71
71
|
} from '@veramo/core'
|
|
@@ -930,8 +930,11 @@ export class OID4VCIHolder implements IAgentPlugin {
|
|
|
930
930
|
if (CredentialMapper.isWrappedSdJwtVerifiableCredential(wrappedIssuerVC)) {
|
|
931
931
|
issuer = trimmed(wrappedIssuerVC.decoded?.sub)
|
|
932
932
|
} else if (CredentialMapper.isWrappedW3CVerifiableCredential(wrappedIssuerVC)) {
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
issuer =
|
|
934
|
+
trimmed(wrappedIssuerVC.credential?.sub) ??
|
|
935
|
+
// @ts-ignore
|
|
936
|
+
trimmed(wrappedIssuerVC.credential?.credentialSubject?.id) ??
|
|
937
|
+
trimmed(this.idFromW3cCredentialSubject(wrappedIssuerVC))
|
|
935
938
|
} else if (CredentialMapper.isWrappedMdocCredential(wrappedIssuerVC)) {
|
|
936
939
|
return Promise.reject(Error('mdoc not yet supported'))
|
|
937
940
|
}
|
|
@@ -963,7 +966,7 @@ export class OID4VCIHolder implements IAgentPlugin {
|
|
|
963
966
|
logger.log(`Issuer for self-issued credential will be: ${issuer}`)
|
|
964
967
|
|
|
965
968
|
const holderCredentialToSign = wrappedIssuerVC.decoded
|
|
966
|
-
let proofFormat:
|
|
969
|
+
let proofFormat: CredentialProofFormat = 'lds'
|
|
967
970
|
if (wrappedIssuerVC.format.includes('jwt') && !wrappedIssuerVC.format.includes('mso_mdoc')) {
|
|
968
971
|
holderCredentialToSign.iss = issuer
|
|
969
972
|
proofFormat = 'jwt'
|