Update PasswordFinderHelper to use the new NBitcoin's `TryGetKey` method.
MODIFY
WalletWasabi/Wallets/PasswordFinder/PasswordFinderHelper.cs
WalletWasabi/Wallets/PasswordFinder/PasswordFinderHelper.cs
@@ -36,15 +36,11 @@ public static class PasswordFinderHelper
{
cancellationToken.ThrowIfCancellationRequested();
- try
+ if (encryptedSecret.TryGetKey(pwd, out _))
{
- encryptedSecret.GetKey(pwd);
foundPassword = pwd;
return true;
}
- catch (SecurityException)
- {
- }
attempts++;
var percentage = (double)attempts / maxNumberAttempts * 100;

Update PasswordFinderHelper to use the new NBitcoin's `TryGetKey` method.