Interface ICreateSecretStorageOpts

Hierarchy

  • ICreateSecretStorageOpts

Properties

createSecretStorageKey?: (() => Promise<IRecoveryKey>)

Type declaration

    • (): Promise<IRecoveryKey>
    • Function called to await a secret storage key creation flow.

      Returns

      Promise resolving to an object with public key metadata, encoded private recovery key which should be disposed of after displaying to the user, and raw private key to avoid round tripping if needed.

      Returns Promise<IRecoveryKey>

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

Type declaration

    • (): Promise<Uint8Array>
    • Function called to get the user's current key backup passphrase. Should return a promise that resolves with a Uint8Array containing the key, or rejects if the key cannot be obtained.

      Returns Promise<Uint8Array>

keyBackupInfo?: IKeyBackupInfo

The current key backup object. If passed, the passphrase and recovery key from this backup will be used.

setupNewKeyBackup?: boolean

If true, a new key backup version will be created and the private key stored in the new SSSS store. Ignored if keyBackupInfo is supplied.

setupNewSecretStorage?: boolean

Reset even if keys already exist.

Generated using TypeDoc