Quintor / StudyBits

Apache License 2.0
6 stars 5 forks source link

Wrapper Feature: Message driven functionality #90

Closed pimotte closed 6 years ago

pimotte commented 6 years ago

Currently, the wrapper is used by calling specific functions. It would be nice to have functionality where a function will call the right handler depending on what kind of message it is. We already have the Authcrypted/AnoncryptedMessage types, where the did is bundled to signal what key to use to decrypt. This function would accept a similar type which also includes a description of the payload (i.e. "ConnectionRequest", "ProofRequest") which then calls the correct underlying function.