From 102e2b3d48e09ee5b07acf69d78d1f345d255906 Mon Sep 17 00:00:00 2001 From: Wei Lu Date: Thu, 27 Feb 2014 02:12:55 +0800 Subject: [PATCH] Wallet.generateAddress uses the new HD wallet method --- src/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.js b/src/wallet.js index d7cb81e..5710f25 100644 --- a/src/wallet.js +++ b/src/wallet.js @@ -41,7 +41,7 @@ var Wallet = function (seed) { // Add a new address this.generateAddress = function() { - keys.push(masterkey.ckd(keys.length).key) + keys.push(masterkey.derive(keys.length)) this.addresses.push(keys[keys.length-1].getBitcoinAddress().toString()) return this.addresses[this.addresses.length - 1] }