@sphereon/ssi-sdk.siopv2-oid4vp-op-auth 0.36.1-next.11 → 0.36.1-next.47

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