Fix bad references to Bitcoin.Crypto

This commit is contained in:
Andreas Brekken 2014-01-10 16:10:39 +07:00
parent d39567c589
commit 26ac76d42c

View file

@ -116,7 +116,7 @@ BIP32key.prototype.privtopub = BIP32key.prototype.getPub = function() {
} }
BIP32key.fromMasterKey = function(seed) { BIP32key.fromMasterKey = function(seed) {
var I = Bitcoin.Crypto.HMAC(Bitcoin.Crypto.SHA512,seed, 'Bitcoin seed' , { asBytes: true }) var I = Crypto.HMAC(Crypto.SHA512,seed, 'Bitcoin seed' , { asBytes: true })
return new BIP32key({ return new BIP32key({
vbytes: conv.stringToBytes(PRIVDERIV), vbytes: conv.stringToBytes(PRIVDERIV),
type: 'priv', type: 'priv',