show error for bip322 multisig signatures

This commit is contained in:
Craig Raw 2023-07-04 09:22:15 +02:00
parent 9576581d89
commit 795892f7c9
2 changed files with 7 additions and 6 deletions

2
drongo

@ -1 +1 @@
Subproject commit f47d5de3922a88ae385e586dcc3947f05c2ae803
Subproject commit 6a7d2aac285e9300b5897d1b64d0e5baa25e428d

View file

@ -392,12 +392,13 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
}
}
if(!verified) {
if(!verified && Bip322.isSupported(getAddress().getScriptType())) {
try {
Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
verified = true;
verified = Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
if(verified) {
formatGroup.selectToggle(formatBip322);
} catch(Exception e) {
}
} catch(SignatureException e) {
//ignore
}
}