Class: MegolmDecryption

crypto/algorithms/megolm~MegolmDecryption

new MegolmDecryption(params)

Megolm decryption implementation
Parameters:
Name Type Description
params object parameters, as per module:crypto/algorithms/base.DecryptionAlgorithm
Source:

Extends

Methods

decryptEvent(event) → {null|module:crypto.DecryptionResult}

Decrypt an event
Parameters:
Name Type Description
event object raw event
Overrides:
Source:
Throws:
if there is a problem decrypting the event
Type
module:crypto/algorithms/base.DecryptionError
Returns:

onRoomKeyEvent(event)

Handle a key event
Parameters:
Name Type Description
event module:models/event.MatrixEvent key event
Overrides:
Source: