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()); } }