From 7d7967ec002a45b95c18d76d56989733e93ec1d8 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 18 Jul 2023 12:25:39 +0200 Subject: [PATCH] improve handling of invalid bip322 signatures --- drongo | 2 +- .../com/sparrowwallet/sparrow/control/MessageSignDialog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drongo b/drongo index 38b04b8e..e15eb7c7 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 38b04b8e0b802f6cd43b4e88730d4d3ed31227fc +Subproject commit e15eb7c7f36756c35577d61bfd793b2a2502cf93 diff --git a/src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java index 1a851f2d..9853abc5 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java @@ -392,7 +392,7 @@ public class MessageSignDialog extends Dialog { } } - 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) {