Skip to content

Commit

Permalink
crypto/verification: add QR code verification methods
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jan 9, 2024
1 parent 25bc36b commit 9d0e916
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion event/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import (

type VerificationMethod string

const VerificationMethodSAS VerificationMethod = "m.sas.v1"
const (
VerificationMethodSAS VerificationMethod = "m.sas.v1"
VerificationMethodQRCodeShow VerificationMethod = "m.qr_code.show.v1"
VerificationMethodQRCodeScan VerificationMethod = "m.qr_code.scan.v1"
VerificationMethodReciprocate VerificationMethod = "m.reciprocate.v1"
)

// VerificationRequestEventContent represents the content of a m.key.verification.request to_device event.
// https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationrequest
Expand Down

0 comments on commit 9d0e916

Please sign in to comment.