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.
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.