diff --git a/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java b/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java index 417a2ff..dada7f3 100644 --- a/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java +++ b/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java @@ -41,9 +41,7 @@ public class ExtendedPublicKey { } public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(getExtendedPublicKey()); - return builder.toString(); + return getExtendedPublicKey(); } public String getExtendedPublicKey() { diff --git a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java index 30a0f86..fd2cff2 100644 --- a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java +++ b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java @@ -8,7 +8,6 @@ import com.sparrowwallet.drongo.protocol.ScriptChunk; import com.sparrowwallet.drongo.protocol.ScriptOpCodes; import com.sparrowwallet.drongo.protocol.ScriptType; -import java.security.KeyPair; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern;