From 84276d65c0a9b1e548e8745537a709b5c3e674a7 Mon Sep 17 00:00:00 2001 From: Tracey Boydston Date: Tue, 22 Jun 2021 18:39:45 +0800 Subject: [PATCH] Fixed issue where invalid BIP 32 Extended Public Key was generated for extPub generation when it should not have been. --- hdAddressGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdAddressGenerator.js b/hdAddressGenerator.js index 5451dd5..d213875 100644 --- a/hdAddressGenerator.js +++ b/hdAddressGenerator.js @@ -246,7 +246,7 @@ class AddressGenerator { this.bip32RootKeyRaw = bip32.fromBase58(this.xpub) } - this.bip32RootKey = this.bip32RootKeyRaw.toBase58() + this.bip32RootKey = ( this.xpub === false ) ? this.bip32RootKeyRaw.toBase58() : '' if ( this.bip != 32 && this.bip != 141 ){