This commit is contained in:
M
2021-01-13 18:43:34 +02:00
parent c20d57e9a9
commit c09a41b090
18 changed files with 826 additions and 24 deletions
+13 -3
View File
@@ -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;
}
}