-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3149 from uhoreg/qr_codes_spec
Add spec for verification by QR codes.
- Loading branch information
Showing
3 changed files
with
176 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add key verification method using QR codes ([MSC1544](https://github.com/matrix-org/matrix-doc/pull/1544)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
data/event-schemas/schema/m.key.verification.start$m.reciprocate.v1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
allOf: | ||
- $ref: core-event-schema/event.yaml | ||
|
||
description: |- | ||
Begins a key verification process using the `m.reciprocate.v1` method, after | ||
scanning a QR code. | ||
properties: | ||
content: | ||
properties: | ||
from_device: | ||
type: string | ||
description: |- | ||
The device ID which is initiating the process. | ||
transaction_id: | ||
type: string | ||
description: |- | ||
Required when sent as a to-device message. An opaque identifier for | ||
the verification process. Must be unique with respect to the devices | ||
involved. Must be the same as the `transaction_id` given in the | ||
`m.key.verification.request` if this process is originating from a | ||
request. | ||
method: | ||
type: string | ||
enum: ["m.reciprocate.v1"] | ||
description: |- | ||
The verification method to use. | ||
secret: | ||
type: string | ||
description: |- | ||
The shared secret from the QR code, encoded using unpadded base64. | ||
m.relates_to: | ||
allOf: | ||
- $ref: m.key.verification.m.relates_to.yaml | ||
required: | ||
- from_device | ||
- method | ||
- secret | ||
type: object | ||
type: | ||
enum: | ||
- m.key.verification.start | ||
type: string | ||
type: object |