@sphereon/ssi-sdk.oid4vci-holder 0.33.1-feature.vcdm2.tsup.33 → 0.33.1-feature.vcdm2.tsup.37
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
- package/src/agent/OID4VCIHolder.ts +3 -2
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.37+a1794c54",
|
|
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.17",
|
|
35
35
|
"@sphereon/ssi-sdk-ext.jwt-service": "0.28.1-feature.esm.cjs.17",
|
|
36
36
|
"@sphereon/ssi-sdk-ext.key-utils": "0.28.1-feature.esm.cjs.17",
|
|
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.37+a1794c54",
|
|
38
|
+
"@sphereon/ssi-sdk.core": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
39
|
+
"@sphereon/ssi-sdk.credential-store": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
40
|
+
"@sphereon/ssi-sdk.credential-validation": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
41
|
+
"@sphereon/ssi-sdk.data-store": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
42
|
+
"@sphereon/ssi-sdk.issuance-branding": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
43
|
+
"@sphereon/ssi-sdk.mdl-mdoc": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
44
|
+
"@sphereon/ssi-sdk.oidf-client": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
45
|
+
"@sphereon/ssi-sdk.sd-jwt": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
46
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
47
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
48
|
+
"@sphereon/ssi-sdk.xstate-machine-persistence": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
49
|
+
"@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.37+a1794c54",
|
|
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": "a1794c54131d9daec6111d1c90d6cded2fa412f4"
|
|
93
93
|
}
|
|
@@ -930,7 +930,8 @@ 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
|
-
|
|
933
|
+
// @ts-ignore
|
|
934
|
+
issuer = trimmed(wrappedIssuerVC.credential?.sub) ?? trimmed(wrappedIssuerVC.credential?.credentialSubject?.id) ?? trimmed(this.idFromW3cCredentialSubject(wrappedIssuerVC))
|
|
934
935
|
} else if (CredentialMapper.isWrappedMdocCredential(wrappedIssuerVC)) {
|
|
935
936
|
return Promise.reject(Error('mdoc not yet supported'))
|
|
936
937
|
}
|
|
@@ -990,7 +991,7 @@ export class OID4VCIHolder implements IAgentPlugin {
|
|
|
990
991
|
|
|
991
992
|
logger.log(`Subject issuance/signing will sign credential of type ${proofFormat}:`, holderCredentialToSign)
|
|
992
993
|
const issuedVC = await context.agent.createVerifiableCredential({
|
|
993
|
-
credential: holderCredentialToSign as CredentialPayload,
|
|
994
|
+
credential: ('vc' in holderCredentialToSign ? holderCredentialToSign.vc : holderCredentialToSign) as CredentialPayload,
|
|
994
995
|
fetchRemoteContexts: true,
|
|
995
996
|
save: false,
|
|
996
997
|
proofFormat,
|