ImportEncryptedKeyResult
ImportEncryptedKeyResult
Success-or-failure result returned by the public importEncrypted* key functions.
On failure, code is 'invalid_password' when decryption failed (wrong password or corrupted ciphertext) and 'malformed' for everything else.
ts
type ImportEncryptedKeyResult<T> = {
readonly ok: true;
readonly value: T
} | ErrorResult<ImportEncryptedKeyErrorCode, Record<never, never>, ImportEncryptedKeyFailure>