@dxos/credentials 0.6.3-main.84ed9fe → 0.6.3-main.8eec022

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.
@@ -560,13 +560,7 @@ var verifyPresentationChain = async (presentation, proof) => {
560
560
  ]
561
561
  };
562
562
  }
563
- let chainVerification;
564
- const assertion = getCredentialAssertion(credential);
565
- if (assertion["@type"] === "dxos.halo.credentials.ServiceAccess") {
566
- chainVerification = await verifyChain(proof.chain, assertion.identityKey, proof.signer);
567
- } else {
568
- chainVerification = await verifyChain(proof.chain, credential.issuer, proof.signer);
569
- }
563
+ const chainVerification = await verifyChain(proof.chain, credential.subject.id, proof.signer);
570
564
  if (chainVerification.kind === "fail") {
571
565
  return chainVerification;
572
566
  }