Skip to content

Commit

Permalink
improve handling of invalid bip322 signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Jul 18, 2023
1 parent b0883f0 commit 7d7967e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drongo
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private void verifyMessage() {
}
}

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) {
Expand Down

0 comments on commit 7d7967e

Please sign in to comment.