improve handling of invalid bip322 signatures

This commit is contained in:
Craig Raw 2023-07-18 12:25:39 +02:00
parent b0883f034b
commit 7d7967ec00
2 changed files with 2 additions and 2 deletions

2
drongo

@ -1 +1 @@
Subproject commit 38b04b8e0b802f6cd43b4e88730d4d3ed31227fc
Subproject commit e15eb7c7f36756c35577d61bfd793b2a2502cf93

View file

@ -392,7 +392,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
}
}
if(!verified && Bip322.isSupported(getAddress().getScriptType())) {
if(!verified && Bip322.isSupported(getAddress().getScriptType()) && !signature.getText().trim().isEmpty()) {
try {
verified = Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
if(verified) {