lib/util.js
function mnemonicToPubKey(str) {

  var m = new Mnemonic(str);

  var xpriv1 = m.toHDPrivateKey(); // no passphrase

  var xpub1 = xpriv1.hdPublicKey;

  return xpub1
}
function mnemonicToPubKey(str) {

  var m = new Mnemonic(str);

  var xpriv1 = m.toHDPrivateKey(); // no passphrase

  var xpub1 = xpriv1.hdPublicKey;

  return xpub1
}
function mnemonicToPubKey ( str ) { var m = new Mnemonic ( str ) ; var xpriv1 = m . toHDPrivateKey ( ) ; // no passphrase var xpub1 = xpriv1 . hdPublicKey ; return xpub1 }
get a public key from a mnemonic
@param  {String} str The mnemonic
@return {Object}     The HD Public Key
get a public key from a mnemonic