From 30b1894f37109b6b3462b06fbcd9712bad8d4e2d Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 6 Nov 2024 16:38:15 +0100 Subject: [PATCH] Deprecate unused callback in `CryptoCallbacks` (#4501) --- src/crypto-api/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto-api/index.ts b/src/crypto-api/index.ts index 46fe7528a..1713bf1a8 100644 --- a/src/crypto-api/index.ts +++ b/src/crypto-api/index.ts @@ -936,8 +936,11 @@ export interface CrossSigningStatus { * Crypto callbacks provided by the application */ export interface CryptoCallbacks extends SecretStorageCallbacks { + /** @deprecated: unused with the Rust crypto stack. */ getCrossSigningKey?: (keyType: string, pubKey: string) => Promise; + /** @deprecated: unused with the Rust crypto stack. */ saveCrossSigningKeys?: (keys: Record) => void; + /** @deprecated: unused with the Rust crypto stack. */ shouldUpgradeDeviceVerifications?: (users: Record) => Promise; /** * Called by {@link CryptoApi#bootstrapSecretStorage} @@ -962,6 +965,7 @@ export interface CryptoCallbacks extends SecretStorageCallbacks { checkFunc: (key: Uint8Array) => void, ) => Promise; + /** @deprecated: unused with the Rust crypto stack. */ getBackupKey?: () => Promise; }