@sphereon/ssi-sdk.siopv2-oid4vp-op-auth 0.36.1-feature.SSISDK.82.and.SSISDK.70.35 → 0.36.1-next.11

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 CHANGED
@@ -580,6 +580,7 @@ function getSigningAlgo(type) {
580
580
  __name(getSigningAlgo, "getSigningAlgo");
581
581
 
582
582
  // src/session/OID4VP.ts
583
+ var import_utils = require("@sphereon/pex/dist/main/lib/utils/index.js");
583
584
  var import_ssi_sdk_ext2 = require("@sphereon/ssi-sdk-ext.identifier-resolution");
584
585
  var import_ssi_sdk2 = require("@sphereon/ssi-sdk.sd-jwt");
585
586
  var import_ssi_types = require("@sphereon/ssi-types");
@@ -696,7 +697,7 @@ async function createVerifiablePresentationForFormat(credential, identifier, con
696
697
  case import_ssi_types.DocumentFormat.SD_JWT_VC: {
697
698
  const decodedSdJwt = await import_ssi_types.CredentialMapper.decodeSdJwtVcAsync(typeof originalCredential === "string" ? originalCredential : originalCredential.compactSdJwtVc, import_ssi_sdk2.defaultGenerateDigest);
698
699
  const hashAlg = decodedSdJwt.signedPayload._sd_alg ?? "sha-256";
699
- const sdHash = (0, import_ssi_sdk2.calculateSdHash)(decodedSdJwt.compactSdJwtVc, hashAlg, import_ssi_sdk2.defaultGenerateDigest);
700
+ const sdHash = (0, import_utils.calculateSdHash)(decodedSdJwt.compactSdJwtVc, hashAlg, import_ssi_sdk2.defaultGenerateDigest);
700
701
  const kbJwtPayload = {
701
702
  iat: Math.floor(Date.now() / 1e3 - clockSkew),
702
703
  sd_hash: sdHash,