Struct containing information on how a room event was decrypted.

Properties

sender: UserId

The user ID of the sender of the event.

Note this is untrusted data unless shieldState shows that the sender is verified.

senderCurve25519Key: string

The base64-encoded public Curve25519 key of the device that created the megolm decryption key originally.

Accessors

  • get senderClaimedEd25519Key(): undefined | string

    The signing Ed25519 key that created the megolm key that was used to decrypt this session.

    Returns undefined | string

  • set senderClaimedEd25519Key(value: undefined | null | string): void

    The signing Ed25519 key that created the megolm key that was used to decrypt this session.

    Parameters

    • value: undefined | null | string

    Returns void

  • get senderDevice(): undefined | DeviceId

    The device ID of the device that sent us the event.

    Note this is untrusted data unless shieldState shows that the sender is verified.

    Returns undefined | DeviceId

  • set senderDevice(value: undefined | null | DeviceId): void

    The device ID of the device that sent us the event.

    Note this is untrusted data unless shieldState shows that the sender is verified.

    Parameters

    Returns void

Methods

  • Returns void

  • The verification state of the device that sent us the event. Note this is the state of the device at the time of decryption. It may change in the future if a device gets verified or deleted.

    Arguments

    • strict - whether to enable "strict mode" verification. In non-strict mode, unverified users are given no shield, and keys that have been forwarded or restored from an insecure backup are given a grey shield (both get a red shield in strict mode).

    Parameters

    • strict: boolean

    Returns ShieldState