Skip to content

Handling of a DIDComm message containing a JWT #761

Answered by mirceanis
frazur asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for raising this!

I don't think you are doing something wrong. Our message handling API needs to be reworked.
The two types of MessageHandler that you very well spotted need to be separated into different plugins, as this messageHandler chain architecture we have now is quite inflexible and confusing.

A possible new architecture is this:
One plugin should be just pass-through handlers which should only do some heuristic work to convert a blob of bytes into something with a type. Then, based on this type, validators and protocol handlers can pick it up and interpret the message.
Of course, this is just an idea, and other constructions are also possible.
Please share if you think …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@frazur
Comment options

@mirceanis
Comment options

@frazur
Comment options

Answer selected by frazur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants