From: dangershony Date: Wed, 24 Aug 2016 14:29:17 +0000 (+0100) Subject: update root key network X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=commitdiff_plain;h=3821c0d34596dbbf7ff1ba9ce02b54ca4e0d9fda update root key network --- diff --git a/bip39-standalone.html b/bip39-standalone.html index 41dcb99..9b3c4f1 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -15052,7 +15052,7 @@ var Mnemonic = function(language) { } function calcBip32RootKeyFromBase58(rootKeyBase58) { - bip32RootKey = bitcoin.HDNode.fromBase58(rootKeyBase58); + bip32RootKey = bitcoin.HDNode.fromBase58(rootKeyBase58, network); } function calcBip32ExtendedKey(path) { diff --git a/src/js/index.js b/src/js/index.js index 0599321..5cd09b6 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -207,7 +207,7 @@ } function calcBip32RootKeyFromBase58(rootKeyBase58) { - bip32RootKey = bitcoin.HDNode.fromBase58(rootKeyBase58); + bip32RootKey = bitcoin.HDNode.fromBase58(rootKeyBase58, network); } function calcBip32ExtendedKey(path) {