mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
improve handling of invalid bip322 signatures
This commit is contained in:
parent
b0883f034b
commit
7d7967ec00
2 changed files with 2 additions and 2 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
|||
Subproject commit 38b04b8e0b802f6cd43b4e88730d4d3ed31227fc
|
||||
Subproject commit e15eb7c7f36756c35577d61bfd793b2a2502cf93
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue