makeSummaryFromSdJwtCompat

Build an IssuedCredentialSummary from an SD-JWT VC string.

The function:

  1. Parses the first part (~-separated) as a JWS and reads its payload.

  2. Parses the remaining parts as disclosures and reconstructs selected fields.

  3. Derives a human-friendly title from vct or vc.type.

  4. Derives issuer from iss or vc.issuer.

  5. Derives a holder display name from vc.credentialSubject and/or disclosures.

This method is intentionally lenient: if some fields are missing it will fall back to generic labels like "Credential" or "Unknown name" instead of failing.

Parameters

sdJwt

The SD-JWT VC string.

fallbackId

ID to use if none is available from the document.