@@ -69,12 +69,18 @@ export interface CryptoStore {
69
69
70
70
// Olm Account
71
71
getAccount ( txn : unknown , func : ( accountPickle : string | null ) => void ) : void ;
72
+ storeAccount ( txn : unknown , accountPickle : string ) : void ;
72
73
getCrossSigningKeys ( txn : unknown , func : ( keys : Record < string , CrossSigningKeyInfo > | null ) => void ) : void ;
73
74
getSecretStorePrivateKey < K extends keyof SecretStorePrivateKeys > (
74
75
txn : unknown ,
75
76
func : ( key : SecretStorePrivateKeys [ K ] | null ) => void ,
76
77
type : K ,
77
78
) : void ;
79
+ storeSecretStorePrivateKey < K extends keyof SecretStorePrivateKeys > (
80
+ txn : unknown ,
81
+ type : K ,
82
+ key : SecretStorePrivateKeys [ K ] ,
83
+ ) : void ;
78
84
79
85
// Olm Sessions
80
86
countEndToEndSessions ( txn : unknown , func : ( count : number ) => void ) : void ;
@@ -90,6 +96,8 @@ export interface CryptoStore {
90
96
func : ( sessions : { [ sessionId : string ] : ISessionInfo } ) => void ,
91
97
) : void ;
92
98
99
+ storeEndToEndSession ( deviceKey : string , sessionId : string , sessionInfo : ISessionInfo , txn : unknown ) : void ;
100
+
93
101
/**
94
102
* Get a batch of end-to-end sessions from the database.
95
103
*
@@ -114,6 +122,12 @@ export interface CryptoStore {
114
122
txn : unknown ,
115
123
func : ( groupSession : InboundGroupSessionData | null , groupSessionWithheld : IWithheld | null ) => void ,
116
124
) : void ;
125
+ storeEndToEndInboundGroupSession (
126
+ senderCurve25519Key : string ,
127
+ sessionId : string ,
128
+ sessionData : InboundGroupSessionData ,
129
+ txn : unknown ,
130
+ ) : void ;
117
131
118
132
/**
119
133
* Count the number of Megolm sessions in the database.
0 commit comments