Interface ICryptoCallbacks

Hierarchy

  • ICryptoCallbacks

Properties

cacheSecretStorageKey?: ((keyId: string, keyInfo: ISecretStorageKeyInfo, key: Uint8Array) => void)

Type declaration

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

Type declaration

    • (): Promise<Uint8Array>
    • Returns Promise<Uint8Array>

getCrossSigningKey?: ((keyType: string, pubKey: string) => Promise<null | Uint8Array>)

Type declaration

    • (keyType: string, pubKey: string): Promise<null | Uint8Array>
    • Parameters

      • keyType: string
      • pubKey: string

      Returns Promise<null | Uint8Array>

getDehydrationKey?: ((keyInfo: ISecretStorageKeyInfo, checkFunc: ((key: Uint8Array) => void)) => Promise<Uint8Array>)

Type declaration

    • (keyInfo: ISecretStorageKeyInfo, checkFunc: ((key: Uint8Array) => void)): Promise<Uint8Array>
    • Parameters

      • keyInfo: ISecretStorageKeyInfo
      • checkFunc: ((key: Uint8Array) => void)
          • (key: Uint8Array): void
          • Parameters

            • key: Uint8Array

            Returns void

      Returns Promise<Uint8Array>

getSecretStorageKey?: ((keys: {
    keys: Record<string, ISecretStorageKeyInfo>;
}, name: string) => Promise<null | [string, Uint8Array]>)

Type declaration

onSecretRequested?: ((userId: string, deviceId: string, requestId: string, secretName: string, deviceTrust: DeviceTrustLevel) => Promise<string>)

Type declaration

    • (userId: string, deviceId: string, requestId: string, secretName: string, deviceTrust: DeviceTrustLevel): Promise<string>
    • Parameters

      • userId: string
      • deviceId: string
      • requestId: string
      • secretName: string
      • deviceTrust: DeviceTrustLevel

      Returns Promise<string>

saveCrossSigningKeys?: ((keys: Record<string, Uint8Array>) => void)

Type declaration

    • (keys: Record<string, Uint8Array>): void
    • Parameters

      • keys: Record<string, Uint8Array>

      Returns void

shouldUpgradeDeviceVerifications?: ((users: Record<string, any>) => Promise<string[]>)

Type declaration

    • (users: Record<string, any>): Promise<string[]>
    • Parameters

      • users: Record<string, any>

      Returns Promise<string[]>

Generated using TypeDoc