@@ -20,7 +20,6 @@ import * as RustSdkCryptoJs from "@matrix-org/matrix-sdk-crypto-wasm";
20
20
import type { IEventDecryptionResult , IMegolmSessionData } from "../@types/crypto.ts" ;
21
21
import { KnownMembership } from "../@types/membership.ts" ;
22
22
import type { IDeviceLists , IToDeviceEvent } from "../sync-accumulator.ts" ;
23
- import type { IEncryptedEventInfo } from "../crypto/api.ts" ;
24
23
import type { ToDevicePayload , ToDeviceBatch } from "../models/ToDeviceMessage.ts" ;
25
24
import { MatrixEvent , MatrixEventEvent } from "../models/event.ts" ;
26
25
import { Room } from "../models/room.ts" ;
@@ -269,64 +268,6 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
269
268
return await this . eventDecryptor . attemptEventDecryption ( event , this . deviceIsolationMode ) ;
270
269
}
271
270
272
- /**
273
- * Implementation of (deprecated) {@link MatrixClient#getEventEncryptionInfo}.
274
- *
275
- * @param event - event to inspect
276
- */
277
- public getEventEncryptionInfo ( event : MatrixEvent ) : IEncryptedEventInfo {
278
- const ret : Partial < IEncryptedEventInfo > = { } ;
279
-
280
- ret . senderKey = event . getSenderKey ( ) ?? undefined ;
281
- ret . algorithm = event . getWireContent ( ) . algorithm ;
282
-
283
- if ( ! ret . senderKey || ! ret . algorithm ) {
284
- ret . encrypted = false ;
285
- return ret as IEncryptedEventInfo ;
286
- }
287
- ret . encrypted = true ;
288
- ret . authenticated = true ;
289
- ret . mismatchedSender = true ;
290
- return ret as IEncryptedEventInfo ;
291
- }
292
-
293
- /**
294
- * Implementation of {@link CryptoBackend#checkUserTrust}.
295
- *
296
- * Stub for backwards compatibility.
297
- *
298
- */
299
- public checkUserTrust ( userId : string ) : UserVerificationStatus {
300
- return new UserVerificationStatus ( false , false , false ) ;
301
- }
302
-
303
- /**
304
- * Get the cross signing information for a given user.
305
- *
306
- * The cross-signing API is currently UNSTABLE and may change without notice.
307
- *
308
- * @param userId - the user ID to get the cross-signing info for.
309
- *
310
- * @returns the cross signing information for the user.
311
- */
312
- public getStoredCrossSigningForUser ( userId : string ) : null {
313
- // TODO
314
- return null ;
315
- }
316
-
317
- /**
318
- * This function is unneeded for the rust-crypto.
319
- * The cross signing key import and the device verification are done in {@link CryptoApi#bootstrapCrossSigning}
320
- *
321
- * The function is stub to keep the compatibility with the old crypto.
322
- * More information: https://github.com/vector-im/element-web/issues/25648
323
- *
324
- * Implementation of {@link CryptoBackend#checkOwnCrossSigningTrust}
325
- */
326
- public async checkOwnCrossSigningTrust ( ) : Promise < void > {
327
- return ;
328
- }
329
-
330
271
/**
331
272
* Implementation of {@link CryptoBackend#getBackupDecryptor}.
332
273
*/
0 commit comments