constructor (seed, hdpath = '') { let value = null if (typeof seed === 'string') { value = Buffer.from(seed) } else if (isBuffer(seed)) { value = seed } else { throw new Error('Seed must be Buffer or string') } this.__hdwallet = hdkey.fromMasterSeed(value) this.__hdpath = hdpath }