Skip to content

Commit

Permalink
Deprecate unused callback in CryptoCallbacks (#4501)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros authored Nov 6, 2024
1 parent fbbdb6e commit 30b1894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crypto-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Uint8Array | null>;
/** @deprecated: unused with the Rust crypto stack. */
saveCrossSigningKeys?: (keys: Record<string, Uint8Array>) => void;
/** @deprecated: unused with the Rust crypto stack. */
shouldUpgradeDeviceVerifications?: (users: Record<string, any>) => Promise<string[]>;
/**
* Called by {@link CryptoApi#bootstrapSecretStorage}
Expand All @@ -962,6 +965,7 @@ export interface CryptoCallbacks extends SecretStorageCallbacks {
checkFunc: (key: Uint8Array) => void,
) => Promise<Uint8Array>;

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

Expand Down

0 comments on commit 30b1894

Please sign in to comment.