1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Tune crypto types

This commit is contained in:
J. Ryan Stinnett
2020-10-12 11:01:00 +01:00
parent e9590e9093
commit b060c5af38

View File

@@ -148,10 +148,10 @@ export interface ICreateClientOpts {
export interface ICryptoCallbacks { export interface ICryptoCallbacks {
getCrossSigningKey?: (keyType: string, pubKey: Uint8Array) => Promise<Uint8Array>; getCrossSigningKey?: (keyType: string, pubKey: Uint8Array) => Promise<Uint8Array>;
saveCrossSigningKeys?: (keys: Record<string, Uint8Array>) => unknown; saveCrossSigningKeys?: (keys: Record<string, Uint8Array>) => void;
shouldUpgradeDeviceVerifications?: ( shouldUpgradeDeviceVerifications?: (
users: Record<string, any> users: Record<string, any>
) => Promise<Array<string>>; ) => Promise<string[]>;
getSecretStorageKey?: ( getSecretStorageKey?: (
keys: {keys: Record<string, ISecretStorageKeyInfo>}, name: string keys: {keys: Record<string, ISecretStorageKeyInfo>}, name: string
) => Promise<[string, Uint8Array] | null>; ) => Promise<[string, Uint8Array] | null>;