|
|
@ -1,12 +1,14 @@ |
|
|
|
var Base58Check = require('./base58check'); |
|
|
|
var Hash = require('./hash'); |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
var Base58Check = require('./protocol/base58check'); |
|
|
|
var constants = require('./protocol/constants'); |
|
|
|
var Hash = require('./crypto/hash'); |
|
|
|
var Point = require('./crypto/point'); |
|
|
|
var Random = require('./crypto/random'); |
|
|
|
var BN = require('./crypto/bn'); |
|
|
|
var Keypair = require('./keypair'); |
|
|
|
var Pubkey = require('./pubkey'); |
|
|
|
var Privkey = require('./privkey'); |
|
|
|
var Point = require('./point'); |
|
|
|
var Random = require('./random'); |
|
|
|
var BN = require('./bn'); |
|
|
|
var constants = require('./constants'); |
|
|
|
|
|
|
|
var BIP32 = function BIP32(obj) { |
|
|
|
if (!(this instanceof BIP32)) |
|
|
@ -17,7 +19,7 @@ var BIP32 = function BIP32(obj) { |
|
|
|
} else if (obj ) { |
|
|
|
this.set(obj); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
BIP32.prototype.set = function(obj) { |
|
|
|
this.version = typeof obj.version !== 'undefined' ? obj.version : this.version; |
|
|
|