mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
show error for bip322 multisig signatures
This commit is contained in:
parent
9576581d89
commit
795892f7c9
2 changed files with 7 additions and 6 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit f47d5de3922a88ae385e586dcc3947f05c2ae803
|
Subproject commit 6a7d2aac285e9300b5897d1b64d0e5baa25e428d
|
|
@ -392,12 +392,13 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!verified) {
|
if(!verified && Bip322.isSupported(getAddress().getScriptType())) {
|
||||||
try {
|
try {
|
||||||
Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
|
verified = Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
|
||||||
verified = true;
|
if(verified) {
|
||||||
formatGroup.selectToggle(formatBip322);
|
formatGroup.selectToggle(formatBip322);
|
||||||
} catch(Exception e) {
|
}
|
||||||
|
} catch(SignatureException e) {
|
||||||
//ignore
|
//ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue