Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction of PresentationParserChain and PublicKeyResolverChain to increase flexibility #82

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

kkmanos
Copy link
Member

@kkmanos kkmanos commented Nov 21, 2024

The VerifierConfigurationService dependency on src/configuration/verifier/VerifierConfigurationService.ts now implements new functions of the VerifierConfigurationInterface interface.

getPresentationParserChain(): This function is called in the presentation flow when parsing the contents of the credentials. The VerifierConfigurationService can be configured to add additional parsers aside from the sdJwtDefaultParser which is already part of the parsers chain. An additional parser can be added by calling addParser(.) on the returned PresentationParserChain object.

getPublicKeyResolverChain(): This function is called in the presentation flow when verifying the verifiable presentations. It is designed to give the ability to extend the public key resolver chain with other methods of public key resolution. An additional public key resolver can be added by calling addResolver(.) on the returned PublicKeyResolverChain object.

The last defined presentation parser is called first. Similarly for the public key resolvers.

@kkmanos kkmanos changed the title Introduction of PresentationParserChain and PublicKeyResolverChain to ibcrease flexibility Introduction of PresentationParserChain and PublicKeyResolverChain to increase flexibility Nov 22, 2024
…(s) are called to make sure that the VerifierConfigurationService has full control of the first parser or resolver
@kkmanos kkmanos merged commit 13a7025 into verification-flow-fixes Nov 22, 2024
4 checks passed
@kkmanos kkmanos deleted the verifier-conf-extensions branch November 22, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant