Browse Source

Fix bad references to Bitcoin.Crypto

hk-custom-address
Andreas Brekken 11 years ago
parent
commit
26ac76d42c
  1. 2
      src/bip32.js

2
src/bip32.js

@ -116,7 +116,7 @@ BIP32key.prototype.privtopub = BIP32key.prototype.getPub = function() {
}
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({
vbytes: conv.stringToBytes(PRIVDERIV),
type: 'priv',

Loading…
Cancel
Save