From 4b6c47703006e03e3f0831258efa51ba90c922a1 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 7 Oct 2020 13:11:26 +0200 Subject: [PATCH] rename xPub to xpub --- src/main/java/com/sparrowwallet/drongo/ExtendedKey.java | 2 +- src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/drongo/ExtendedKey.java b/src/main/java/com/sparrowwallet/drongo/ExtendedKey.java index 56c9abf..adb7a10 100644 --- a/src/main/java/com/sparrowwallet/drongo/ExtendedKey.java +++ b/src/main/java/com/sparrowwallet/drongo/ExtendedKey.java @@ -186,7 +186,7 @@ public class ExtendedKey { } public String getDisplayName() { - return name.replace('p', 'P'); + return name; } public int getHeader() { diff --git a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java index 524e30e..be28073 100644 --- a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java +++ b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java @@ -329,7 +329,7 @@ public class OutputDescriptor { keyDerivationMap.put(extendedPublicKey, keyDerivation); keyChildDerivationMap.put(extendedPublicKey, childDerivationPath); } catch(ProtocolException e) { - throw new ProtocolException("Invalid xPub: " + e.getMessage()); + throw new ProtocolException("Invalid xpub: " + e.getMessage()); } }