Methods

  • Initializes the DWN instance and opens the connection to it.

    Returns Promise<void>

  • Validates structure of DWN message

    Parameters

    • rawMessage: any

    Returns Promise<undefined | GenericMessageReply>

    GenericMessageReply if the message has an integrity error, otherwise undefined.

  • Checks tenant gate to see if tenant is allowed.

    Parameters

    • tenant: string

      The tenant DID to route the given message to.

    Returns Promise<undefined | GenericMessageReply>

    GenericMessageReply if the message has an integrity error, otherwise undefined.