fmgp.did.comm.protocol.routing2

Members list

Type members

Classlikes

sealed trait ForwardMessage

The Forward Message is sent by the sender to the mediator to forward (the data) to a recipient.

The Forward Message is sent by the sender to the mediator to forward (the data) to a recipient.

{
 "type": "https://didcomm.org/routing/2.0/forward",
 "id": "abc123xyz456",
 "to": ["did:example:mediator"],
 "expires_time": 1516385931,
 "body":{ "next": "did:foo:1234abcd"},
 "attachments": [] //The payload(s) to be forwarded
}

Value parameters

lang

See [https://identity.foundation/didcomm-messaging/spec/#routing-protocol-20]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ForwardMessageBase64(id: MsgID, to: Set[TO], from: Option[FROM], next: DIDSubject, expires_time: Option[UTCEpoch], msg: SignedMessage | EncryptedMessage) extends ForwardMessage

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ForwardMessageJson(id: MsgID, to: Set[TO], from: Option[FROM], next: DIDSubject, expires_time: Option[UTCEpoch], msg: SignedMessage | EncryptedMessage) extends ForwardMessage

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Extensions

Extensions

extension (msg: PlaintextMessage)
def toForwardMessage: Either[String, ForwardMessage]
extension (msg: SignedMessage | EncryptedMessage)
def toAttachmentJson: Either[String, Attachment]