From 97cdd6217317d4f1a2238ca7d2c8161cb8534e10 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sat, 18 Apr 2020 12:38:33 +0200 Subject: [PATCH] move child derivation paths into outputdescriptor #2 --- src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java | 4 +--- src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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;