Message

sealed class Message

An abstract class representing the structure and common functionality available on all Messages.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Properties

Link copied to clipboard
abstract val data: MessageData
Link copied to clipboard
Link copied to clipboard
abstract var signature: String?
Link copied to clipboard
abstract val validNext: Set<MessageKind>

Functions

Link copied to clipboard
fun sign(did: <Error class: unknown class>)

Signs the Message using the specified BearerDid.

Link copied to clipboard
open override fun toString(): String

Uses Json to serialize the Message as a json string.

Link copied to clipboard
fun verify()

Verifies the signature of the data.