mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-03 12:24:19 +01:00
Backup.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
enum SecretStoreKey { moneroWalletPassword, pinCodePassword }
|
||||
enum SecretStoreKey { moneroWalletPassword, pinCodePassword, backupPassword }
|
||||
|
||||
const moneroWalletPassword = "MONERO_WALLET_PASSWORD";
|
||||
const pinCodePassword = "PIN_CODE_PASSWORD";
|
||||
const backupPassword = "BACKUP_CODE_PASSWORD";
|
||||
|
||||
String generateStoreKeyFor({SecretStoreKey key, String walletName = "",}) {
|
||||
String generateStoreKeyFor({
|
||||
SecretStoreKey key,
|
||||
String walletName = "",
|
||||
}) {
|
||||
var _key = "";
|
||||
|
||||
switch (key) {
|
||||
@@ -19,9 +23,15 @@ String generateStoreKeyFor({SecretStoreKey key, String walletName = "",}) {
|
||||
}
|
||||
break;
|
||||
|
||||
case SecretStoreKey.backupPassword:
|
||||
{
|
||||
_key = backupPassword;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
{}
|
||||
}
|
||||
|
||||
return _key;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user