From e547723b23ccc58c832cac966b1b666a426afefb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 6 Sep 2014 19:40:55 -0700 Subject: Generate key on registration --- public/js/calculator.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/js/calculator.coffee') diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index edbd4fa9..b31d3ee8 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -60,7 +60,7 @@ setup = -> if g.user.logo $('#logo').attr('src', g.user.logo).show() - getAddress() if g.user.bip32 + getAddress() if g.user.pubkey $('#symbol').html(g.user.currency) $('#currency').html(g.user.currency) @@ -196,7 +196,7 @@ logTransaction = (txid, amount) -> getAddress = -> i = g.user.index - bip32 = new BIP32(g.user.bip32) + bip32 = new BIP32(g.user.pubkey) result = bip32.derive("m/0/#{i}") hash160 = result.eckey.pubKeyHash g.user.address = (new Bitcoin.Address(hash160)).toString() -- cgit v1.2.3