Add UI warn messages.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -812,6 +812,11 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
ResetUi();
SetSuccessMessage(successMessage);
+
+ if (KeyManager.IsCompatibilityPasswordUsed)
+ {
+ WarningMessage = Constants.CompatibilityPasswordWarnMessage;
+ }
}
catch (Exception ex)
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
@@ -62,6 +62,11 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
var secret = KeyManager.GetMasterExtKey(Password);
Password = "";
+ if (KeyManager.IsCompatibilityPasswordUsed)
+ {
+ SetWarningMessage(Constants.CompatibilityPasswordWarnMessage);
+ }
+
string master = secret.GetWif(Global.Network).ToWif();
string account = secret.Derive(KeyManager.AccountKeyPath).GetWif(Global.Network).ToWif();
string masterZ = secret.ToZPrv(Global.Network);

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -601,7 +601,13 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
{
if (keyManager.TestPassword(password))
{
- SetSuccessMessage("Correct password.");
+ SuccessMessage = "Correct password.";
+ if (keyManager.IsCompatibilityPasswordUsed)
+ {
+ WarningMessage = Constants.CompatibilityPasswordWarnMessage;
+ ValidationMessage = "";
+ }
+
keyManager.SetPasswordVerified();
}
else

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -95,5 +95,7 @@ namespace WalletWasabi.Helpers
public const int DefaultRegTestBitcoinCoreRpcPort = 18443;
public const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
+
+ public const string CompatibilityPasswordWarnMessage = "Compatibility password used! Please consider generating a new wallet to ensure recoverability!";
}
}

MODIFY
WalletWasabi/KeyManagement/KeyManager.cs
WalletWasabi/KeyManagement/KeyManager.cs
@@ -583,7 +583,7 @@ namespace WalletWasabi.KeyManagement
if (IsCompatibilityPasswordUsed)
{
- Logger.LogError<KeyManager>($"Compatibility password used! Please consider to generate a new wallet to ensure recovery of the wallet!");
+ Logger.LogError<KeyManager>(Constants.CompatibilityPasswordWarnMessage);
}
return extKey;
}

Add UI warn messages.