From e1b38bb20268a755ce63efb3e8894f983eedc02e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 7 May 2020 11:56:21 +0300 Subject: Add command to get e2ee fingerprint --- interface/matrix.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'interface') 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 } -- cgit v1.2.3