Class VerificationBase<Events, Arguments>

Avoid referencing this class directly; instead use Crypto.Verifier.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

baseApis: MatrixClient

base matrix api interface

the verification channel to send verification messages over. TODO: Channel types

deviceId: string

the device ID that is being verified

doVerification?: (() => Promise<void>)
expectedEvent?: string

the key verification request object related to this verification, if any

startEvent: null | MatrixEvent

the m.key.verification.start event that initiated this verification, if any

userId: string

the user ID that is being verified

Accessors

  • get hasBeenCancelled(): boolean
  • Returns true if the verification has been cancelled, either by us or the other side.

    Returns boolean

Methods

  • Adds the listener function to the end of the listeners array for the event named event.

    No checks are made to see if the listener has already been added. Multiple calls passing the same combination of event and listener will result in the listener being added, and called, multiple times.

    By default, event listeners are invoked in the order they are added. The prependListener method can be used as an alternative to add the event listener to the beginning of the listeners array.

    Type Parameters

    Parameters

    Returns this

    a reference to the EventEmitter, so that calls can be chained.