cake_wallet/lib/entities/secret_store_key.dart

27 lines
567 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
enum SecretStoreKey { moneroWalletPassword, pinCodePassword }
const moneroWalletPassword = "MONERO_WALLET_PASSWORD";
const pinCodePassword = "PIN_CODE_PASSWORD";
String generateStoreKeyFor({SecretStoreKey key, String walletName = "",}) {
var _key = "";
switch (key) {
case SecretStoreKey.moneroWalletPassword:
{
_key = moneroWalletPassword + "_" + walletName.toUpperCase();
}
break;
case SecretStoreKey.pinCodePassword:
{
_key = pinCodePassword;
}
break;
default:
{}
}
return _key;
}