PlaintextMessage

fmgp.did.comm.PlaintextMessage
See thePlaintextMessage companion object
trait PlaintextMessage extends Message

Attributes

Companion
object
Graph
Supertypes
trait Message
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def `type`: PIURI

type or piuri is a URI that associates the body of a plaintext message with a published and versioned schema

type or piuri is a URI that associates the body of a plaintext message with a published and versioned schema

Attributes

def ack: Option[Seq[MsgID]]

application-level data inside a JSON

application-level data inside a JSON

This attribute MUST be present, even if empty. It MUST be a JSON object conforming to RFC 7159.

Attributes

def from: Option[FROM]

OPTIONAL when the message is to be encrypted via anoncrypt;

OPTIONAL when the message is to be encrypted via anoncrypt;

TODO REQUIRED when the message is encrypted via authcrypt

Attributes

DIDComm defines a specific header to handle DID rotation. This header is called from_prior and can be used in any message sent to the other party. That message must include the from_prior header that is a standard JWT token conformed with:

DIDComm defines a specific header to handle DID rotation. This header is called from_prior and can be used in any message sent to the other party. That message must include the from_prior header that is a standard JWT token conformed with:

  • Header:
    • typ: jwt
    • alg: verification algorithm such as EdDSA
    • crv: curve name
    • kid: key id from previous DID that is used in the signature of this JWT
  • Payload:
    • sub: the new DID
    • iss: the previous DID
    • iat: datetime in seconds
  • Signature: from the previous DID and key defined in the kid

For more information @see https://didcomm.org/book/v2/didrotation

Attributes

def id: MsgID

MUST be unique to the sender

MUST be unique to the sender

Attributes

def l10n: Option[L10n]

Extension Return Route Header

Extension Return Route Header

For HTTP transports, the presence of this message decorator indicates that the receiving agent MAY hold onto the connection and use it to return messages as designated. HTTP transports will only be able to receive at most one message at a time. Websocket transports are capable of receiving multiple messages over a single connection.

Attributes

See also

https://github.com/decentralized-identity/didcomm-messaging/blob/main/extensions/return_route/main.md

  • none: Default. No messages should be returned over this connection. If return_route is omitted, this is the default value.
  • all: Send all messages for this DID over the connection.
  • thread: Send all messages matching the DID and thread specified in the return_route_thread attribute.
    • TODO what is return_route_thread?
def thid: Option[MsgID]

Thread identifier

Thread identifier

Attributes

def to: Option[Set[TO]]

Inherited methods

def sha256: String

Attributes

Inherited from:
Message