From 3f74b9a0cc65d22c10057567f66cd5c588fc2a8f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:00:27 +0100 Subject: [PATCH] Deprecate unused `CryptoCallbacks` (#4376) --- src/crypto-api/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/crypto-api/index.ts b/src/crypto-api/index.ts index b3a05172a1b..0c3e6cdb842 100644 --- a/src/crypto-api/index.ts +++ b/src/crypto-api/index.ts @@ -809,6 +809,8 @@ export interface CryptoCallbacks extends SecretStorageCallbacks { * @param key - private key to store */ cacheSecretStorageKey?: (keyId: string, keyInfo: SecretStorageKeyDescription, key: Uint8Array) => void; + + /** @deprecated: unused with the Rust crypto stack. */ onSecretRequested?: ( userId: string, deviceId: string, @@ -816,10 +818,13 @@ export interface CryptoCallbacks extends SecretStorageCallbacks { secretName: string, deviceTrust: DeviceVerificationStatus, ) => Promise; + + /** @deprecated: unused with the Rust crypto stack. */ getDehydrationKey?: ( keyInfo: SecretStorageKeyDescription, checkFunc: (key: Uint8Array) => void, ) => Promise; + getBackupKey?: () => Promise; }