aries / net.globalid.aries.message.envelope / EnvelopeService / packMessage

packMessage

fun packMessage(wallet: Wallet, outboundMessage: OutboundMessage): Single<OutboundPackage>

Encrypts an agent message from OutboundMessage

Parameters

wallet - is the agent's wallet

outboundMessage - is the unencrypted agent message

Return
OutboundPackage is the encrypted message for outbound transport with endpoint URI.