From 60cb3ed85f46c3f1b7ddd071e6b02eb1ac334bb6 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 26 Sep 2022 13:47:54 +0200 Subject: [PATCH] ignore invalid characters when calculating output descriptor checksum --- src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java index 71823cb..154bae2 100644 --- a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java +++ b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java @@ -401,7 +401,7 @@ public class OutputDescriptor { int pos = INPUT_CHARSET.indexOf(ch); if(pos < 0) { - return ""; + continue; } c = polyMod(c, pos & 31); // Emit a symbol for the position inside the group, for every character.