microsoft / VerifiableCredentials-Verification-SDK-Typescript

An SDK to help Relying Parties manages their Decentralized Identities and Verifiable Credentials.
MIT License
53 stars 14 forks source link

Performance enhancements #124

Closed gproanomsft closed 3 years ago

gproanomsft commented 3 years ago

Problem: ClaimToken.create had a path where a jwt was decoded multiple times. For JSON LD it relied on string.split and an error to determine a known condition

Solution: Refactor ClaimToken.create to decode a JWT once

Validation: Existing unit tests work

Type of change:

Risk: