diff --git a/src/crypto/store/base.ts b/src/crypto/store/base.ts index d08d0f016f..2ba42023c1 100644 --- a/src/crypto/store/base.ts +++ b/src/crypto/store/base.ts @@ -69,12 +69,18 @@ export interface CryptoStore { // Olm Account getAccount(txn: unknown, func: (accountPickle: string | null) => void): void; + storeAccount(txn: unknown, accountPickle: string): void; getCrossSigningKeys(txn: unknown, func: (keys: Record | null) => void): void; getSecretStorePrivateKey( txn: unknown, func: (key: SecretStorePrivateKeys[K] | null) => void, type: K, ): void; + storeSecretStorePrivateKey( + txn: unknown, + type: K, + key: SecretStorePrivateKeys[K], + ): void; // Olm Sessions countEndToEndSessions(txn: unknown, func: (count: number) => void): void; @@ -90,6 +96,8 @@ export interface CryptoStore { func: (sessions: { [sessionId: string]: ISessionInfo }) => void, ): void; + storeEndToEndSession(deviceKey: string, sessionId: string, sessionInfo: ISessionInfo, txn: unknown): void; + /** * Get a batch of end-to-end sessions from the database. * @@ -114,6 +122,12 @@ export interface CryptoStore { txn: unknown, func: (groupSession: InboundGroupSessionData | null, groupSessionWithheld: IWithheld | null) => void, ): void; + storeEndToEndInboundGroupSession( + senderCurve25519Key: string, + sessionId: string, + sessionData: InboundGroupSessionData, + txn: unknown, + ): void; /** * Count the number of Megolm sessions in the database.