This issue is to import the backup generated by this wallet.
The app should prompt the user to select a file from the device.
If the file is valid, we will parse it and import either the encrypted or unencrypted keys. This process should not import keys that are already in the wallet (obviously).
If the wallet is encrypted AND the backup is encrypted, we do a straight import of the encrypted values.
If the wallet is encrypted AND the backup is NOT, we prompt the user to provide their password or decrypt with spec and then re-encrypt after import.
If the wallet is NOT encrypted and the backup IS encrypted, we ask the user for the password or we get it from Spec and then import.
If the wallet is NOT encrypted and the backup isn't either, we do a simple import.
If the file is not valid, give them an error message.
This issue is to import the backup generated by this wallet.
The app should prompt the user to select a file from the device.
If the file is valid, we will parse it and import either the encrypted or unencrypted keys. This process should not import keys that are already in the wallet (obviously).
If the wallet is encrypted AND the backup is encrypted, we do a straight import of the encrypted values.
If the wallet is encrypted AND the backup is NOT, we prompt the user to provide their password or decrypt with spec and then re-encrypt after import.
If the wallet is NOT encrypted and the backup IS encrypted, we ask the user for the password or we get it from Spec and then import.
If the wallet is NOT encrypted and the backup isn't either, we do a simple import.
If the file is not valid, give them an error message.