mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 08:37:05 +00:00
show error for bip322 multisig signatures
This commit is contained in:
@@ -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;
|
||||
formatGroup.selectToggle(formatBip322);
|
||||
} catch(Exception e) {
|
||||
verified = Bip322.verifyMessageBip322(getAddress().getScriptType(), getAddress(), message.getText().trim(), signature.getText().trim());
|
||||
if(verified) {
|
||||
formatGroup.selectToggle(formatBip322);
|
||||
}
|
||||
} catch(SignatureException e) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user