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

Use dictionaries to specify issuer for VCs and idTokens #51

Closed beejones closed 4 years ago

beejones commented 4 years ago

Problem: An issuer can issue multiple VCs. The validation builder needs to understand which types are expected and which are the issuers associated with these types. Renamed ClaimToken.getTokenType to create because it is a factory method. Pass the validated tokens to the result so that an RP can e.g. still inspect to original siop.

Solution: Accept a dictionary or an array in useTrustedIssuersForVerifiableCredentials.

Validation: Updated unit tests

Type of change: