2019-06-04 20:41:30 +02:00
---
allOf :
- $ref : core-event-schema/event.yaml
description : |-
2021-01-29 01:00:39 +01:00
Begins a SAS key verification process using the `m.sas.v1` method. Typically sent as a [to-device](/client-server-api/#send-to-device-messaging) event.
2019-06-04 20:41:30 +02:00
properties :
content :
properties :
from_device :
type : string
description : |-
The device ID which is initiating the process.
transaction_id :
type : string
description : |-
An opaque identifier for the verification process. Must be unique
with respect to the devices involved. Must be the same as the
2021-01-27 21:14:31 +01:00
`transaction_id` given in the `m.key.verification.request`
2019-06-04 20:41:30 +02:00
if this process is originating from a request.
method :
type : string
enum : [ "m.sas.v1" ]
description : |-
2019-06-15 01:05:25 +02:00
The verification method to use.
2019-06-04 20:41:30 +02:00
key_agreement_protocols :
type : array
description : |-
2020-07-21 22:19:53 +02:00
The key agreement protocols the sending device understands. Should
2021-01-27 21:14:31 +01:00
include at least `curve25519-hkdf-sha256`.
2019-06-04 20:41:30 +02:00
items :
type : string
hashes :
type : array
description : |-
The hash methods the sending device understands. Must include at least
2021-01-27 21:14:31 +01:00
`sha256`.
2019-06-04 20:41:30 +02:00
items :
type : string
message_authentication_codes :
type : array
description : |-
The message authentication codes that the sending device understands.
2021-01-27 21:14:31 +01:00
Must include at least `hkdf-hmac-sha256`.
2019-06-04 20:41:30 +02:00
items :
type : string
short_authentication_string :
type : array
description : |-
The SAS methods the sending device (and the sending device's user)
2021-01-27 21:14:31 +01:00
understands. Must include at least `decimal`. Optionally can include
`emoji`.
2019-06-04 20:41:30 +02:00
items :
type : string
enum : [ "decimal" , "emoji" ]
required :
- from_device
- transaction_id
- method
- key_agreement_protocols
- hashes
- message_authentication_codes
- short_authentication_string
type : object
type :
enum :
- m.key.verification.start
type : string
type : object