parseMessage

fun parseMessage(payload: String): Message

Takes an existing Message in the form of a json string and parses it into a Message object. Validates object structure and performs an integrity check using the message signature.

Return

The json string parsed into a concrete Message implementation.

Parameters

payload

The message as a json string.

Throws

if the payload signature verification fails.