aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-07 11:56:21 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-07 11:56:21 +0300
commite1b38bb20268a755ce63efb3e8894f983eedc02e (patch)
tree53afb7354ac1417a8d79fd14d723131c52427c8a /interface
parent2b07b80e64e0c1ebe1673a5a534398f1fb8ad086 (diff)
Add command to get e2ee fingerprint
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index f4f46ef..122757f 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -64,4 +64,17 @@ type MatrixContainer interface {
DownloadToDisk(uri id.ContentURI, file *attachment.EncryptedFile, target string) (string, error)
GetDownloadURL(uri id.ContentURI) string
GetCachePath(uri id.ContentURI) string
+
+ Crypto() Crypto
+}
+
+type Crypto interface {
+ Load() error
+ FlushStore() error
+ ProcessSyncResponse(resp *mautrix.RespSync, since string)
+ HandleMemberEvent(*event.Event)
+ DecryptMegolmEvent(*event.Event) (*event.Event, error)
+ EncryptMegolmEvent(id.RoomID, event.Type, event.Content) (*event.EncryptedEventContent, error)
+ ShareGroupSession(id.RoomID, []id.UserID) error
+ Fingerprint() string
}