From aa4cb0ada30057fe2fdca5a9c8913707282af04c Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Wed, 8 Jan 2025 22:18:35 +0100 Subject: [PATCH] chore: removed new error in toWrappedVerifiablePresentation --- packages/ssi-types/src/mapper/credential-mapper.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/ssi-types/src/mapper/credential-mapper.ts b/packages/ssi-types/src/mapper/credential-mapper.ts index 4144e858..3a7f58af 100644 --- a/packages/ssi-types/src/mapper/credential-mapper.ts +++ b/packages/ssi-types/src/mapper/credential-mapper.ts @@ -203,10 +203,6 @@ export class CredentialMapper { } } - if (typeof originalPresentation === 'string' && !CredentialMapper.isJwtEncoded(originalPresentation)) { - throw Error(`Unknown presentation type, the vp is a string, but not JWT or MDOC encoded`) - } - // If the VP is not an encoded/decoded SD-JWT, we assume it will be a W3C VC const proof = CredentialMapper.getFirstProof(originalPresentation) const original =