make Summary From Sd Jwt Compat
Build an IssuedCredentialSummary from an SD-JWT VC string.
The function:
Parses the first part (
~-separated) as a JWS and reads its payload.Parses the remaining parts as disclosures and reconstructs selected fields.
Derives a human-friendly title from
vctorvc.type.Derives issuer from
issorvc.issuer.Derives a holder display name from
vc.credentialSubjectand/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
sd Jwt
The SD-JWT VC string.
fallback Id
ID to use if none is available from the document.