@sphereon/ssi-sdk.oid4vci-holder 0.33.1-feature.vcdm2.tsup.32 → 0.33.1-feature.vcdm2.tsup.36

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/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.32+203a9d60",
3
+ "version": "0.33.1-feature.vcdm2.tsup.36+5116fa42",
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.32+203a9d60",
38
- "@sphereon/ssi-sdk.core": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
39
- "@sphereon/ssi-sdk.credential-store": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
40
- "@sphereon/ssi-sdk.credential-validation": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
41
- "@sphereon/ssi-sdk.data-store": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
42
- "@sphereon/ssi-sdk.issuance-branding": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
43
- "@sphereon/ssi-sdk.mdl-mdoc": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
44
- "@sphereon/ssi-sdk.oidf-client": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
45
- "@sphereon/ssi-sdk.sd-jwt": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
46
- "@sphereon/ssi-sdk.siopv2-oid4vp-common": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
47
- "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
48
- "@sphereon/ssi-sdk.xstate-machine-persistence": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
49
- "@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.32+203a9d60",
37
+ "@sphereon/ssi-sdk.contact-manager": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
38
+ "@sphereon/ssi-sdk.core": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
39
+ "@sphereon/ssi-sdk.credential-store": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
40
+ "@sphereon/ssi-sdk.credential-validation": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
41
+ "@sphereon/ssi-sdk.data-store": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
42
+ "@sphereon/ssi-sdk.issuance-branding": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
43
+ "@sphereon/ssi-sdk.mdl-mdoc": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
44
+ "@sphereon/ssi-sdk.oidf-client": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
45
+ "@sphereon/ssi-sdk.sd-jwt": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
46
+ "@sphereon/ssi-sdk.siopv2-oid4vp-common": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
47
+ "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
48
+ "@sphereon/ssi-sdk.xstate-machine-persistence": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
49
+ "@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.36+5116fa42",
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": "203a9d6076275e58d7959b7d212b8b938ad6a49e"
92
+ "gitHead": "5116fa4275f4cf54a5605e77657a512a0b95d3a4"
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
- issuer = trimmed(wrappedIssuerVC.credential?.sub) ?? trimmed(this.idFromW3cCredentialSubject(wrappedIssuerVC))
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,