Interface ICryptoCallbacks

Hierarchy

  • ICryptoCallbacks

Properties

cacheSecretStorageKey?: ((keyId: string, keyInfo: SecretStorageKeyDescriptionAesV1, 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: SecretStorageKeyDescriptionAesV1, checkFunc: ((key: Uint8Array) => void)) => Promise<Uint8Array>)

Type declaration

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

Type declaration

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

Type declaration

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

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

      Returns Promise<undefined | 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