Update `Bip322SignatureVerification` test
MODIFY
WalletWasabi/Crypto/Bip322Signature.cs
WalletWasabi/Crypto/Bip322Signature.cs
@@ -62,6 +62,8 @@ namespace WalletWasabi.Crypto
return false;
}
+ try
+ {
if (PayToWitPubKeyHashTemplate.Instance.ExtractWitScriptParameters(Witness) is not { } witnessParameters)
{
return false;
@@ -74,5 +76,10 @@ namespace WalletWasabi.Crypto
return witnessParameters.PublicKey.Verify(hash, witnessParameters.TransactionSignature.Signature);
}
+ catch (FormatException)
+ {
+ return false;
+ }
+ }
}
}

Update `Bip322SignatureVerification` test