mtx::events::msg::KeyVerificationAccept struct

Implements the m.key.verification.accept event.

Public variables

std::optional<std::string> transaction_id
when the method chosen only verifies one user's key. This field will never be present if the method verifies keys both ways.
VerificationMethods method
The verification method to use. Must be 'm.sas.v1'.
std::string key_agreement_protocol
The key agreement protocol the device is choosing to use, out of the options in the m.key.verification.start message.
std::string hash
The hash method the device is choosing to use, out of the options in the m.key.verification.start message.
std::string message_authentication_code
The message authentication code the device is choosing to use, out of the options in the m.key.verification.start message.
std::vector<SASMethods> short_authentication_string
The SAS methods both devices involed in the verification process understand. Must be a subset of the options in the m.key.verification.start message. One of: ["decimal", "emoji"].
std::string commitment
The hash (encoded as unpadded base64) of the concatenation of the device's ephemeral public key (encoded as unpadded base64) and the canonical JSON representation of the m.key.verification.start message.
common::Relations relations
this is used for relating this message with previously sent key.verification.request will be used only for room-verification msgs where this is used in place of txnid