Skip to content

Commit 30b1894

Browse files
authored
Deprecate unused callback in CryptoCallbacks (#4501)
1 parent fbbdb6e commit 30b1894

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crypto-api/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,11 @@ export interface CrossSigningStatus {
936936
* Crypto callbacks provided by the application
937937
*/
938938
export interface CryptoCallbacks extends SecretStorageCallbacks {
939+
/** @deprecated: unused with the Rust crypto stack. */
939940
getCrossSigningKey?: (keyType: string, pubKey: string) => Promise<Uint8Array | null>;
941+
/** @deprecated: unused with the Rust crypto stack. */
940942
saveCrossSigningKeys?: (keys: Record<string, Uint8Array>) => void;
943+
/** @deprecated: unused with the Rust crypto stack. */
941944
shouldUpgradeDeviceVerifications?: (users: Record<string, any>) => Promise<string[]>;
942945
/**
943946
* Called by {@link CryptoApi#bootstrapSecretStorage}
@@ -962,6 +965,7 @@ export interface CryptoCallbacks extends SecretStorageCallbacks {
962965
checkFunc: (key: Uint8Array) => void,
963966
) => Promise<Uint8Array>;
964967

968+
/** @deprecated: unused with the Rust crypto stack. */
965969
getBackupKey?: () => Promise<Uint8Array>;
966970
}
967971

0 commit comments

Comments
 (0)