Message Handlers

Message handlers implement the AbstractMessageHandler interface and are instatiated as a chain by the Message Handler plugin. Veramo includes a number of message handlers for you to use in your apps.

Core Supported Message Handlers

The following plugins export a message handling method.

did-comm

did-jwtDIDCommMessageHandler

DIDCommMessageHandler decrypts incoming messages using the private key of the recipient. The decrypted jwt is passed along to the JWT Message Handler.

img

did-jwt

did-jwtJWTMessageHandler

JWTMessageHandler takes a JWT and creates a message object.

img

credential-w3c

credential-w3cW3CMessageHandler

W3CMessageHandler checks the message payload for Verifiable Credentials and Verifiable Presentations and formats the message object accordingly.

img

selective-disclosure

selective-disclosureSDRMessageHandler

SDRMessageHandler checks the message payload for Selective Disclosure Request formats the message object accordingly. Learm more about selective disclosure requests in the next section.

img