aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/calculator.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-09-06 19:40:55 -0700
committerAdam Soltys <[email protected]>2014-09-06 19:40:55 -0700
commite547723b23ccc58c832cac966b1b666a426afefb (patch)
tree757da6f03a771c612002300e60e2adf60c2f98d8 /public/js/calculator.coffee
parent86d321130850e15b580c1d4705fc0bdd9473f7d8 (diff)
downloadcoinos-server-e547723b23ccc58c832cac966b1b666a426afefb.tar.gz
coinos-server-e547723b23ccc58c832cac966b1b666a426afefb.zip
Generate key on registration
Diffstat (limited to 'public/js/calculator.coffee')
-rw-r--r--public/js/calculator.coffee4
1 files changed, 2 insertions, 2 deletions
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()