matrix_sdk::encryption

Module verification

Source
Available on crate feature e2e-encryption only.
Expand description

Interactive verification for E2EE capable users and devices in Matrix.

The SDK supports interactive verification of devices and users, this module contains types that model and support different verification flows.

A verification flow usually starts its life as a VerificationRequest, the request can then be accepted, or it needs to be accepted by the other side of the verification flow.

Once both sides have agreed to perform the verification, and the VerificationRequest::is_ready() method returns true, the verification can transition into one of the supported verification flows:

Structs§

  • Customize the accept-reply for a verification process
  • Struct containing the protocols that were agreed to be used for the SAS flow.
  • Information about the cancellation of a verification request or verification flow.
  • An emoji that is used for interactive verification using a short auth string.
  • The short auth string for the emoji method of SAS verification.
  • An object controlling QR code style key verification flows.
  • An object controlling the short auth string verification flow.
  • An object controlling the interactive verification flow.

Enums§

  • Error type describing errors that happen while QR data is being decoded.
  • Error type describing errors that happen while QR data is being encoded.
  • An enum representing the different modes for a QR verification code.
  • An Enum describing the state the QrCode verification is in.
  • An Enum describing the state the SAS verification is in.
  • ScanErrorqrcode
    An error for the different failure modes that can happen during the validation of a scanned QR code.
  • An enum over the different verification types the SDK supports.
  • An Enum describing the state the verification request is in.

Functions§