Module: olmlib Utilities common to olm encryption algorithms

Members

olmlib Utilities common to olm encryption algorithmsmodule:.MEGOLM_ALGORITHM

matrix algorithm tag for megolm
Source:

olmlib Utilities common to olm encryption algorithmsmodule:.OLM_ALGORITHM

matrix algorithm tag for olm
Source:

Methods

olmlib Utilities common to olm encryption algorithmsmodule:.encryptMessageForDevice(resultsObject, ourUserId, ourDeviceId, olmDevice, recipientUserId, recipientDevice, payloadFields)

Encrypt an event payload for an Olm device
Parameters:
Name Type Description
resultsObject Object.<string, string> The `ciphertext` property of the m.room.encrypted event to which to add our result
ourUserId string
ourDeviceId string
olmDevice module:crypto/OlmDevice olm.js wrapper
recipientUserId string
recipientDevice module:crypto/deviceinfo
payloadFields object fields to include in the encrypted payload
Source: