Skip to content

Commit

Permalink
Deprecate unused CryptoCallbacks (#4376)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Aug 23, 2024
1 parent 802b996 commit 3f74b9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/crypto-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,17 +809,22 @@ 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,
requestId: string,
secretName: string,
deviceTrust: DeviceVerificationStatus,
) => Promise<string | undefined>;

/** @deprecated: unused with the Rust crypto stack. */
getDehydrationKey?: (
keyInfo: SecretStorageKeyDescription,
checkFunc: (key: Uint8Array) => void,
) => Promise<Uint8Array>;

getBackupKey?: () => Promise<Uint8Array>;
}

Expand Down

0 comments on commit 3f74b9a

Please sign in to comment.