Browse Source

Fix utility naming issue

patch-2
Braydon Fuller 10 years ago
parent
commit
683ac93c0b
  1. 8
      lib/hdprivatekey.js

8
lib/hdprivatekey.js

@ -337,10 +337,10 @@ HDPrivateKey.prototype._buildFromBuffers = function(arg) {
var size = HDPrivateKey.ParentFingerPrintSize; var size = HDPrivateKey.ParentFingerPrintSize;
var fingerPrint = Hash.sha256ripemd160(publicKey.toBuffer()).slice(0, size); var fingerPrint = Hash.sha256ripemd160(publicKey.toBuffer()).slice(0, size);
jsUtil.defineImmutable(this, { JSUtil.defineImmutable(this, {
xprivkey: xprivkey, xprivkey: xprivkey,
network: Network.get(bufferUtil.integerFromBuffer(arg.version)), network: Network.get(BufferUtil.integerFromBuffer(arg.version)),
depth: bufferUtil.integerFromSingleByteBuffer(arg.depth), depth: BufferUtil.integerFromSingleByteBuffer(arg.depth),
privateKey: privateKey, privateKey: privateKey,
publicKey: publicKey, publicKey: publicKey,
fingerPrint: fingerPrint fingerPrint: fingerPrint
@ -349,7 +349,7 @@ HDPrivateKey.prototype._buildFromBuffers = function(arg) {
var HDPublicKey = require('./hdpublickey'); var HDPublicKey = require('./hdpublickey');
var hdPublicKey = new HDPublicKey(this); var hdPublicKey = new HDPublicKey(this);
jsUtil.defineImmutable(this, { JSUtil.defineImmutable(this, {
hdPublicKey: hdPublicKey, hdPublicKey: hdPublicKey,
xpubkey: hdPublicKey.xpubkey xpubkey: hdPublicKey.xpubkey
}); });

Loading…
Cancel
Save